2016-09-16 19:59:27 +00:00
|
|
|
%global pypi_name packaging
|
|
|
|
|
2019-02-20 00:35:13 +00:00
|
|
|
# Specify --without docs to prevent the dependency loop on python-sphinx
|
|
|
|
%bcond_without docs
|
2018-06-14 11:56:37 +00:00
|
|
|
|
2019-08-15 12:42:42 +00:00
|
|
|
# Specify --without tests to prevent the dependency loop on python-pytest
|
|
|
|
%bcond_without tests
|
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
Name: python-%{pypi_name}
|
2020-12-14 10:25:44 +00:00
|
|
|
Version: 20.8
|
2021-01-27 12:08:44 +00:00
|
|
|
Release: 2%{?dist}
|
2016-09-16 19:59:27 +00:00
|
|
|
Summary: Core utilities for Python packages
|
|
|
|
|
|
|
|
License: BSD or ASL 2.0
|
|
|
|
URL: https://github.com/pypa/packaging
|
2020-11-30 08:48:42 +00:00
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
2016-09-16 19:59:27 +00:00
|
|
|
BuildArch: noarch
|
2017-03-22 11:19:41 +00:00
|
|
|
|
2020-09-07 10:17:41 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
2020-10-02 10:24:34 +00:00
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
# We specify dependencies to build the wheel manually to avoid circular
|
|
|
|
# dependency on self.
|
|
|
|
# We also don't use the python3dist() form, in case packaging is ever used
|
|
|
|
# in the provides generator.
|
2020-12-14 10:25:44 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2020-10-02 10:24:34 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pip
|
2020-12-14 10:25:44 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-wheel
|
2020-10-02 10:24:34 +00:00
|
|
|
|
|
|
|
# Upstream uses nox for testing, we specify the test deps manually as well.
|
2019-08-15 12:42:42 +00:00
|
|
|
%if %{with tests}
|
2020-09-07 10:17:41 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pretend
|
2020-10-02 10:24:34 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pyparsing
|
2019-08-15 12:42:42 +00:00
|
|
|
%endif
|
2019-02-20 00:35:13 +00:00
|
|
|
%if %{with docs}
|
2020-09-07 10:17:41 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx
|
2020-10-02 10:24:34 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pyparsing
|
2017-03-22 11:19:41 +00:00
|
|
|
%endif
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2017-02-15 12:48:41 +00:00
|
|
|
|
2020-10-02 10:24:34 +00:00
|
|
|
%global _description %{expand:
|
2016-09-16 19:59:27 +00:00
|
|
|
python-packaging provides core utilities for Python packages like utilities for
|
2020-10-02 10:24:34 +00:00
|
|
|
dealing with versions, specifiers, markers etc.}
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2020-09-07 10:17:41 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
2016-09-16 19:59:27 +00:00
|
|
|
Summary: %{summary}
|
2019-02-20 00:35:13 +00:00
|
|
|
|
2020-10-02 10:24:34 +00:00
|
|
|
# This is kept for compatibility with Fedora < 33 only:
|
|
|
|
%py_provides python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name} %_description
|
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2019-02-20 00:35:13 +00:00
|
|
|
%if %{with docs}
|
2016-09-16 19:59:27 +00:00
|
|
|
%package -n python-%{pypi_name}-doc
|
|
|
|
Summary: python-packaging documentation
|
2019-02-20 00:35:13 +00:00
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
%description -n python-%{pypi_name}-doc
|
|
|
|
Documentation for python-packaging
|
2019-02-20 00:35:13 +00:00
|
|
|
%endif
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2020-10-02 10:24:34 +00:00
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
%prep
|
2020-10-02 09:44:11 +00:00
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
2020-10-02 10:24:34 +00:00
|
|
|
|
2020-11-30 08:48:42 +00:00
|
|
|
# Do not use furo as HTML theme in docs
|
|
|
|
# furo is not available in Fedora
|
|
|
|
sed -i '/html_theme = "furo"/d' docs/conf.py
|
2016-09-16 19:59:27 +00:00
|
|
|
|
|
|
|
%build
|
2020-10-02 10:24:34 +00:00
|
|
|
%pyproject_wheel
|
2017-03-22 11:19:41 +00:00
|
|
|
|
2019-02-20 00:35:13 +00:00
|
|
|
%if %{with docs}
|
2017-03-22 11:19:41 +00:00
|
|
|
# generate html docs
|
2016-09-16 19:59:27 +00:00
|
|
|
sphinx-build-3 docs html
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
# Do not bundle fonts
|
|
|
|
rm -rf html/_static/fonts/
|
2019-02-20 00:35:13 +00:00
|
|
|
%endif
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2020-10-02 10:24:34 +00:00
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
%install
|
2020-10-02 10:24:34 +00:00
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2019-08-15 12:42:42 +00:00
|
|
|
%if %{with tests}
|
2016-09-16 19:59:27 +00:00
|
|
|
%check
|
2020-10-02 09:49:19 +00:00
|
|
|
%pytest
|
2019-08-15 12:42:42 +00:00
|
|
|
%endif
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2020-10-02 10:24:34 +00:00
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
|
2016-09-16 19:59:27 +00:00
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
|
|
|
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst
|
2020-10-02 10:24:34 +00:00
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2019-02-20 00:35:13 +00:00
|
|
|
%if %{with docs}
|
2016-09-16 19:59:27 +00:00
|
|
|
%files -n python-%{pypi_name}-doc
|
|
|
|
%doc html
|
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
2019-02-20 00:35:13 +00:00
|
|
|
%endif
|
2016-09-16 19:59:27 +00:00
|
|
|
|
2020-10-02 10:24:34 +00:00
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
%changelog
|
2021-01-27 12:08:44 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-14 10:25:44 +00:00
|
|
|
* Mon Dec 14 2020 Lumír Balhar <lbalhar@redhat.com> - 20.8-1
|
|
|
|
- Update to 20.8 (#1906985)
|
|
|
|
|
2020-11-30 08:48:42 +00:00
|
|
|
* Mon Nov 30 2020 Lumír Balhar <lbalhar@redhat.com> - 20.7-1
|
|
|
|
- Update to 20.7 (#1902369)
|
|
|
|
|
2020-10-02 09:44:11 +00:00
|
|
|
* Fri Oct 02 2020 Miro Hrončok <mhroncok@redhat.com> - 20.4-3
|
|
|
|
- Drop the dependency on six to make the package lighter
|
|
|
|
|
2020-07-29 02:37:08 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-01 11:31:10 +00:00
|
|
|
* Mon Jun 01 2020 Lumír Balhar <lbalhar@redhat.com> - 20.4-1
|
|
|
|
- Update to 20.4 (#1838285)
|
|
|
|
|
2020-05-23 07:24:37 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 20.3-3
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-22 12:55:33 +00:00
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 20.3-2
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
2020-03-06 08:14:13 +00:00
|
|
|
* Fri Mar 06 2020 Lumír Balhar <lbalhar@redhat.com> - 20.3-1
|
|
|
|
- Update to 20.3 (#1810738)
|
|
|
|
|
2020-01-30 13:52:36 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-27 09:26:46 +00:00
|
|
|
* Mon Jan 27 2020 Lumír Balhar <lbalhar@redhat.com> - 20.1-1
|
|
|
|
- Update to 20.1 (#1794865)
|
|
|
|
|
2020-01-06 10:39:15 +00:00
|
|
|
* Mon Jan 06 2020 Lumír Balhar <lbalhar@redhat.com> - 20.0-2
|
|
|
|
- Ignore broken tests
|
|
|
|
|
2020-01-06 08:05:18 +00:00
|
|
|
* Mon Jan 06 2020 Lumír Balhar <lbalhar@redhat.com> - 20.0-1
|
|
|
|
- Update to 20.0 (#1788012)
|
|
|
|
|
2019-09-26 09:52:32 +00:00
|
|
|
* Thu Sep 26 2019 Lumír Balhar <lbalhar@redhat.com> - 19.2-1
|
|
|
|
- New upstream version 19.2 (bz#1742388)
|
|
|
|
|
2019-09-23 08:26:44 +00:00
|
|
|
* Mon Sep 23 2019 Lumír Balhar <lbalhar@redhat.com> - 19.0-6
|
|
|
|
- Remove Python 2 subpackage
|
|
|
|
- Make spec fedora-specific
|
|
|
|
|
2019-09-02 09:25:46 +00:00
|
|
|
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-5
|
|
|
|
- Reduce Python 2 build time dependencies
|
|
|
|
|
2019-08-16 14:39:35 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-08-15 12:43:24 +00:00
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-3
|
|
|
|
- Bootstrap for Python 3.8
|
|
|
|
|
2019-07-26 15:01:15 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-05 09:20:42 +00:00
|
|
|
* Mon Feb 04 2019 Lumír Balhar <lbalhar@redhat.com> - 19.0-1
|
|
|
|
- New upstream version
|
|
|
|
|
2019-02-02 08:11:48 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-03-14 16:50:34 +00:00
|
|
|
* Tue Jul 31 2018 Charalampos Stratakis <cstratak@redhat.com> - 17.1-1
|
|
|
|
- Update to 17.1
|
|
|
|
|
2018-07-14 01:17:34 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-16 00:01:36 +00:00
|
|
|
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 16.8-10
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-06-14 12:13:15 +00:00
|
|
|
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 16.8-9
|
|
|
|
- Bootstrap for Python 3.7
|
|
|
|
|
2018-02-09 13:39:59 +00:00
|
|
|
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.8-8
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 09:33:07 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 11:11:49 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-03-22 13:16:41 +00:00
|
|
|
* Wed Mar 22 2017 Lumir Balhar <lbalhar@redhat.com> - 16.8-5
|
2017-03-22 11:19:41 +00:00
|
|
|
- Epel7 compatible spec/package
|
|
|
|
|
2017-02-15 12:48:41 +00:00
|
|
|
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 16.8-4
|
|
|
|
- Rebuild as wheel
|
|
|
|
|
2017-02-11 09:52:09 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:37 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 16.8-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-11-03 09:56:49 +00:00
|
|
|
* Wed Nov 02 2016 Lumir Balhar <lbalhar@redhat.com> - 16.8-1
|
|
|
|
- New upstream version
|
|
|
|
|
2016-09-16 19:59:27 +00:00
|
|
|
* Fri Sep 16 2016 Lumir Balhar <lbalhar@redhat.com> - 16.7-1
|
|
|
|
- Initial package.
|