Use python3-lesscpy 0.13.0

Require python-lesscpy 0.13. with Python 3 fix and use py3-lesscpy to
compile ipa.css.

python2-lesscpy was the last Python 2 dependency.

Fixes: https://pagure.io/freeipa/issue/7585
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Christian Heimes 2018-06-12 12:02:08 +02:00
parent 114e46b7c9
commit 7d12bbb99b
2 changed files with 4 additions and 3 deletions

View File

@ -159,8 +159,9 @@ BuildRequires: libsss_nss_idmap-devel >= 1.15.3
BuildRequires: rhino
BuildRequires: libverto-devel
BuildRequires: libunistring-devel
# /usr/bin/lesscpy is provided by Python 2 package
BuildRequires: python2-lesscpy
# 0.13.0: https://bugzilla.redhat.com/show_bug.cgi?id=1584773
# 0.13.0-2: fix for missing dependency on python-six
BuildRequires: python3-lesscpy >= 0.13.0-2
%endif # ONLY_CLIENT
#

View File

@ -22,5 +22,5 @@ set -o errexit
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
lesscpy -x $DIR/../less/ipa.less > $DIR/../css/ipa.css
py3-lesscpy -x $DIR/../less/ipa.less > $DIR/../css/ipa.css
exit $?