Fix a file conflict with python3-jaraco

Rename the binary rpms to conform to the packaging guidelines

Misc packaging fixes
epel9
Charalampos Stratakis 5 years ago
parent 838945ac66
commit d9c56879fc

@ -2,7 +2,7 @@
Name: python-jaraco-collections Name: python-jaraco-collections
Version: 3.0.0 Version: 3.0.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Collection objects similar to those in stdlib by jaraco Summary: Collection objects similar to those in stdlib by jaraco
License: MIT License: MIT
@ -33,20 +33,28 @@ BuildRequires: python3dist(six) >= 1.7.0
%description %description
%{summary} %{summary}
%package -n python3-%{pypi_name} %package -n python3-jaraco-collections
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(jaraco.classes) Requires: python3-jaraco
Requires: python3dist(jaraco.packaging) >= 3.2
Requires: python3dist(jaraco.text) # The package name was changed. Obsolete the previous
Requires: python3dist(six) >= 1.7.0 # name to provide a clean upgrade path.
%description -n python3-%{pypi_name} # Remove in Fedora >= 36
Obsoletes: python3-jaraco.collections < 3.0.0-3
%description -n python3-jaraco-collections
%{summary} %{summary}
%package -n python-%{pypi_name}-doc %package -n python-jaraco-collections-doc
Summary: jaraco.collections documentation Summary: jaraco.collections documentation
%description -n python-%{pypi_name}-doc
# The package name was changed. Obsolete the previous
# name to provide a clean upgrade path.
# Remove in Fedora >= 36
Obsoletes: python-jaraco.collections-doc < 3.0.0-3
%description -n python-jaraco-collections-doc
Documentation for jaraco.collections Documentation for jaraco.collections
%prep %prep
@ -69,17 +77,24 @@ rm -rf html/.{doctrees,buildinfo}
%install %install
%py3_install %py3_install
%files -n python3-%{pypi_name} %files -n python3-jaraco-collections
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/jaraco # These excludes are provided by python3-jaraco
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %pycached %exclude %{python3_sitelib}/jaraco/__init__.py
%pycached %{python3_sitelib}/jaraco/collections.py
%{python3_sitelib}/jaraco.collections-%{version}-py%{python3_version}.egg-info/
%files -n python-%{pypi_name}-doc %files -n python-jaraco-collections-doc
%doc html %doc html
%license LICENSE %license LICENSE
%changelog %changelog
* Fri Jun 26 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.0.0-3
- Fix a file conflict with python3-jaraco
- Rename the binary rpms to conform to the packaging guidelines
- Misc packaging fixes
* Fri Jun 19 2020 Matthias Runge <mrunge@redhat.com> - 3.0.0-2 * Fri Jun 19 2020 Matthias Runge <mrunge@redhat.com> - 3.0.0-2
- review feedback: fix license, remove (wrong) conflict - review feedback: fix license, remove (wrong) conflict

Loading…
Cancel
Save