###############################################################################
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.
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