diff --git a/pbr-4.1.1.tar.gz b/pbr-4.1.1.tar.gz deleted file mode 100644 index 654c0a7..0000000 Binary files a/pbr-4.1.1.tar.gz and /dev/null differ diff --git a/pbr-5.4.5.tar.gz b/pbr-5.4.5.tar.gz new file mode 100644 index 0000000..1bfeb36 Binary files /dev/null and b/pbr-5.4.5.tar.gz differ diff --git a/python-pbr.spec b/python-pbr.spec index 07a8d14..d247083 100644 --- a/python-pbr.spec +++ b/python-pbr.spec @@ -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 - 5.4.5-1 +- Bump to version 5.4.5. + * Fri Feb 21 2020 Wanjiankang - 4.1.1-3 - Modify BuildRequires. diff --git a/python-pbr.yaml b/python-pbr.yaml new file mode 100644 index 0000000..20aaddb --- /dev/null +++ b/python-pbr.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: pbr +tag_prefix: "^v" +seperator: "."