5fc8dc
%global pypi_name pbr
5fc8dc
5fc8dc
%bcond_with bootstrap
5fc8dc
5fc8dc
%if 0%{?fedora} || 0%{?rhel} > 7
5fc8dc
%global do_test 0
5fc8dc
%endif
5fc8dc
5fc8dc
Name:           python-%{pypi_name}
5fc8dc
Version:        5.5.1
5fc8dc
Release:        2%{?dist}
5fc8dc
Summary:        Python Build Reasonableness
5fc8dc
5fc8dc
License:        ASL 2.0
5fc8dc
URL:            http://pypi.python.org/pypi/pbr
5fc8dc
Source0:        https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
5fc8dc
5fc8dc
BuildArch:      noarch
5fc8dc
5fc8dc
BuildRequires:  git
5fc8dc
%if %{without bootstrap}
5fc8dc
BuildRequires: python%{python3_pkgversion}-sphinx >= 1.1.3
5fc8dc
BuildRequires: python%{python3_pkgversion}-openstackdocstheme
5fc8dc
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-apidoc
5fc8dc
%endif
5fc8dc
5fc8dc
5fc8dc
%description
5fc8dc
PBR is a library that injects some useful and sensible default behaviors into
5fc8dc
your setuptools run. It started off life as the chunks of code that were copied
5fc8dc
between all of the OpenStack projects. Around the time that OpenStack hit 18
5fc8dc
different projects each with at least 3 active branches, it seems like a good
5fc8dc
time to make that code into a proper re-usable library.
5fc8dc
5fc8dc
%package -n python%{python3_pkgversion}-%{pypi_name}
5fc8dc
Summary:        Python Build Reasonableness
5fc8dc
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
5fc8dc
5fc8dc
BuildRequires:  python%{python3_pkgversion}-devel
5fc8dc
BuildRequires:  python%{python3_pkgversion}-setuptools
5fc8dc
%if 0%{?do_test} == 1
5fc8dc
BuildRequires:  python%{python3_pkgversion}-coverage
5fc8dc
BuildRequires:  python%{python3_pkgversion}-hacking
5fc8dc
BuildRequires:  python%{python3_pkgversion}-mock
5fc8dc
BuildRequires:  python%{python3_pkgversion}-testrepository
5fc8dc
BuildRequires:  python%{python3_pkgversion}-testresources
5fc8dc
BuildRequires:  python%{python3_pkgversion}-testscenarios
5fc8dc
BuildRequires:  gcc
5fc8dc
BuildRequires:  gnupg
5fc8dc
%endif
5fc8dc
Requires:       python%{python3_pkgversion}-setuptools
5fc8dc
Requires:       git-core
5fc8dc
5fc8dc
# /usr/bin/pbr moved from:
5fc8dc
Conflicts:      python2-%{pypi_name} < 5.4.3-2
5fc8dc
5fc8dc
%description -n python%{python3_pkgversion}-%{pypi_name}
5fc8dc
Manage dynamic plugins for Python applications
5fc8dc
5fc8dc
%prep
5fc8dc
%autosetup -n %{pypi_name}-%{version} -S git
5fc8dc
5fc8dc
rm -rf {test-,}requirements.txt pbr.egg-info/requires.txt
5fc8dc
5fc8dc
5fc8dc
%build
5fc8dc
export SKIP_PIP_INSTALL=1
5fc8dc
%py3_build
5fc8dc
5fc8dc
%if %{without bootstrap}
5fc8dc
# generate html docs
5fc8dc
sphinx-build doc/source html
5fc8dc
# remove the sphinx-build leftovers
5fc8dc
rm -rf html/.{doctrees,buildinfo}
5fc8dc
%endif
5fc8dc
5fc8dc
5fc8dc
%install
5fc8dc
%py3_install
5fc8dc
rm -rf %{buildroot}%{python3_sitelib}/pbr/tests
5fc8dc
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
5fc8dc
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
5fc8dc
5fc8dc
5fc8dc
%if 0%{?do_test}
5fc8dc
%check
5fc8dc
%{__python3} setup.py test
5fc8dc
%endif
5fc8dc
5fc8dc
%files -n python%{python3_pkgversion}-pbr
5fc8dc
%license LICENSE
5fc8dc
%doc README.rst
5fc8dc
%if %{without bootstrap}
5fc8dc
%doc html README.rst
5fc8dc
%endif
5fc8dc
%{_bindir}/pbr
5fc8dc
%{_bindir}/pbr-3
5fc8dc
%{python3_sitelib}/*.egg-info/
5fc8dc
%{python3_sitelib}/%{pypi_name}/
5fc8dc
5fc8dc
%changelog
5fc8dc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5fc8dc
5fc8dc
* Thu Oct 29 2020 Joel Capitao <jcapitao@redhat.com> - 5.5.1-1
5fc8dc
- Update to 5.5.1 (rhbz#1684239)
5fc8dc
5fc8dc
* Mon Sep 14 2020 Joel Capitao <jcapitao@redhat.com> - 5.5.0-1
5fc8dc
- Update to 5.5.0
5fc8dc
5fc8dc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-6
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5fc8dc
5fc8dc
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-5
5fc8dc
- Rebuilt for Python 3.9
5fc8dc
5fc8dc
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-4
5fc8dc
- Bootstrap for Python 3.9
5fc8dc
5fc8dc
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-3
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5fc8dc
5fc8dc
* Mon Nov 18 2019 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-2
5fc8dc
- Subpackage python2-pbr has been removed
5fc8dc
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
5fc8dc
5fc8dc
* Tue Sep 10 2019 Yatin Karel <ykarel@redhat.com> - 5.4.3-1
5fc8dc
- Update to 5.4.3
5fc8dc
5fc8dc
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.2-7
5fc8dc
- Rebuilt for Python 3.8
5fc8dc
5fc8dc
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.2-6
5fc8dc
- Bootstrap for Python 3.8
5fc8dc
5fc8dc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-4
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5fc8dc
5fc8dc
* Mon Jun 24 2019 Yatin Karel <ykarel@redhat.com> - 5.1.2-3
5fc8dc
- Fix FTBFS: No more python2-openstackdocstheme
5fc8dc
5fc8dc
* Thu Feb 07 2019 Javier Peña <jpena@redhat.com> - 5.1.2-2
5fc8dc
- Fix doc requirements
5fc8dc
5fc8dc
* Thu Feb 07 2019 Javier Peña <jpena@redhat.com> - 5.1.2-1
5fc8dc
- Update to 5.1.2 (rhbz#1671081)
5fc8dc
5fc8dc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5fc8dc
5fc8dc
* Tue Sep 04 2018 Matthias Runge <mrunge@redhat.com> - 4.2.0-1
5fc8dc
- update to 4.2.0 (rhbz#1605192)
5fc8dc
5fc8dc
* Wed Aug  8 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 4.1.1-2
5fc8dc
- Add runtime requirement to git-core
5fc8dc
5fc8dc
* Fri Jul 20 2018 Matthias Runge <mrunge@redhat.com> - 4.1.1-1
5fc8dc
- rebase to 4.1.1 (rhbz#1605192)
5fc8dc
5fc8dc
* Wed Jul 18 2018 Haïkel Guémar  <hguemar@fedoraproject.org> - 4.1.0-2
5fc8dc
- Add dependency to setuptools (RHBZ#1601767)
5fc8dc
5fc8dc
* Tue Jul 17 2018 Matthias Runge <mrunge@redhat.com> - 4.1.0-1
5fc8dc
- update to 4.1.0 (rhbz#1561252)
5fc8dc
- modernize spec
5fc8dc
5fc8dc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-9
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5fc8dc
5fc8dc
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-8
5fc8dc
- Rebuilt for Python 3.7
5fc8dc
5fc8dc
* Tue Feb 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.1.1-7
5fc8dc
- Update Python 2 dependency declarations to new packaging standards
5fc8dc
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
5fc8dc
5fc8dc
* Thu Feb 15 2018 Tomas Orsava <torsava@redhat.com> - 3.1.1-6
5fc8dc
- Switch %%python macro to %%python2
5fc8dc
5fc8dc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-5
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5fc8dc
5fc8dc
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 3.1.1-4
5fc8dc
- Cleanup spec file conditionals
5fc8dc
5fc8dc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-3
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5fc8dc
5fc8dc
* Mon Jul 17 2017 Jan Beran <jberan@redhat.com> 3.1.1-2
5fc8dc
- Fix of missing Python 3 version of executables in python3-pbr subpackage
5fc8dc
5fc8dc
* Wed Jun 28 2017 Alan Pevec <alan.pevec@redhat.com> 3.1.1-1
5fc8dc
- Update to 3.1.1
5fc8dc
5fc8dc
* Fri Mar  3 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 2.0.0-1
5fc8dc
- Upstream 2.0.0
5fc8dc
- Drop upstreamed patch
5fc8dc
5fc8dc
* Sat Feb 18 2017 Alan Pevec <apevec AT redhat.com> - 1.10.0-4
5fc8dc
- Fix newer Sphinx and Python 3.5 support LP#1379998
5fc8dc
5fc8dc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5fc8dc
5fc8dc
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-2
5fc8dc
- Rebuild for Python 3.6
5fc8dc
5fc8dc
* Wed Oct 12 2016 Alan Pevec <apevec AT redhat.com> - 1.10.0-1
5fc8dc
- Update to 1.10.0
5fc8dc
5fc8dc
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-5
5fc8dc
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5fc8dc
5fc8dc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-4
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5fc8dc
5fc8dc
* Mon Jan 4 2016 Paul Belanger <pabelanger@redhat.com> 1.8.1-3
5fc8dc
- Provide python2-pbr (rhbz#1282126)
5fc8dc
- minor spec cleanup
5fc8dc
5fc8dc
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5fc8dc
5fc8dc
* Thu Nov 12 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.1-1
5fc8dc
- Update to 1.8.1
5fc8dc
5fc8dc
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5fc8dc
5fc8dc
* Mon Sep 14 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.0-1
5fc8dc
- Update to upstream 1.8.0
5fc8dc
5fc8dc
* Tue Sep 08 2015 Alan Pevec <alan.pevec@redhat.com> 1.7.0-1
5fc8dc
- Update to upstream 1.7.0
5fc8dc
5fc8dc
* Mon Aug 31 2015 Matthias Runge <mrunge@redhat.com> - 1.6.0-1
5fc8dc
- update to upstream 1.6.0 (rhbz#1249840)
5fc8dc
5fc8dc
* Sat Aug 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.5.0-1
5fc8dc
- Update to upstream 1.5.0
5fc8dc
5fc8dc
* Wed Jul 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.3.0-1
5fc8dc
- Update to upstream 1.3.0
5fc8dc
5fc8dc
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5fc8dc
5fc8dc
* Tue Jun 02 2015 Alan Pevec <apevec@redhat.com> - 0.11.0-1
5fc8dc
- update to 0.11.0
5fc8dc
5fc8dc
* Fri Mar 20 2015 Alan Pevec <apevec@redhat.com> - 0.10.8-1
5fc8dc
- update to 0.10.8
5fc8dc
5fc8dc
* Mon Dec 29 2014 Alan Pevec <apevec@redhat.com> - 0.10.7-1
5fc8dc
- update to 0.10.7
5fc8dc
5fc8dc
* Tue Nov 25 2014 Matthias Runge <mrunge@redhat.com> - 0.10.0-1
5fc8dc
- update to 0.10.0 (rhbz#1191232)
5fc8dc
5fc8dc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5fc8dc
5fc8dc
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.0-2
5fc8dc
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
5fc8dc
5fc8dc
* Wed Apr 30 2014 Matthias Runge <mrunge@redhat.com> - 0.8.0-1
5fc8dc
- update to 0.8.0 (rhbz#1078761)
5fc8dc
5fc8dc
* Tue Apr 08 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-2
5fc8dc
- Added python3 subpackage.
5fc8dc
- slight modification of Ralph Beans proposal
5fc8dc
5fc8dc
* Mon Mar 24 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-1
5fc8dc
- update to 0.7.0 (rhbz#1078761)
5fc8dc
5fc8dc
* Tue Feb 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6.0-1
5fc8dc
- update to 0.6.0 (rhbz#1061124)
5fc8dc
5fc8dc
* Fri Nov 01 2013 Matthias Runge <mrunge@redhat.com> - 0.5.23-1
5fc8dc
- update to 0.5.23 (rhbz#1023926)
5fc8dc
5fc8dc
* Tue Aug 13 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-2
5fc8dc
- add requirement python-pip (rhbz#996192)
5fc8dc
- remove requirements.txt
5fc8dc
5fc8dc
* Thu Aug 08 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-1
5fc8dc
- update to 0.5.21 (rhbz#990008)
5fc8dc
5fc8dc
* Fri Jul 26 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-2
5fc8dc
- remove one buildrequires: python-sphinx
5fc8dc
5fc8dc
* Mon Jul 22 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-1
5fc8dc
- update to python-pbr-0.5.19 (rhbz#983008)
5fc8dc
5fc8dc
* Mon Jun 24 2013 Matthias Runge <mrunge@redhat.com> - 0.5.17-1
5fc8dc
- update to python-pbr-0.5.17 (rhbz#976026)
5fc8dc
5fc8dc
* Wed Jun 12 2013 Matthias Runge <mrunge@redhat.com> - 0.5.16-1
5fc8dc
- update to 0.5.16 (rhbz#973553)
5fc8dc
5fc8dc
* Tue Jun 11 2013 Matthias Runge <mrunge@redhat.com> - 0.5.14-1
5fc8dc
- update to 0.5.14 (rhbz#971736)
5fc8dc
5fc8dc
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2
5fc8dc
- remove requirement setuptools_git
5fc8dc
- fix docs build under rhel
5fc8dc
5fc8dc
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1
5fc8dc
- update to 0.5.11 (rhbz#962132)
5fc8dc
- disable tests, as requirements can not be fulfilled right now
5fc8dc
5fc8dc
* Thu Apr 25 2013 Matthias Runge <mrunge@redhat.com> - 0.5.8-1
5fc8dc
- Initial package.