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