You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-pbr/python-pbr.spec

212 lines
5.7 KiB

12 years ago
%global pypi_name pbr
%if 0%{?fedora}
%global with_python3 1
%endif
11 years ago
%if 0%{?fedora} > 19
# we don't have the necessary br's, yet
%global do_test 0
11 years ago
%endif
12 years ago
Name: python-%{pypi_name}
Version: 1.8.0
Release: 2%{?dist}
12 years ago
Summary: Python Build Reasonableness
License: ASL 2.0
URL: http://pypi.python.org/pypi/pbr
Source0: http://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
10 years ago
12 years ago
BuildArch: noarch
12 years ago
BuildRequires: python2-devel
11 years ago
%if 0%{?do_test} == 1
10 years ago
BuildRequires: python-coverage
BuildRequires: python-hacking
BuildRequires: python-mock
BuildRequires: python-testrepository
11 years ago
BuildRequires: python-testresources
10 years ago
BuildRequires: python-testscenarios
BuildRequires: gcc
BuildRequires: git
BuildRequires: gnupg
11 years ago
%endif
%if 0%{?rhel}==6
BuildRequires: python-sphinx10
%else
BuildRequires: python-sphinx >= 1.1.3
%endif
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
12 years ago
%description
PBR is a library that injects some useful and sensible default behaviors into
your setuptools run. It started off life as the chunks of code that were copied
between all of the OpenStack projects. Around the time that OpenStack hit 18
different projects each with at least 3 active branches, it seems like a good
time to make that code into a proper re-usable library.
%if 0%{?with_python3}
%package -n python3-pbr
Summary: Python Build Reasonableness
%description -n python3-pbr
Manage dynamic plugins for Python applications
%endif
12 years ago
%prep
%setup -q -n %{pypi_name}-%{version}
10 years ago
rm -rf {test-,}requirements.txt pbr.egg-info/requires.txt
12 years ago
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
12 years ago
%build
10 years ago
export SKIP_PIP_INSTALL=1
12 years ago
%{__python} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif
12 years ago
# generate html docs
%if 0%{?rhel}==6
sphinx-1.0-build doc/source html
%else
12 years ago
sphinx-build doc/source html
%endif
12 years ago
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
10 years ago
# Must do the python3 install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
popd
%endif
10 years ago
%{__python} setup.py install --skip-build --root %{buildroot}
10 years ago
rm -rf %{buildroot}%{python_sitelib}/pbr/tests
11 years ago
%if 0%{?do_test}
12 years ago
%check
11 years ago
%{__python} setup.py test
%endif
12 years ago
%files
%license LICENSE
%doc html README.rst
10 years ago
%{_bindir}/pbr
10 years ago
%{python_sitelib}/*.egg-info
12 years ago
%{python_sitelib}/%{pypi_name}
%if 0%{?with_python3}
%files -n python3-pbr
%license LICENSE
%doc html README.rst
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{pypi_name}
%endif
12 years ago
%changelog
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Mon Sep 14 2015 Alan Pevec <alan.pevec@redhat.com> 1.8.0-1
- Update to upstream 1.8.0
* Tue Sep 08 2015 Alan Pevec <alan.pevec@redhat.com> 1.7.0-1
- Update to upstream 1.7.0
* Mon Aug 31 2015 Matthias Runge <mrunge@redhat.com> - 1.6.0-1
- update to upstream 1.6.0 (rhbz#1249840)
* Sat Aug 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.5.0-1
- Update to upstream 1.5.0
* Wed Jul 15 2015 Alan Pevec <alan.pevec@redhat.com> 1.3.0-1
- Update to upstream 1.3.0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
10 years ago
* Tue Jun 02 2015 Alan Pevec <apevec@redhat.com> - 0.11.0-1
- update to 0.11.0
10 years ago
* Fri Mar 20 2015 Alan Pevec <apevec@redhat.com> - 0.10.8-1
- update to 0.10.8
10 years ago
* Mon Dec 29 2014 Alan Pevec <apevec@redhat.com> - 0.10.7-1
- update to 0.10.7
* Tue Nov 25 2014 Matthias Runge <mrunge@redhat.com> - 0.10.0-1
- update to 0.10.0 (rhbz#1191232)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
11 years ago
* Wed Apr 30 2014 Matthias Runge <mrunge@redhat.com> - 0.8.0-1
- update to 0.8.0 (rhbz#1078761)
* Tue Apr 08 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-2
- Added python3 subpackage.
- slight modification of Ralph Beans proposal
11 years ago
* Mon Mar 24 2014 Matthias Runge <mrunge@redhat.com> - 0.7.0-1
- update to 0.7.0 (rhbz#1078761)
* Tue Feb 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6.0-1
- update to 0.6.0 (rhbz#1061124)
* Fri Nov 01 2013 Matthias Runge <mrunge@redhat.com> - 0.5.23-1
- update to 0.5.23 (rhbz#1023926)
* Tue Aug 13 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-2
- add requirement python-pip (rhbz#996192)
- remove requirements.txt
* Thu Aug 08 2013 Matthias Runge <mrunge@redhat.com> - 0.5.21-1
- update to 0.5.21 (rhbz#990008)
* Fri Jul 26 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-2
- remove one buildrequires: python-sphinx
12 years ago
* Mon Jul 22 2013 Matthias Runge <mrunge@redhat.com> - 0.5.19-1
- update to python-pbr-0.5.19 (rhbz#983008)
* Mon Jun 24 2013 Matthias Runge <mrunge@redhat.com> - 0.5.17-1
- update to python-pbr-0.5.17 (rhbz#976026)
12 years ago
* Wed Jun 12 2013 Matthias Runge <mrunge@redhat.com> - 0.5.16-1
- update to 0.5.16 (rhbz#973553)
* Tue Jun 11 2013 Matthias Runge <mrunge@redhat.com> - 0.5.14-1
- update to 0.5.14 (rhbz#971736)
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2
- remove requirement setuptools_git
- fix docs build under rhel
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1
- update to 0.5.11 (rhbz#962132)
- disable tests, as requirements can not be fulfilled right now
12 years ago
* Thu Apr 25 2013 Matthias Runge <mrunge@redhat.com> - 0.5.8-1
- Initial package.