Blame SPECS/python3.11-packaging.spec

6626b1
%global __python3 /usr/bin/python3.11
6626b1
%global python3_pkgversion 3.11
6626b1
6626b1
%global pypi_name packaging
6626b1
6626b1
# Tests are disabled in RHEL because we don't have python-pretend.
6626b1
# Specify --with tests to enable them.
6626b1
%bcond_with tests
6626b1
6626b1
Name:           python%{python3_pkgversion}-%{pypi_name}
6626b1
Version:        21.3
6626b1
Release:        1%{?dist}
6626b1
Summary:        Core utilities for Python packages
6626b1
6626b1
License:        BSD or ASL 2.0
6626b1
URL:            https://github.com/pypa/packaging
6626b1
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
6626b1
6626b1
# Correctly parse ELF for musllinux on Big Endian
6626b1
# Merged upstream
6626b1
Patch:          https://github.com/pypa/packaging/pull/538.patch
6626b1
6626b1
BuildArch:      noarch
6626b1
6626b1
BuildRequires:  python%{python3_pkgversion}-devel
6626b1
BuildRequires:  python%{python3_pkgversion}-rpm-macros
6626b1
BuildRequires:  python%{python3_pkgversion}-setuptools
6626b1
6626b1
# Upstream uses nox for testing.
6626b1
%if %{with tests}
6626b1
BuildRequires:  python%{python3_pkgversion}-pytest
6626b1
BuildRequires:  python%{python3_pkgversion}-pretend
6626b1
%endif
6626b1
6626b1
# On RHEL8 we need to manually specify the runtime requirements.
6626b1
# On RHEL9 they are auto-generated but we keep them for consistency.
6626b1
Requires:       python%{python3_pkgversion}dist(pyparsing)
6626b1
6626b1
%global _description %{expand:
6626b1
python-packaging provides core utilities for Python packages like utilities for
6626b1
dealing with versions, specifiers, markers etc.}
6626b1
6626b1
%description %_description
6626b1
6626b1
%prep
6626b1
%autosetup -p1 -n %{pypi_name}-%{version}
6626b1
6626b1
%build
6626b1
%py3_build
6626b1
6626b1
%install
6626b1
%py3_install
6626b1
6626b1
%if %{with tests}
6626b1
%check
6626b1
%pytest
6626b1
%endif
6626b1
6626b1
6626b1
%files -n python%{python3_pkgversion}-%{pypi_name}
6626b1
%license LICENSE LICENSE.APACHE LICENSE.BSD
6626b1
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst
6626b1
%{python3_sitelib}/%{pypi_name}/
6626b1
%{python3_sitelib}/%{pypi_name}-*-info/
6626b1
6626b1
6626b1
%changelog
6626b1
* Fri Nov 25 2022 Charalampos Stratakis <cstratak@redhat.com> - 21.3-1
6626b1
- Initial package
6626b1
- Fedora contributions by:
6626b1
      # Charalampos Stratakis <cstratak@redhat.com>
6626b1
      # Iryna Shcherbina <shcherbina.iryna@gmail.com>
6626b1
      # Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>
6626b1
      # Lumir Balhar <lbalhar@redhat.com>
6626b1
      # Miro Hrončok <miro@hroncok.cz>
6626b1
      # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>