!11 update version 5.4.5 for LTS

Merge pull request !11 from 温占礼/openEuler-20.03-LTS
This commit is contained in:
openeuler-ci-bot 2020-08-31 15:15:39 +08:00 committed by Gitee
commit f9f40fe642
4 changed files with 18 additions and 12 deletions

Binary file not shown.

BIN
pbr-5.4.5.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,12 @@
Name: python-pbr
Version: 4.1.1
Release: 3
Version: 5.4.5
Release: 1
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
BuildArch: noarch
BuildRequires: python3-sphinx >= 1.1.3
%description
PBR is a library that injects some useful and sensible default behaviors into
@ -29,14 +28,12 @@ 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
@ -51,31 +48,36 @@ export SKIP_PIP_INSTALL=1
%py2_build
%py3_build
sphinx-build doc/source html
rm -rf html/.{doctrees,buildinfo}
%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/pbr/tests
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
%py2_install
%check
%{__python3} setup.py test
%{__python2} setup.py test
%files -n python2-pbr
%doc LICENSE html README.rst
%doc LICENSE README.rst
%{_bindir}/pbr
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/pbr
%exclude %{python2_sitelib}/pbr/tests
%files -n python3-pbr
%doc LICENSE html README.rst
%doc LICENSE README.rst
%{_bindir}/pbr-3
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/pbr
%exclude %{python3_sitelib}/pbr/tests
%changelog
* Mon Aug 24 2020 wenzhanli<wenzhanli2@huawei.com> - 5.4.5-1
- Bump to version 5.4.5.
* Fri Feb 21 2020 Wanjiankang <wanjiankang@huawei.com> - 4.1.1-3
- Modify BuildRequires.

4
python-pbr.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: pypi
src_repo: pbr
tag_prefix: "^v"
seperator: "."