775b64
%global pypi_name pbr
6421ea
f2c122
%if 0%{?fedora} || 0%{?rhel} > 7
6421ea
%global with_python3 1
Alan Pevec ef68eb
%global do_test 0
5b99fc
%endif
5b99fc
775b64
Name:           python-%{pypi_name}
Alan Pevec 00cf5b
Version:        3.1.1
555ce5
Release:        9%{?dist}
775b64
Summary:        Python Build Reasonableness
775b64
775b64
License:        ASL 2.0
775b64
URL:            http://pypi.python.org/pypi/pbr
Alan Pevec f53e4c
Source0:        https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Alan Pevec 2fa240
775b64
BuildArch:      noarch
318a0a
8196b9
8196b9
2ef735
BuildRequires: python2-sphinx >= 1.1.3
2ef735
BuildRequires: python2-oslo-sphinx
8196b9
8196b9
8196b9
%description
8196b9
PBR is a library that injects some useful and sensible default behaviors into 
8196b9
your setuptools run. It started off life as the chunks of code that were copied
8196b9
between all of the OpenStack projects. Around the time that OpenStack hit 18 
8196b9
different projects each with at least 3 active branches, it seems like a good 
8196b9
time to make that code into a proper re-usable library.
8196b9
8196b9
%package -n python2-%{pypi_name}
8196b9
Summary:        Python Build Reasonableness
8196b9
%{?python_provide:%python_provide python2-%{pypi_name}}
8196b9
775b64
BuildRequires:  python2-devel
5b99fc
5b99fc
%if 0%{?do_test} == 1
2ef735
BuildRequires:  python2-coverage
2ef735
BuildRequires:  python2-hacking
2ef735
BuildRequires:  python2-mock
2ef735
BuildRequires:  python2-testrepository
2ef735
BuildRequires:  python2-testresources
2ef735
BuildRequires:  python2-testscenarios
Alan Pevec 2fa240
BuildRequires:  gcc
Alan Pevec 2fa240
BuildRequires:  git
Alan Pevec 2fa240
BuildRequires:  gnupg
5b99fc
%endif
5b99fc
4aa609
8196b9
%description -n python2-%{pypi_name}
8196b9
Manage dynamic plugins for Python applications
4aa609
775b64
6421ea
%if 0%{?with_python3}
8196b9
%package -n python3-%{pypi_name}
6421ea
Summary:        Python Build Reasonableness
8196b9
%{?python_provide:%python_provide python3-%{pypi_name}}
6421ea
8196b9
BuildRequires:  python3-devel
8196b9
8196b9
%description -n python3-%{pypi_name}
6421ea
Manage dynamic plugins for Python applications
6421ea
%endif
6421ea
775b64
%prep
775b64
%setup -q -n %{pypi_name}-%{version}
Alan Pevec 14c5ab
Alan Pevec 2fa240
rm -rf {test-,}requirements.txt pbr.egg-info/requires.txt
775b64
6421ea
%if 0%{?with_python3}
6421ea
rm -rf %{py3dir}
6421ea
cp -a . %{py3dir}
6421ea
%endif
775b64
775b64
%build
Alan Pevec 2fa240
export SKIP_PIP_INSTALL=1
7559b7
%{__python2} setup.py build
775b64
6421ea
%if 0%{?with_python3}
6421ea
pushd %{py3dir}
6421ea
%{__python3} setup.py build
6421ea
popd
6421ea
%endif
6421ea
8196b9
# generate html docs
775b64
sphinx-build doc/source html
775b64
# remove the sphinx-build leftovers
775b64
rm -rf html/.{doctrees,buildinfo}
775b64
775b64
775b64
%install
Alan Pevec 881a54
# Must do the python3 install first because the scripts in /usr/bin are
Alan Pevec 881a54
# overwritten with every setup.py install (and we want the python2 version
Alan Pevec 881a54
# to be the default for now).
6421ea
%if 0%{?with_python3}
6421ea
pushd %{py3dir}
6421ea
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
Alan Pevec 9f42ae
rm -rf %{buildroot}%{python3_sitelib}/pbr/tests
Alan Pevec 9f42ae
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
6421ea
popd
6421ea
%endif
7559b7
%{__python2} setup.py install --skip-build --root %{buildroot}
Alan Pevec 2fa240
rm -rf %{buildroot}%{python_sitelib}/pbr/tests
6421ea
8196b9
%if 0%{?do_test}
775b64
%check
7559b7
%{__python2} setup.py test
5b99fc
%endif
775b64
8196b9
%files -n python2-%{pypi_name}
Alan Pevec ef68eb
%license LICENSE
Alan Pevec ef68eb
%doc html README.rst
Alan Pevec 233f5f
%{_bindir}/pbr
Alan Pevec 2fa240
%{python_sitelib}/*.egg-info
775b64
%{python_sitelib}/%{pypi_name}
742193
6421ea
%if 0%{?with_python3}
6421ea
%files -n python3-pbr
Alan Pevec ef68eb
%license LICENSE
Alan Pevec ef68eb
%doc html README.rst
Alan Pevec 9f42ae
%{_bindir}/pbr-3
Alan Pevec ef68eb
%{python3_sitelib}/*.egg-info
6421ea
%{python3_sitelib}/%{pypi_name}
6421ea
%endif
6421ea
775b64
%changelog
555ce5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-9
555ce5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
555ce5
2d4fd3
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-8
2d4fd3
- Rebuilt for Python 3.7
2d4fd3
2ef735
* Tue Feb 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.1.1-7
2ef735
- Update Python 2 dependency declarations to new packaging standards
2ef735
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
2ef735
7559b7
* Thu Feb 15 2018 Tomas Orsava <torsava@redhat.com> - 3.1.1-6
7559b7
- Switch %%python macro to %%python2
7559b7
5c4879
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-5
5c4879
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5c4879
f2c122
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 3.1.1-4
f2c122
- Cleanup spec file conditionals
f2c122
4e43c2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-3
4e43c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4e43c2
Alan Pevec 9f42ae
* Mon Jul 17 2017 Jan Beran <jberan@redhat.com> 3.1.1-2
Alan Pevec 9f42ae
- Fix of missing Python 3 version of executables in python3-pbr subpackage
Alan Pevec 9f42ae
Alan Pevec 00cf5b
* Wed Jun 28 2017 Alan Pevec <alan.pevec@redhat.com> 3.1.1-1
Alan Pevec 00cf5b
- Update to 3.1.1
Alan Pevec 00cf5b
971c8f
* Fri Mar  3 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 2.0.0-1
971c8f
- Upstream 2.0.0
971c8f
- Drop upstreamed patch
971c8f
Alan Pevec 14c5ab
* Sat Feb 18 2017 Alan Pevec <apevec at="" redhat.com=""> - 1.10.0-4
Alan Pevec 14c5ab
- Fix newer Sphinx and Python 3.5 support LP#1379998
Alan Pevec 14c5ab
fe721c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
fe721c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fe721c
f75974
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-2
f75974
- Rebuild for Python 3.6
f75974
Alan Pevec f53e4c
* Wed Oct 12 2016 Alan Pevec <apevec at="" redhat.com=""> - 1.10.0-1
Alan Pevec f53e4c
- Update to 1.10.0
Alan Pevec f53e4c
6e7000
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-5
6e7000
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6e7000
5f0e74
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-4
5f0e74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5f0e74
8196b9
* Mon Jan 4 2016 Paul Belanger <pabelanger@redhat.com> 1.8.1-3
8196b9
- Provide python2-pbr (rhbz#1282126)
8196b9
- minor spec cleanup
8196b9
009986
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
009986
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
009986
Alan Pevec 4f4c09
* Thu Nov 12 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.1-1
Alan Pevec 4f4c09
- Update to 1.8.1
Alan Pevec 4f4c09
b4b00d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
b4b00d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b4b00d
Alan Pevec a016ff
* Mon Sep 14 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.0-1
Alan Pevec a016ff
- Update to upstream 1.8.0
Alan Pevec a016ff
Alan Pevec dac814
* Tue Sep 08 2015 Alan Pevec <alan.pevec@redhat.com> 1.7.0-1
Alan Pevec dac814
- Update to upstream 1.7.0
Alan Pevec dac814
657fed
* Mon Aug 31 2015 Matthias Runge <mrunge@redhat.com> - 1.6.0-1
657fed
- update to upstream 1.6.0 (rhbz#1249840)
657fed
Alan Pevec 3b90e0
* Sat Aug 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.5.0-1
Alan Pevec 3b90e0
- Update to upstream 1.5.0
Alan Pevec 3b90e0
Alan Pevec ef68eb
* Wed Jul 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.3.0-1
Alan Pevec ef68eb
- Update to upstream 1.3.0
Alan Pevec ef68eb
104636
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
104636
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
104636
Alan Pevec 2fa240
* Tue Jun 02 2015 Alan Pevec <apevec@redhat.com> - 0.11.0-1
Alan Pevec 2fa240
- update to 0.11.0
Alan Pevec 2fa240
Alan Pevec 881a54
* Fri Mar 20 2015 Alan Pevec <apevec@redhat.com> - 0.10.8-1
Alan Pevec 881a54
- update to 0.10.8
Alan Pevec 881a54
Alan Pevec 233f5f
* Mon Dec 29 2014 Alan Pevec <apevec@redhat.com> - 0.10.7-1
Alan Pevec 233f5f
- update to 0.10.7
Alan Pevec 233f5f
dddb81
* Tue Nov 25 2014 Matthias Runge <mrunge@redhat.com> - 0.10.0-1
dddb81
- update to 0.10.0 (rhbz#1191232)
dddb81
2cd8bb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
2cd8bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2cd8bb
a4e387
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.0-2
a4e387
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
a4e387
b3ee31
* Wed Apr 30 2014 Matthias Runge <mrunge@redhat.com> - 0.8.0-1
b3ee31
- update to 0.8.0 (rhbz#1078761)
b3ee31
6421ea
* Tue Apr 08 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-2
6421ea
- Added python3 subpackage.
6421ea
- slight modification of Ralph Beans proposal
6421ea
5b99fc
* Mon Mar 24 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-1
5b99fc
- update to 0.7.0 (rhbz#1078761)
5b99fc
f83589
* Tue Feb 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6.0-1
f83589
- update to 0.6.0 (rhbz#1061124)
f83589
b71f60
* Fri Nov 01 2013 Matthias Runge <mrunge@redhat.com> - 0.5.23-1
b71f60
- update to 0.5.23 (rhbz#1023926)
b71f60
318a0a
* Tue Aug 13 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-2
318a0a
- add requirement python-pip (rhbz#996192)
cb3657
- remove requirements.txt
318a0a
f13711
* Thu Aug 08 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-1
f13711
- update to 0.5.21 (rhbz#990008)
f13711
9a0991
* Fri Jul 26 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-2
9a0991
- remove one buildrequires: python-sphinx
9a0991
6944a0
* Mon Jul 22 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-1
6944a0
- update to python-pbr-0.5.19 (rhbz#983008)
6944a0
45bd1a
* Mon Jun 24 2013 Matthias Runge <mrunge@redhat.com> - 0.5.17-1
45bd1a
- update to python-pbr-0.5.17 (rhbz#976026)
45bd1a
37c09a
* Wed Jun 12 2013 Matthias Runge <mrunge@redhat.com> - 0.5.16-1
37c09a
- update to 0.5.16 (rhbz#973553)
37c09a
eb026d
* Tue Jun 11 2013 Matthias Runge <mrunge@redhat.com> - 0.5.14-1
eb026d
- update to 0.5.14 (rhbz#971736)
eb026d
5d3fd2
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2
5d3fd2
- remove requirement setuptools_git
4aa609
- fix docs build under rhel
5d3fd2
97e9a5
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1
97e9a5
- update to 0.5.11 (rhbz#962132)
97e9a5
- disable tests, as requirements can not be fulfilled right now
742193
775b64
* Thu Apr 25 2013 Matthias Runge <mrunge@redhat.com> - 0.5.8-1
775b64
- Initial package.