|
|
bb799a |
%global pypi_name packaging
|
|
|
bb799a |
|
|
|
bb799a |
# Specify --without docs to prevent the dependency loop on python-sphinx
|
|
|
bb799a |
# RHEL: Disabled due to missing deps
|
|
|
bb799a |
%bcond_with docs
|
|
|
bb799a |
|
|
|
bb799a |
# Specify --without tests to prevent the dependency loop on python-pytest
|
|
|
bb799a |
# RHEL: Disabled due to missing deps
|
|
|
bb799a |
%bcond_with tests
|
|
|
bb799a |
|
|
|
bb799a |
%global python_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
|
|
bb799a |
|
|
|
bb799a |
Name: python-%{pypi_name}
|
|
|
bb799a |
Version: 20.4
|
|
|
bb799a |
Release: 4%{?dist}
|
|
|
bb799a |
Summary: Core utilities for Python packages
|
|
|
bb799a |
|
|
|
bb799a |
License: BSD or ASL 2.0
|
|
|
bb799a |
URL: https://github.com/pypa/packaging
|
|
|
bb799a |
Source0: %{pypi_source}
|
|
|
bb799a |
BuildArch: noarch
|
|
|
bb799a |
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
bb799a |
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
bb799a |
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
bb799a |
ExcludeArch: i686
|
|
|
bb799a |
|
|
|
bb799a |
# Remove dependency on six to make package lighter, backported from upstream
|
|
|
bb799a |
Patch1: %{url}/commit/39a70cce.patch
|
|
|
bb799a |
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-pyparsing
|
|
|
bb799a |
%if %{with tests}
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-pretend
|
|
|
bb799a |
%endif
|
|
|
bb799a |
%if %{with docs}
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
|
bb799a |
%endif
|
|
|
bb799a |
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-pip
|
|
|
bb799a |
BuildRequires: python%{python3_pkgversion}-wheel
|
|
|
bb799a |
|
|
|
bb799a |
%description
|
|
|
bb799a |
python-packaging provides core utilities for Python packages like utilities for
|
|
|
bb799a |
dealing with versions, specifiers, markers etc.
|
|
|
bb799a |
|
|
|
bb799a |
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
bb799a |
Summary: %{summary}
|
|
|
bb799a |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
bb799a |
|
|
|
bb799a |
Requires: python%{python3_pkgversion}-pyparsing
|
|
|
bb799a |
|
|
|
bb799a |
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
bb799a |
python%{python3_pkgversion}-packaging provides core utilities for Python packages like utilities for
|
|
|
bb799a |
dealing with versions, specifiers, markers etc.
|
|
|
bb799a |
|
|
|
bb799a |
%if %{with docs}
|
|
|
bb799a |
%package -n python%{python3_pkgversion}-%{pypi_name}-doc
|
|
|
bb799a |
Summary: python-packaging documentation
|
|
|
bb799a |
|
|
|
bb799a |
%description -n python%{python3_pkgversion}-%{pypi_name}-doc
|
|
|
bb799a |
Documentation for python-packaging
|
|
|
bb799a |
%endif
|
|
|
bb799a |
|
|
|
bb799a |
%prep
|
|
|
bb799a |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
bb799a |
# Remove bundled egg-info
|
|
|
bb799a |
rm -rf %{pypi_name}.egg-info
|
|
|
bb799a |
|
|
|
bb799a |
%build
|
|
|
bb799a |
%py3_build_wheel
|
|
|
bb799a |
|
|
|
bb799a |
%if %{with docs}
|
|
|
bb799a |
# generate html docs
|
|
|
bb799a |
sphinx-build-3 docs html
|
|
|
bb799a |
# remove the sphinx-build leftovers
|
|
|
bb799a |
rm -rf html/.{doctrees,buildinfo}
|
|
|
bb799a |
# Do not bundle fonts
|
|
|
bb799a |
rm -rf html/_static/fonts/
|
|
|
bb799a |
%endif
|
|
|
bb799a |
|
|
|
bb799a |
%install
|
|
|
bb799a |
%py3_install_wheel %{python_wheelname}
|
|
|
bb799a |
|
|
|
bb799a |
%if %{with tests}
|
|
|
bb799a |
%check
|
|
|
bb799a |
%pytest
|
|
|
bb799a |
%endif
|
|
|
bb799a |
|
|
|
bb799a |
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
bb799a |
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
|
|
bb799a |
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst
|
|
|
bb799a |
%{python3_sitelib}/%{pypi_name}/
|
|
|
bb799a |
%{python3_sitelib}/%{pypi_name}-*-info/
|
|
|
bb799a |
|
|
|
bb799a |
%if %{with docs}
|
|
|
bb799a |
%files -n python%{python3_pkgversion}-%{pypi_name}-doc
|
|
|
bb799a |
%doc html
|
|
|
bb799a |
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
|
|
bb799a |
%endif
|
|
|
bb799a |
|
|
|
bb799a |
%changelog
|
|
|
bb799a |
* Tue Jan 12 2021 Tomas Orsava <torsava@redhat.com> - 20.4-4
|
|
|
bb799a |
- Convert from Fedora to the python39 module in RHEL8
|
|
|
bb799a |
- Resolves: rhbz#1877430
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Oct 02 2020 Miro Hrončok <mhroncok@redhat.com> - 20.4-3
|
|
|
bb799a |
- Drop the dependency on six to make the package lighter
|
|
|
bb799a |
|
|
|
bb799a |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.4-2
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Jun 01 2020 Lumír Balhar <lbalhar@redhat.com> - 20.4-1
|
|
|
bb799a |
- Update to 20.4 (#1838285)
|
|
|
bb799a |
|
|
|
bb799a |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 20.3-3
|
|
|
bb799a |
- Rebuilt for Python 3.9
|
|
|
bb799a |
|
|
|
bb799a |
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 20.3-2
|
|
|
bb799a |
- Bootstrap for Python 3.9
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Mar 06 2020 Lumír Balhar <lbalhar@redhat.com> - 20.3-1
|
|
|
bb799a |
- Update to 20.3 (#1810738)
|
|
|
bb799a |
|
|
|
bb799a |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.1-2
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Jan 27 2020 Lumír Balhar <lbalhar@redhat.com> - 20.1-1
|
|
|
bb799a |
- Update to 20.1 (#1794865)
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Jan 06 2020 Lumír Balhar <lbalhar@redhat.com> - 20.0-2
|
|
|
bb799a |
- Ignore broken tests
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Jan 06 2020 Lumír Balhar <lbalhar@redhat.com> - 20.0-1
|
|
|
bb799a |
- Update to 20.0 (#1788012)
|
|
|
bb799a |
|
|
|
bb799a |
* Thu Sep 26 2019 Lumír Balhar <lbalhar@redhat.com> - 19.2-1
|
|
|
bb799a |
- New upstream version 19.2 (bz#1742388)
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Sep 23 2019 Lumír Balhar <lbalhar@redhat.com> - 19.0-6
|
|
|
bb799a |
- Remove Python 2 subpackage
|
|
|
bb799a |
- Make spec fedora-specific
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-5
|
|
|
bb799a |
- Reduce Python 2 build time dependencies
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-4
|
|
|
bb799a |
- Rebuilt for Python 3.8
|
|
|
bb799a |
|
|
|
bb799a |
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-3
|
|
|
bb799a |
- Bootstrap for Python 3.8
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.0-2
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Feb 04 2019 Lumír Balhar <lbalhar@redhat.com> - 19.0-1
|
|
|
bb799a |
- New upstream version
|
|
|
bb799a |
|
|
|
bb799a |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.1-2
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Tue Jul 31 2018 Charalampos Stratakis <cstratak@redhat.com> - 17.1-1
|
|
|
bb799a |
- Update to 17.1
|
|
|
bb799a |
|
|
|
bb799a |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-11
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 16.8-10
|
|
|
bb799a |
- Rebuilt for Python 3.7
|
|
|
bb799a |
|
|
|
bb799a |
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 16.8-9
|
|
|
bb799a |
- Bootstrap for Python 3.7
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.8-8
|
|
|
bb799a |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
bb799a |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-7
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-6
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Wed Mar 22 2017 Lumir Balhar <lbalhar@redhat.com> - 16.8-5
|
|
|
bb799a |
- Epel7 compatible spec/package
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 16.8-4
|
|
|
bb799a |
- Rebuild as wheel
|
|
|
bb799a |
|
|
|
bb799a |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-3
|
|
|
bb799a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
bb799a |
|
|
|
bb799a |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 16.8-2
|
|
|
bb799a |
- Rebuild for Python 3.6
|
|
|
bb799a |
|
|
|
bb799a |
* Wed Nov 02 2016 Lumir Balhar <lbalhar@redhat.com> - 16.8-1
|
|
|
bb799a |
- New upstream version
|
|
|
bb799a |
|
|
|
bb799a |
* Fri Sep 16 2016 Lumir Balhar <lbalhar@redhat.com> - 16.7-1
|
|
|
bb799a |
- Initial package.
|