b2c99d
%global srcname distlib
b2c99d
# tests require network access
b2c99d
%bcond_with check
b2c99d
b2c99d
Name:       python-distlib
b2c99d
Version:    0.3.1
b2c99d
Release:    4%{?dist}
b2c99d
Summary:    Low-level components of distutils2/packaging, augmented with higher-level APIs
b2c99d
b2c99d
License:    Python
b2c99d
URL:        https://readthedocs.org/projects/distlib/
b2c99d
Source0:    %pypi_source %{srcname} %{version} zip
b2c99d
b2c99d
Patch0: distlib_unbundle.patch
b2c99d
b2c99d
BuildArch:  noarch
b2c99d
b2c99d
BuildRequires:  python%{python3_pkgversion}-devel
b2c99d
BuildRequires:  pyproject-rpm-macros
b2c99d
b2c99d
%description
b2c99d
Distlib contains the implementations of the packaging PEPs and other low-level
b2c99d
features which relate to packaging, distribution and deployment of Python
b2c99d
software. If Distlib can be made genuinely useful, then it is possible for
b2c99d
third-party packaging tools to transition to using it. Their developers and
b2c99d
users then benefit from standardised implementation of low-level functions,
b2c99d
time saved by not having to reinvent wheels, and improved interoperability
b2c99d
between tools.
b2c99d
b2c99d
%package -n python%{python3_pkgversion}-%{srcname}
b2c99d
Summary: Low-level components of distutils2/packaging, augmented with higher-level APIs
b2c99d
b2c99d
%description -n python%{python3_pkgversion}-%{srcname}
b2c99d
Distlib contains the implementations of the packaging PEPs and other low-level
b2c99d
features which relate to packaging, distribution and deployment of Python
b2c99d
software. If Distlib can be made genuinely useful, then it is possible for
b2c99d
third-party packaging tools to transition to using it. Their developers and
b2c99d
users then benefit from standardised implementation of low-level functions,
b2c99d
time saved by not having to reinvent wheels, and improved interoperability
b2c99d
between tools.
b2c99d
b2c99d
%prep
b2c99d
%setup -q -n %{srcname}-%{version}
b2c99d
%patch0 -p1
b2c99d
b2c99d
rm distlib/*.exe
b2c99d
rm -rf distlib/_backport
b2c99d
rm tests/test_shutil.py*
b2c99d
rm tests/test_sysconfig.py*
b2c99d
b2c99d
%generate_buildrequires
b2c99d
%pyproject_buildrequires
b2c99d
b2c99d
%build
b2c99d
%pyproject_wheel
b2c99d
b2c99d
%install
b2c99d
%pyproject_install
b2c99d
%pyproject_save_files %{srcname}
b2c99d
b2c99d
%if %{with check}
b2c99d
%check
b2c99d
export PYTHONHASHSEED=0
b2c99d
%{python3} setup.py test
b2c99d
%endif # with_tests
b2c99d
b2c99d
%files -n python%{python3_pkgversion}-%{srcname} -f %pyproject_files
b2c99d
%doc README.rst
b2c99d
%license LICENSE.txt
b2c99d
b2c99d
%changelog
b2c99d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b2c99d
b2c99d
* Fri Sep 11 2020 Charalampos Stratakis <cstratak@redhat.com> - 0.3.1-3
b2c99d
- Convert the package to pyproject macros
b2c99d
b2c99d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b2c99d
b2c99d
* Wed Jul 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 0.3.1-1
b2c99d
- Update to 0.3.1 (#1851644)
b2c99d
b2c99d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-2
b2c99d
- Rebuilt for Python 3.9
b2c99d
b2c99d
* Thu Mar 19 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0.3.0-1
b2c99d
- Update to 0.3.0
b2c99d
b2c99d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-7
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b2c99d
b2c99d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.7-6
b2c99d
- Rebuilt for Python 3.8.0rc1 (#1748018)
b2c99d
b2c99d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.7-5
b2c99d
- Rebuilt for Python 3.8
b2c99d
b2c99d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-4
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b2c99d
b2c99d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-3
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b2c99d
b2c99d
* Tue Oct 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.2.7-2
b2c99d
- Remove the python2 subpackage
b2c99d
b2c99d
* Mon Jul 30 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.7-1
b2c99d
- Update to 0.2.7
b2c99d
b2c99d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-9
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b2c99d
b2c99d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-8
b2c99d
- Rebuilt for Python 3.7
b2c99d
b2c99d
* Sat Apr 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-7
b2c99d
- Fix the license tag
b2c99d
b2c99d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-6
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b2c99d
b2c99d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-5
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b2c99d
b2c99d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-4
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b2c99d
b2c99d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-3
b2c99d
- Rebuild for Python 3.6
b2c99d
b2c99d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
b2c99d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b2c99d
b2c99d
* Mon May 16 2016 Charalampos Stratakis <cstratak@redhat.com> 0.2.3-1
b2c99d
- Update to 0.2.3
b2c99d
- Add the license tag
b2c99d
- Use modern python RPM macros
b2c99d
- Provide a python 2 subpackage
b2c99d
- Use the python provides macros
b2c99d
- Changed to newest pypi URL format
b2c99d
b2c99d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b2c99d
b2c99d
* Mon Nov 23 2015 Matej Stuchlik <mstuchli@redhat.com> - 0.2.1-2
b2c99d
- Update to 0.2.1
b2c99d
b2c99d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-3
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b2c99d
b2c99d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-2
b2c99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b2c99d
b2c99d
* Thu Jun 05 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.1.9-1
b2c99d
- Initial spec