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