b91707
%global pypi_name pbr
b91707
# Disable bootstrap
b91707
%bcond bootstrap 1
b91707
b91707
# EPEL does not have the necessary testing dependencies
b91707
# During the bootstrap the test dependencies are not ready yet
b91707
%bcond tests %[%{defined fedora} && %{without bootstrap}]
b91707
b91707
Name:           python-%{pypi_name}
b91707
Version:        6.0.0
b91707
Release:        1%{?dist}
b91707
Summary:        Python Build Reasonableness
b91707
b91707
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
b91707
License:        Apache-2.0
b91707
URL:            http://pypi.python.org/pypi/pbr
b91707
Source0:        https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
b91707
b91707
BuildArch:      noarch
b91707
b91707
BuildRequires:  python%{python3_pkgversion}-devel
b91707
BuildRequires:  git-core
b91707
%if %{with tests}
b91707
BuildRequires:  gcc
b91707
BuildRequires:  gnupg2
b91707
%endif
b91707
b91707
b91707
%description
b91707
PBR is a library that injects some useful and sensible default behaviors into
b91707
your setuptools run. It started off life as the chunks of code that were copied
b91707
between all of the OpenStack projects. Around the time that OpenStack hit 18
b91707
different projects each with at least 3 active branches, it seems like a good
b91707
time to make that code into a proper re-usable library.
b91707
b91707
%package -n python%{python3_pkgversion}-%{pypi_name}
b91707
Summary:        Python Build Reasonableness
b91707
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
b91707
b91707
Requires:       python%{python3_pkgversion}-setuptools
b91707
Requires:       git-core
b91707
b91707
%description -n python%{python3_pkgversion}-%{pypi_name}
b91707
Manage dynamic plugins for Python applications
b91707
b91707
b91707
%generate_buildrequires
b91707
%pyproject_buildrequires %{?with_tests:-e %{default_toxenv}} %{!?with_bootstrap:-e docs}
b91707
b91707
b91707
%prep
b91707
%autosetup -n %{pypi_name}-%{version} -p1
b91707
b91707
sed -i '/^six.*/d' test-requirements.txt
b91707
sed -i 's/hacking.*/hacking/' test-requirements.txt
b91707
sed -i '/^six.*/d' doc/requirements.txt
b91707
sed -i '/^reno.*/d' doc/requirements.txt
b91707
sed -i 's/^sphinx!=.*/sphinx/' doc/requirements.txt
b91707
sed -i 's/^sphinxcontrib-apidoc.*/sphinxcontrib-apidoc/' doc/requirements.txt
b91707
sed -i 's/^openstackdocstheme.*/openstackdocstheme/' doc/requirements.txt
b91707
b91707
b91707
%build
b91707
%pyproject_wheel
b91707
b91707
%if %{without bootstrap}
b91707
# generate html docs
b91707
PYTHONPATH=%{pyproject_build_lib} sphinx-build doc/source html
b91707
# remove the sphinx-build leftovers
b91707
rm -rf html/.{doctrees,buildinfo}
b91707
%endif
b91707
b91707
b91707
%install
b91707
%pyproject_install
b91707
%pyproject_save_files %{pypi_name}
b91707
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
b91707
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
b91707
b91707
b91707
%if %{with tests}
b91707
%check
b91707
export PYTHONDONTWRITEBYTECODE=1
b91707
# Exclude tests that require networking
b91707
%tox -e %{default_toxenv} -- -- -E 'test_requirement_parsing|test_pep_517_support'
b91707
%endif
b91707
b91707
%files -n python%{python3_pkgversion}-pbr -f %{pyproject_files}
b91707
%license LICENSE
b91707
%doc README.rst %{?without_bootstrap:html}
b91707
%{_bindir}/pbr
b91707
%{_bindir}/pbr-3
b91707
b91707
%changelog
b91707
* Fri Aug 30 2024 Joel Capitao <jcapitao@redhat.com> - 6.0.0-1
b91707
- Update to 6.0.0
b91707
b91707
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 5.11.1-10
b91707
- convert license to SPDX
b91707
b91707
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-9
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
b91707
b91707
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 5.11.1-8
b91707
- Rebuilt for Python 3.13
b91707
b91707
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-7
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b91707
b91707
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-6
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b91707
b91707
* Fri Oct 20 2023 Karolina Surma <ksurma@redhat.com> - 5.11.1-5
b91707
- When boostrapping the package switch off the tests
b91707
b91707
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-4
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b91707
b91707
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 5.11.1-3
b91707
- Rebuilt for Python 3.12
b91707
b91707
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 5.11.1-2
b91707
- Bootstrap for Python 3.12
b91707
b91707
* Thu Feb 09 2023 Joel Capitao <jcapitao@redhat.com> - 5.11.1-1
b91707
- Update to latest upstream (#2136463)
b91707
b91707
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
b91707
b91707
* Wed Aug 17 2022 Joel Capitao <jcapitao@redhat.com> - 5.10.0-1
b91707
- Update to 5.10.0. Fixes rhbz#2117702
b91707
b91707
* Sat Jul 23 2022 Maxwell G <gotmax@e.email> - 5.9.0-1
b91707
- Update to 5.9.0. Fixes rhbz#2020182.
b91707
- Re-enable unit tests
b91707
b91707
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-6
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b91707
b91707
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 5.6.0-5
b91707
- Rebuilt for Python 3.11
b91707
b91707
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.6.0-4
b91707
- Bootstrap for Python 3.11
b91707
b91707
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-3
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b91707
b91707
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b91707
b91707
* Wed Jul 21 2021 Joel Capitao <jcapitao@redhat.com> - 5.6.0-1
b91707
- Update to latest release (#1953661)
b91707
- Use git-core as BR instead of git
b91707
b91707
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.5.1-4
b91707
- Rebuilt for Python 3.10
b91707
b91707
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 5.5.1-3
b91707
- Bootstrap for Python 3.10
b91707
b91707
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b91707
b91707
* Thu Oct 29 2020 Joel Capitao <jcapitao@redhat.com> - 5.5.1-1
b91707
- Update to 5.5.1 (rhbz#1684239)
b91707
b91707
* Mon Sep 14 2020 Joel Capitao <jcapitao@redhat.com> - 5.5.0-1
b91707
- Update to 5.5.0
b91707
b91707
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-6
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b91707
b91707
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-5
b91707
- Rebuilt for Python 3.9
b91707
b91707
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-4
b91707
- Bootstrap for Python 3.9
b91707
b91707
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-3
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b91707
b91707
* Mon Nov 18 2019 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-2
b91707
- Subpackage python2-pbr has been removed
b91707
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b91707
b91707
* Tue Sep 10 2019 Yatin Karel <ykarel@redhat.com> - 5.4.3-1
b91707
- Update to 5.4.3
b91707
b91707
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.2-7
b91707
- Rebuilt for Python 3.8
b91707
b91707
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.2-6
b91707
- Bootstrap for Python 3.8
b91707
b91707
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-4
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b91707
b91707
* Mon Jun 24 2019 Yatin Karel <ykarel@redhat.com> - 5.1.2-3
b91707
- Fix FTBFS: No more python2-openstackdocstheme
b91707
b91707
* Thu Feb 07 2019 Javier Peña <jpena@redhat.com> - 5.1.2-2
b91707
- Fix doc requirements
b91707
b91707
* Thu Feb 07 2019 Javier Peña <jpena@redhat.com> - 5.1.2-1
b91707
- Update to 5.1.2 (rhbz#1671081)
b91707
b91707
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b91707
b91707
* Tue Sep 04 2018 Matthias Runge <mrunge@redhat.com> - 4.2.0-1
b91707
- update to 4.2.0 (rhbz#1605192)
b91707
b91707
* Wed Aug  8 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 4.1.1-2
b91707
- Add runtime requirement to git-core
b91707
b91707
* Fri Jul 20 2018 Matthias Runge <mrunge@redhat.com> - 4.1.1-1
b91707
- rebase to 4.1.1 (rhbz#1605192)
b91707
b91707
* Wed Jul 18 2018 Haïkel Guémar  <hguemar@fedoraproject.org> - 4.1.0-2
b91707
- Add dependency to setuptools (RHBZ#1601767)
b91707
b91707
* Tue Jul 17 2018 Matthias Runge <mrunge@redhat.com> - 4.1.0-1
b91707
- update to 4.1.0 (rhbz#1561252)
b91707
- modernize spec
b91707
b91707
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-9
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b91707
b91707
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-8
b91707
- Rebuilt for Python 3.7
b91707
b91707
* Tue Feb 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.1.1-7
b91707
- Update Python 2 dependency declarations to new packaging standards
b91707
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
b91707
b91707
* Thu Feb 15 2018 Tomas Orsava <torsava@redhat.com> - 3.1.1-6
b91707
- Switch %%python macro to %%python2
b91707
b91707
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-5
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b91707
b91707
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 3.1.1-4
b91707
- Cleanup spec file conditionals
b91707
b91707
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-3
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b91707
b91707
* Mon Jul 17 2017 Jan Beran <jberan@redhat.com> 3.1.1-2
b91707
- Fix of missing Python 3 version of executables in python3-pbr subpackage
b91707
b91707
* Wed Jun 28 2017 Alan Pevec <alan.pevec@redhat.com> 3.1.1-1
b91707
- Update to 3.1.1
b91707
b91707
* Fri Mar  3 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 2.0.0-1
b91707
- Upstream 2.0.0
b91707
- Drop upstreamed patch
b91707
b91707
* Sat Feb 18 2017 Alan Pevec <apevec AT redhat.com> - 1.10.0-4
b91707
- Fix newer Sphinx and Python 3.5 support LP#1379998
b91707
b91707
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b91707
b91707
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-2
b91707
- Rebuild for Python 3.6
b91707
b91707
* Wed Oct 12 2016 Alan Pevec <apevec AT redhat.com> - 1.10.0-1
b91707
- Update to 1.10.0
b91707
b91707
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-5
b91707
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b91707
b91707
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-4
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b91707
b91707
* Mon Jan 4 2016 Paul Belanger <pabelanger@redhat.com> 1.8.1-3
b91707
- Provide python2-pbr (rhbz#1282126)
b91707
- minor spec cleanup
b91707
b91707
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b91707
b91707
* Thu Nov 12 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.1-1
b91707
- Update to 1.8.1
b91707
b91707
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b91707
b91707
* Mon Sep 14 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.0-1
b91707
- Update to upstream 1.8.0
b91707
b91707
* Tue Sep 08 2015 Alan Pevec <alan.pevec@redhat.com> 1.7.0-1
b91707
- Update to upstream 1.7.0
b91707
b91707
* Mon Aug 31 2015 Matthias Runge <mrunge@redhat.com> - 1.6.0-1
b91707
- update to upstream 1.6.0 (rhbz#1249840)
b91707
b91707
* Sat Aug 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.5.0-1
b91707
- Update to upstream 1.5.0
b91707
b91707
* Wed Jul 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.3.0-1
b91707
- Update to upstream 1.3.0
b91707
b91707
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b91707
b91707
* Tue Jun 02 2015 Alan Pevec <apevec@redhat.com> - 0.11.0-1
b91707
- update to 0.11.0
b91707
b91707
* Fri Mar 20 2015 Alan Pevec <apevec@redhat.com> - 0.10.8-1
b91707
- update to 0.10.8
b91707
b91707
* Mon Dec 29 2014 Alan Pevec <apevec@redhat.com> - 0.10.7-1
b91707
- update to 0.10.7
b91707
b91707
* Tue Nov 25 2014 Matthias Runge <mrunge@redhat.com> - 0.10.0-1
b91707
- update to 0.10.0 (rhbz#1191232)
b91707
b91707
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
b91707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b91707
b91707
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.0-2
b91707
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
b91707
b91707
* Wed Apr 30 2014 Matthias Runge <mrunge@redhat.com> - 0.8.0-1
b91707
- update to 0.8.0 (rhbz#1078761)
b91707
b91707
* Tue Apr 08 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-2
b91707
- Added python3 subpackage.
b91707
- slight modification of Ralph Beans proposal
b91707
b91707
* Mon Mar 24 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-1
b91707
- update to 0.7.0 (rhbz#1078761)
b91707
b91707
* Tue Feb 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6.0-1
b91707
- update to 0.6.0 (rhbz#1061124)
b91707
b91707
* Fri Nov 01 2013 Matthias Runge <mrunge@redhat.com> - 0.5.23-1
b91707
- update to 0.5.23 (rhbz#1023926)
b91707
b91707
* Tue Aug 13 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-2
b91707
- add requirement python-pip (rhbz#996192)
b91707
- remove requirements.txt
b91707
b91707
* Thu Aug 08 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-1
b91707
- update to 0.5.21 (rhbz#990008)
b91707
b91707
* Fri Jul 26 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-2
b91707
- remove one buildrequires: python-sphinx
b91707
b91707
* Mon Jul 22 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-1
b91707
- update to python-pbr-0.5.19 (rhbz#983008)
b91707
b91707
* Mon Jun 24 2013 Matthias Runge <mrunge@redhat.com> - 0.5.17-1
b91707
- update to python-pbr-0.5.17 (rhbz#976026)
b91707
b91707
* Wed Jun 12 2013 Matthias Runge <mrunge@redhat.com> - 0.5.16-1
b91707
- update to 0.5.16 (rhbz#973553)
b91707
b91707
* Tue Jun 11 2013 Matthias Runge <mrunge@redhat.com> - 0.5.14-1
b91707
- update to 0.5.14 (rhbz#971736)
b91707
b91707
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2
b91707
- remove requirement setuptools_git
b91707
- fix docs build under rhel
b91707
b91707
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1
b91707
- update to 0.5.11 (rhbz#962132)
b91707
- disable tests, as requirements can not be fulfilled right now
b91707
b91707
* Thu Apr 25 2013 Matthias Runge <mrunge@redhat.com> - 0.5.8-1
b91707
- Initial package.