diff --git a/python-lxml.spec b/python-lxml.spec index 9e91718..5e3d495 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -1,6 +1,4 @@ -%global modname lxml - -Name: python-%{modname} +Name: python-lxml Version: 4.7.1 Release: 5%{?dist} Summary: XML processing library combining libxml2/libxslt with the ElementTree API @@ -11,7 +9,7 @@ Summary: XML processing library combining libxml2/libxslt with the Elemen # .xsl schematron files are under the MIT and zlib license License: BSD and MIT and zlib URL: https://github.com/lxml/lxml -Source0: %{pypi_source %{modname}} +Source0: %{pypi_source lxml} BuildRequires: gcc BuildRequires: libxml2-devel @@ -26,7 +24,7 @@ home page < or see our bug tracker at case you want to use the current ... %description %{_description} -%package -n python3-%{modname} +%package -n python3-lxml Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -34,14 +32,14 @@ BuildRequires: python3-Cython Suggests: python%{python3_version}dist(cssselect) >= 0.7 Suggests: python%{python3_version}dist(html5lib) Suggests: python%{python3_version}dist(beautifulsoup4) -%{?python_provide:%python_provide python3-%{modname}} +%{?python_provide:%python_provide python3-lxml} -%description -n python3-%{modname} %{_description} +%description -n python3-lxml %{_description} Python 3 version. %prep -%autosetup -n %{modname}-%{version} -p1 +%autosetup -n lxml-%{version} -p1 # Remove pregenerated Cython C sources find -type f -name '*.c' -print -delete @@ -58,11 +56,11 @@ cp -a build/lib.%{python3_platform}-*/* src/ # The options are: verbose, unit, functional %{python3} test.py -vuf -%files -n python3-%{modname} +%files -n python3-lxml %license LICENSES.txt doc/licenses/BSD.txt doc/licenses/elementtree.txt %doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -%{python3_sitearch}/%{modname}/ -%{python3_sitearch}/%{modname}-*.egg-info/ +%{python3_sitearch}/lxml/ +%{python3_sitearch}/lxml-*.egg-info/ %changelog * Fri Jul 22 2022 Fedora Release Engineering - 4.7.1-5