Compare commits

...

No commits in common. 'c9' and 'i10c-beta' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/packaging-20.9.tar.gz SOURCES/packaging-23.2.tar.gz

@ -1 +1 @@
8243804fa28da44825ee89ea4c78298d34adf00e SOURCES/packaging-20.9.tar.gz 4a150d7127c64e5be67db5f6cbce3601e505113e SOURCES/packaging-23.2.tar.gz

@ -1,37 +1,40 @@
# Tests are disabled to remove the test dependencies
# Specify --with tests to run the tests on e.g. EPEL
%bcond_with tests
%global pypi_name packaging %global pypi_name packaging
# Specify --with bootstrap to build in bootstrap mode # Specify --with bootstrap to build in bootstrap mode
# This mode is needed, because python3-rpm-generators need packaging # This mode is needed, because python3-rpm-generators need packaging
# When bootstrapping, disable tests and docs as well.
%bcond_with bootstrap %bcond_with bootstrap
%if %{without bootstrap} # When bootstrapping, the tests and docs are disabled because the dependencies are not yet available.
# We don't want python-pretend in future RHEL, so we disable tests on RHEL as well.
# No reason to ship the documentation in RHEL either, so it is also disabled by default.
%if %{without bootstrap} && %{undefined rhel}
# Specify --without docs to prevent the dependency loop on python-sphinx # Specify --without docs to prevent the dependency loop on python-sphinx
%bcond_without docs %bcond_without docs
# Specify --without tests to prevent the dependency loop on python-pytest
%bcond_without tests
%else %else
%bcond_with docs %bcond_with docs
%bcond_with tests
%endif %endif
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 20.9 Version: 23.2
Release: 5%{?dist} Release: 5%{?dist}
Summary: Core utilities for Python packages Summary: Core utilities for Python packages
License: BSD or ASL 2.0 License: BSD-2-Clause OR Apache-2.0
URL: https://github.com/pypa/packaging URL: https://github.com/pypa/packaging
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pyproject-rpm-macros BuildRequires: pyproject-rpm-macros
BuildRequires: unzip
%if %{with bootstrap} %if %{with bootstrap}
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-flit-core
%endif %endif
# Upstream uses nox for testing, we specify the test deps manually as well. # Upstream uses nox for testing, we specify the test deps manually as well.
@ -41,6 +44,7 @@ BuildRequires: python%{python3_pkgversion}-pretend
%endif %endif
%if %{with docs} %if %{with docs}
BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: python%{python3_pkgversion}-sphinx
BuildRequires: python%{python3_pkgversion}-furo
%endif %endif
@ -54,13 +58,10 @@ dealing with versions, specifiers, markers etc.}
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary} Summary: %{summary}
# This is kept for compatibility with Fedora < 33 only:
%py_provides python%{python3_pkgversion}-%{pypi_name}
%if %{with bootstrap} %if %{with bootstrap}
Provides: python%{python3_pkgversion}dist(packaging) = %{version} Provides: python%{python3_pkgversion}dist(packaging) = %{version}
Provides: python%{python3_version}dist(packaging) = %{version} Provides: python%{python3_version}dist(packaging) = %{version}
Requires: python%{python3_version}dist(pyparsing) Requires: python(abi) = %{python3_version}
%endif %endif
%description -n python%{python3_pkgversion}-%{pypi_name} %_description %description -n python%{python3_pkgversion}-%{pypi_name} %_description
@ -78,9 +79,6 @@ Documentation for python-packaging
%prep %prep
%autosetup -p1 -n %{pypi_name}-%{version} %autosetup -p1 -n %{pypi_name}-%{version}
# Do not use furo as HTML theme in docs
# furo is not available in Fedora
sed -i '/html_theme = "furo"/d' docs/conf.py
%if %{without bootstrap} %if %{without bootstrap}
%generate_buildrequires %generate_buildrequires
@ -90,7 +88,7 @@ sed -i '/html_theme = "furo"/d' docs/conf.py
%build %build
%if %{with bootstrap} %if %{with bootstrap}
%py3_build %{python3} -m flit_core.wheel
%else %else
%pyproject_wheel %pyproject_wheel
%endif %endif
@ -107,7 +105,8 @@ rm -rf html/_static/fonts/
%install %install
%if %{with bootstrap} %if %{with bootstrap}
%py3_install mkdir -p %{buildroot}%{python3_sitelib}
unzip dist/packaging-%{version}-py3-none-any.whl -d %{buildroot}%{python3_sitelib} -x packaging-%{version}.dist-info/RECORD
echo '%{python3_sitelib}/packaging*' > %{pyproject_files} echo '%{python3_sitelib}/packaging*' > %{pyproject_files}
%else %else
%pyproject_install %pyproject_install
@ -115,8 +114,9 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files}
%endif %endif
%if %{with tests}
%check %check
%{!?with_bootstrap:%pyproject_check_import}
%if %{with tests}
%pytest %pytest
%endif %endif
@ -134,20 +134,85 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files}
%changelog %changelog
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 20.9-5 * Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 23.2-5
- Add automatically generated Obsoletes tag with the python39- prefix - Rebuilt for MSVSphere 10
for smoother upgrade from RHEL8
- Related: rhbz#1990421 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 23.2-5
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 23.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 23.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Oct 09 2023 Miro Hrončok <mhroncok@redhat.com> - 23.2-2
- Use the furo Sphinx theme, as intended upstream
* Mon Oct 02 2023 Lumír Balhar <lbalhar@redhat.com> - 23.2-1
- Update to 23.2 (rhbz#2241653)
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 23.1-5
- Declare the license as an SPDX expression
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 23.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 23.1-3
- Rebuilt for Python 3.12
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 23.1-2
- Bootstrap for Python 3.12
* Mon Apr 17 2023 Lumír Balhar <lbalhar@redhat.com> - 23.1-1
- Update to 23.1 (rhbz#2186423)
* Fri Feb 03 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 23.0-1
- Update to 23.0.0
- https://fedoraproject.org/wiki/Changes/Update_python-packaging_to_version_22_plus
- Fixes: rhbz#2151743
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 21.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Aug 23 2022 Miro Hrončok <mhroncok@redhat.com> - 21.3-7
- Fix tests on Big Endian builders
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jul 19 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 21.3-5
- Rebuilt for pyparsing-3.0.9
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 21.3-4
- Rebuilt for Python 3.11
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 21.3-3
- Bootstrap for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Nov 18 2021 Lumír Balhar <lbalhar@redhat.com> - 21.3-1
- Update to 21.3
Resolves: rhbz#2024413
* Mon Nov 01 2021 Lumír Balhar <lbalhar@redhat.com> - 21.2-1
- Update to 21.2
Resolves: rhbz#2018534
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> * Wed Jul 07 2021 Lumír Balhar <lbalhar@redhat.com> - 21.0-1
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Update to 21.0
Related: rhbz#1991688 Resolves: rhbz#1978925
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> * Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 20.9-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Rebuilt for Python 3.10
* Mon Mar 08 2021 Charalampos Stratakis <cstratak@redhat.com> - 20.9-2 * Tue Jun 01 2021 Python Maint <python-maint@redhat.com> - 20.9-2
- Disable tests on RHEL9 to remove the test dependencies - Bootstrap for Python 3.10
* Mon Feb 01 2021 Lumír Balhar <lbalhar@redhat.com> - 20.9-1 * Mon Feb 01 2021 Lumír Balhar <lbalhar@redhat.com> - 20.9-1
- Update to 20.9 - Update to 20.9

Loading…
Cancel
Save