2019-11-30 18:08:14 +08:00
|
|
|
Name: python-pbr
|
2020-08-24 10:42:12 +08:00
|
|
|
Version: 5.4.5
|
2021-06-16 17:05:18 +08:00
|
|
|
Release: 2
|
2019-11-30 18:08:14 +08:00
|
|
|
Summary: Python Build Reasonableness
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: http://pypi.python.org/pypi/pbr
|
|
|
|
|
Source0: https://pypi.io/packages/source/p/pbr/pbr-%{version}.tar.gz
|
2021-06-16 17:05:18 +08:00
|
|
|
Patch0000: refresh-testcase.patch
|
|
|
|
|
BuildRequires: python3-sphinx python3-testscenarios python3-virtualenv
|
|
|
|
|
BuildRequires: python3-testresources python3-wheel
|
2019-11-30 18:08:14 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%package -n python2-pbr
|
|
|
|
|
Summary: Python Build Reasonableness
|
|
|
|
|
%{?python_provide:%python_provide python2-pbr}
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel python2-setuptools
|
2020-01-13 20:23:05 +08:00
|
|
|
BuildRequires: python2-coverage python2-mock
|
|
|
|
|
BuildRequires: python2-testscenarios git gnupg
|
2019-11-30 18:08:14 +08:00
|
|
|
Requires: python2-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-pbr
|
|
|
|
|
Manage dynamic plugins for Python applications
|
|
|
|
|
|
|
|
|
|
%package -n python3-pbr
|
|
|
|
|
Summary: Python Build Reasonableness
|
|
|
|
|
%{?python_provide:%python_provide python3-pbr}
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
%description -n python3-pbr
|
|
|
|
|
Manage dynamic plugins for Python applications
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n pbr-%{version} -p1
|
|
|
|
|
|
|
|
|
|
rm -rf {test-,}requirements.txt pbr.egg-info/requires.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export SKIP_PIP_INSTALL=1
|
|
|
|
|
%py2_build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
2020-08-24 10:42:12 +08:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/pbr/tests
|
2019-11-30 18:08:14 +08:00
|
|
|
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
|
2020-08-24 10:42:12 +08:00
|
|
|
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
|
2019-11-30 18:08:14 +08:00
|
|
|
%py2_install
|
|
|
|
|
|
2020-08-24 10:42:12 +08:00
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
2021-06-16 17:05:18 +08:00
|
|
|
#we didn't provide python2-testscenarios and python2-testresources,so skip py2 tests
|
|
|
|
|
#%{__python2} setup.py test
|
2020-08-24 10:42:12 +08:00
|
|
|
|
2019-11-30 18:08:14 +08:00
|
|
|
%files -n python2-pbr
|
2020-08-24 10:42:12 +08:00
|
|
|
%doc LICENSE README.rst
|
2019-11-30 18:08:14 +08:00
|
|
|
%{_bindir}/pbr
|
|
|
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
|
%{python2_sitelib}/pbr
|
|
|
|
|
%exclude %{python2_sitelib}/pbr/tests
|
|
|
|
|
|
|
|
|
|
%files -n python3-pbr
|
2020-08-24 10:42:12 +08:00
|
|
|
%doc LICENSE README.rst
|
2019-11-30 18:08:14 +08:00
|
|
|
%{_bindir}/pbr-3
|
|
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
|
%{python3_sitelib}/pbr
|
|
|
|
|
%exclude %{python3_sitelib}/pbr/tests
|
|
|
|
|
|
2020-08-24 10:42:12 +08:00
|
|
|
|
2019-11-30 18:08:14 +08:00
|
|
|
%changelog
|
2021-06-16 17:05:18 +08:00
|
|
|
* Wed 16 Jun 2021 sunguoshuai<sunguoshuai@huawei.com> - 5.4.5-2
|
|
|
|
|
- Add some buildrequires packages for testing and skip some testcases.
|
|
|
|
|
|
2020-08-24 10:42:12 +08:00
|
|
|
* Mon Aug 24 2020 wenzhanli<wenzhanli2@huawei.com> - 5.4.5-1
|
|
|
|
|
- Bump to version 5.4.5.
|
|
|
|
|
|
2020-02-21 12:03:19 +08:00
|
|
|
* Fri Feb 21 2020 Wanjiankang <wanjiankang@huawei.com> - 4.1.1-3
|
|
|
|
|
- Modify BuildRequires.
|
|
|
|
|
|
2019-11-30 18:08:14 +08:00
|
|
|
* Fri Nov 22 2019 Wanjiankang <wanjiankang@huawei.com> - 4.1.1-2
|
2019-12-09 10:23:58 +08:00
|
|
|
- Initial package.
|