Adjust the specfile for EPEL

This commit is contained in:
Karolina Surma 2025-06-26 11:04:36 +02:00
commit 30bbf37408

View file

@ -1,3 +1,4 @@
%global python3_pkgversion 3.13
%global pypi_name packaging
# Specify --with bootstrap to build in bootstrap mode
@ -20,7 +21,7 @@
%bcond_with tests
%endif
Name: python-%{pypi_name}
Name: python%{python3_pkgversion}-%{pypi_name}
Version: 25.0
Release: %autorelease
Summary: Core utilities for Python packages
@ -50,30 +51,16 @@ BuildRequires: python%{python3_pkgversion}-furo
%endif
%global _description %{expand:
%description
python-packaging provides core utilities for Python packages like utilities for
dealing with versions, specifiers, markers etc.}
%description %_description
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
%if %{with bootstrap}
Provides: python%{python3_pkgversion}dist(packaging) = %{version}
Provides: python%{python3_version}dist(packaging) = %{version}
Requires: python(abi) = %{python3_version}
%endif
%description -n python%{python3_pkgversion}-%{pypi_name} %_description
dealing with versions, specifiers, markers etc.
%if %{with docs}
%package -n python-%{pypi_name}-doc
%package -n python%{python3_pkgversion}-%{pypi_name}-doc
Summary: python-packaging documentation
%description -n python-%{pypi_name}-doc
%description -n python%{python3_pkgversion}-%{pypi_name}-doc
Documentation for python-packaging
%endif
@ -129,7 +116,7 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files}
%if %{with docs}
%files -n python-%{pypi_name}-doc
%files -n python%{python3_pkgversion}-%{pypi_name}-doc
%doc html
%license LICENSE LICENSE.APACHE LICENSE.BSD
%endif