Compare commits
10 Commits
12eb84e985
...
70cd76dce9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70cd76dce9 | ||
|
|
80b4d248d9 | ||
|
|
1afce88c87 | ||
|
|
b010803c43 | ||
|
|
1f7eed036c | ||
|
|
34422cb020 | ||
|
|
64ba845c42 | ||
|
|
a8ff722eaf | ||
|
|
27a6c44dd5 | ||
|
|
c829130841 |
BIN
pbr-4.1.1.tar.gz
BIN
pbr-4.1.1.tar.gz
Binary file not shown.
BIN
pbr-6.0.0.tar.gz
Normal file
BIN
pbr-6.0.0.tar.gz
Normal file
Binary file not shown.
131
python-pbr.spec
131
python-pbr.spec
@ -1,14 +1,12 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-pbr
|
Name: python-pbr
|
||||||
Version: 4.1.1
|
Version: 6.0.0
|
||||||
Release: 3
|
Release: 1
|
||||||
Summary: Python Build Reasonableness
|
Summary: Python Build Reasonableness
|
||||||
License: ASL 2.0
|
License: Apache-2.0
|
||||||
URL: http://pypi.python.org/pypi/pbr
|
URL: https://docs.openstack.org/pbr/latest/
|
||||||
Source0: https://pypi.io/packages/source/p/pbr/pbr-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-sphinx >= 1.1.3
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PBR is a library that injects some useful and sensible default behaviors into
|
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
|
your setuptools run. It started off life as the chunks of code that were copied
|
||||||
@ -16,66 +14,101 @@ 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
|
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.
|
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
|
|
||||||
BuildRequires: python2-coverage python2-mock
|
|
||||||
BuildRequires: python2-testscenarios git gnupg
|
|
||||||
Requires: python2-setuptools
|
|
||||||
|
|
||||||
|
|
||||||
%description -n python2-pbr
|
|
||||||
Manage dynamic plugins for Python applications
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-pbr
|
%package -n python3-pbr
|
||||||
Summary: Python Build Reasonableness
|
Summary: Python Build Reasonableness
|
||||||
%{?python_provide:%python_provide python3-pbr}
|
Provides: python-pbr
|
||||||
|
# Base build requires
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
|
Requires: git-core
|
||||||
|
Conflicts: python2-%{pypi_name} < 5.4.3-2
|
||||||
%description -n python3-pbr
|
%description -n python3-pbr
|
||||||
Manage dynamic plugins for Python applications
|
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 help
|
||||||
|
Summary: Python Build Reasonableness
|
||||||
|
Provides: python3-pbr-doc
|
||||||
|
%description help
|
||||||
|
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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pbr-%{version} -p1
|
%autosetup -n pbr-%{version}
|
||||||
|
|
||||||
rm -rf {test-,}requirements.txt pbr.egg-info/requires.txt
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export SKIP_PIP_INSTALL=1
|
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
sphinx-build doc/source html
|
|
||||||
rm -rf html/.{doctrees,buildinfo}
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}/pbr/tests
|
||||||
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
|
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
|
||||||
|
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
|
||||||
|
|
||||||
%py2_install
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
pushd %{buildroot}
|
||||||
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%files -n python2-pbr
|
%if 0%{?do_test}
|
||||||
%doc LICENSE html README.rst
|
%check
|
||||||
|
%{__python3} setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python3-pbr -f filelist.lst
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
%{_bindir}/pbr
|
%{_bindir}/pbr
|
||||||
%{python2_sitelib}/*.egg-info
|
|
||||||
%{python2_sitelib}/pbr
|
|
||||||
%exclude %{python2_sitelib}/pbr/tests
|
|
||||||
|
|
||||||
%files -n python3-pbr
|
%files help -f doclist.lst
|
||||||
%doc LICENSE html README.rst
|
%{_docdir}/*
|
||||||
%{_bindir}/pbr-3
|
|
||||||
%{python3_sitelib}/*.egg-info
|
|
||||||
%{python3_sitelib}/pbr
|
|
||||||
%exclude %{python3_sitelib}/pbr/tests
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 30 2024 wangkai <13474090681@163.com> - 6.0.0-1
|
||||||
|
- Update to 6.0.0
|
||||||
|
|
||||||
|
* Sun May 22 2022 Han Guangyu <hanguangyu@uniontech.com> - 5.8.1-1
|
||||||
|
- Upgrade package python3-pbr to version 5.8.1
|
||||||
|
|
||||||
|
* Fri Dec 17 2021 renhongxun <renhongxun@huawei.com> - 5.8.0-1
|
||||||
|
- Upgrade to version 5.8.0
|
||||||
|
|
||||||
|
* Mon Feb 01 2021 shangyibin <shangyibin1@huawei.com> - 5.5.1-1
|
||||||
|
- Upgrade to version 5.5.1
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 jinzhimin<jinzhimin2@huawei.com> - 5.4.5-1
|
||||||
|
- update to 5.4.5
|
||||||
|
|
||||||
* Fri Feb 21 2020 Wanjiankang <wanjiankang@huawei.com> - 4.1.1-3
|
* Fri Feb 21 2020 Wanjiankang <wanjiankang@huawei.com> - 4.1.1-3
|
||||||
- Modify BuildRequires.
|
- Modify BuildRequires.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user