]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python-lxml: Update to 4.3.4
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jun 2019 00:00:21 +0000 (01:00 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jun 2019 00:00:21 +0000 (01:00 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python-lxml/python-lxml.nm

index 94938c02761bb6a04852512d33c2c07ef82ce2c6..5973cbe08384885c6ec0735b1b78c40b6b38b7dc 100644 (file)
@@ -4,12 +4,12 @@
 ###############################################################################
 
 name       = python-lxml
-version    = 4.2.5
+version    = 4.3.4
 release    = 1
 thisapp    = lxml-%{version}
 
 groups     = Development/Languages
-url        = http://lxml.de
+url        = https://lxml.de
 license    = BSD
 summary    = ElementTree-like Python bindings for libxml2 and libxslt.
 
@@ -20,29 +20,29 @@ description
        bindings.
 end
 
-source_dl  = http://lxml.de/files/
-sources    = %{thisapp}.tgz
+source_dl  = https://github.com/lxml/lxml/archive/
 
 build
        requires
+               cython
                libxml2-devel
                libxslt-devel
                python3-devel
                zlib-devel
        end
 
+       # Setting LC_CTYPE to workaround encoding issue
+       export LC_CTYPE=en_US.UTF-8
+
+       # WTF?
+       DIR_APP = %{DIR_SRC}/lxml-%{thisapp}
+
        build
                CFLAGS="%{CFLAGS}" %{python3} setup.py build
        end
 
        test
-               # Setup test environment.
-               BUILD_LIB_DIR=$(find $(pwd) -name "*.so" | head -n 1 | xargs dirname)
-               cp $BUILD_LIB_DIR/*.so src/lxml
-               export LANG=en_US.utf8
-
-               # Run tests.
-               %{python3} test.py -p -v
+               make PYTHON=%{python3} test
        end
 
        install