pypi_name -> modname
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
4d9870a4c2
commit
6ac2a832d1
@ -1,13 +1,13 @@
|
|||||||
%global pypi_name lxml
|
%global modname lxml
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{modname}
|
||||||
Version: 3.8.0
|
Version: 3.8.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://lxml.de
|
URL: http://lxml.de
|
||||||
Source0: http://lxml.de/files/%{pypi_name}-%{version}.tgz
|
Source0: http://lxml.de/files/%{modname}-%{version}.tgz
|
||||||
|
|
||||||
%description
|
%description
|
||||||
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
||||||
@ -16,7 +16,7 @@ extends the ElementTree API significantly to offer support for XPath, RelaxNG,
|
|||||||
XML Schema, XSLT, C14N and much more.To contact the project, go to the project
|
XML Schema, XSLT, C14N and much more.To contact the project, go to the project
|
||||||
home page < or see our bug tracker at case you want to use the current ...
|
home page < or see our bug tracker at case you want to use the current ...
|
||||||
|
|
||||||
%package -n python2-%{pypi_name}
|
%package -n python2-%{modname}
|
||||||
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
@ -25,25 +25,25 @@ BuildRequires: libxslt-devel
|
|||||||
Requires: python-cssselect
|
Requires: python-cssselect
|
||||||
Requires: python-html5lib
|
Requires: python-html5lib
|
||||||
Requires: python-beautifulsoup4
|
Requires: python-beautifulsoup4
|
||||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
%{?python_provide:%python_provide python2-%{modname}}
|
||||||
|
|
||||||
%description -n python2-%{pypi_name}
|
%description -n python2-%{modname}
|
||||||
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
||||||
provides safe and convenient access to these libraries using the ElementTree It
|
provides safe and convenient access to these libraries using the ElementTree It
|
||||||
extends the ElementTree API significantly to offer support for XPath, RelaxNG,
|
extends the ElementTree API significantly to offer support for XPath, RelaxNG,
|
||||||
XML Schema, XSLT, C14N and much more.To contact the project, go to the project
|
XML Schema, XSLT, C14N and much more.To contact the project, go to the project
|
||||||
home page < or see our bug tracker at case you want to use the current ...
|
home page < or see our bug tracker at case you want to use the current ...
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{modname}
|
||||||
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
Requires: python3-cssselect
|
Requires: python3-cssselect
|
||||||
Requires: python3-html5lib
|
Requires: python3-html5lib
|
||||||
Requires: python3-beautifulsoup4
|
Requires: python3-beautifulsoup4
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%{?python_provide:%python_provide python3-%{modname}}
|
||||||
|
|
||||||
%description -n python3-%{pypi_name}
|
%description -n python3-%{modname}
|
||||||
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
|
||||||
provides safe and convenient access to these libraries using the ElementTree It
|
provides safe and convenient access to these libraries using the ElementTree It
|
||||||
extends the ElementTree API significantly to offer support for XPath, RelaxNG,
|
extends the ElementTree API significantly to offer support for XPath, RelaxNG,
|
||||||
@ -51,7 +51,7 @@ XML Schema, XSLT, C14N and much more.To contact the project, go to the project
|
|||||||
home page < or see our bug tracker at case you want to use the current ...
|
home page < or see our bug tracker at case you want to use the current ...
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{modname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
@ -65,17 +65,17 @@ home page < or see our bug tracker at case you want to use the current ...
|
|||||||
%{__python2} setup.py test
|
%{__python2} setup.py test
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
%files -n python2-%{modname}
|
||||||
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
|
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
|
||||||
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
|
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
|
||||||
%{python2_sitearch}/%{pypi_name}
|
%{python2_sitearch}/%{modname}
|
||||||
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python2_sitearch}/%{modname}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{modname}
|
||||||
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
|
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
|
||||||
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
|
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
|
||||||
%{python3_sitearch}/%{pypi_name}
|
%{python3_sitearch}/%{modname}
|
||||||
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python3_sitearch}/%{modname}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Aug 12 2017 Kevin Fenzi <kevin@scrye.com> - 3.8.0-1
|
* Sat Aug 12 2017 Kevin Fenzi <kevin@scrye.com> - 3.8.0-1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user