forked from pool/python-lxml
Accepting request 526949 from home:thomas-schraitle:branches:devel:languages:python
- spec changes: - add fdupes - update to 4.0.0, see .changes file for details OBS-URL: https://build.opensuse.org/request/show/526949 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=99
This commit is contained in:
committed by
Git OBS Bridge
parent
29cc2c2774
commit
19573682aa
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-lxml
|
||||
Version: 3.8.0
|
||||
Version: 4.0.0
|
||||
Release: 0
|
||||
Summary: Pythonic XML processing library
|
||||
License: BSD-3-Clause and GPL-2.0+
|
||||
@@ -29,6 +29,7 @@ Source1: http://lxml.de/lxmldoc-%{version}.pdf
|
||||
BuildRequires: %{python_module Cython >= 0.22.1}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libxml2-devel >= 2.7.0
|
||||
BuildRequires: libxslt-devel >= 1.1.23
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -76,10 +77,10 @@ This package contains header files needed to use lxml's C API.
|
||||
cp %{SOURCE1} .
|
||||
|
||||
# remove generated files
|
||||
rm src/lxml/lxml.etree.c
|
||||
# rm src/lxml/lxml.etree.c
|
||||
rm src/lxml/lxml.etree.h
|
||||
rm src/lxml/lxml.etree_api.h
|
||||
rm src/lxml/lxml.objectify.c
|
||||
# rm src/lxml/lxml.objectify.c
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -94,6 +95,7 @@ LANG=en_US.UTF-8 PYTHONUNBUFFERED=x make test3
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
|
||||
Reference in New Issue
Block a user