upgrade version to 2.5.0

This commit is contained in:
yaozc701 2021-07-15 09:57:57 +08:00
parent 60f2b4f465
commit b245d89bc4
3 changed files with 58 additions and 32 deletions

Binary file not shown.

BIN
oslo.privsep-2.5.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,48 +1,70 @@
%global _empty_manifest_terminate_build 0
Name: python-oslo-privsep
Version: 2.4.0
Release: 2
Summary: OpenStack library for privilege separation
License: Apache-2.0
URL: https://opendev.org/openstack/oslo.privsep
Source0: https://files.pythonhosted.org/packages/97/c5/491c2701dc693dd6b6f2f9c319f5ddb3f52d37a0af9e11f598bfb1e643aa/oslo.privsep-2.4.0.tar.gz
BuildArch: noarch
Requires: python3-cffi
Requires: python3-eventlet
Requires: python3-greenlet
Requires: python3-msgpack
Name: python-oslo-privsep
Version: 2.5.0
Release: 1
Summary: OpenStack library for privilege separation
License: Apache-2.0
URL: https://docs.openstack.org/oslo.privsep/latest/
Source0: https://files.pythonhosted.org/packages/47/61/7525977dcb8fc24c9c3f7a687445e58998e82e2c0bc641b81de7ac76314a/oslo.privsep-2.5.0.tar.gz
BuildArch: noarch
%description
OpenStack library for privilege separation
OpenStack library for privilege separation.This library helps applications
perform actions which require more or less privileges than they were started
with in a safe, easy to code and easy to use manner.
%package -n python3-oslo-privsep
Summary: OpenStack library for privilege separation
Provides: python-oslo-privsep
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
Summary: OpenStack library for privilege separation
Provides: python-oslo-privsep
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
%description -n python3-oslo-privsep
OpenStack library for privilege separation
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-cffi
BuildRequires: python3-eventlet
BuildRequires: python3-greenlet
BuildRequires: python3-msgpack
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log
BuildRequires: python3-oslo-utils
# General requires
Requires: python3-cffi
Requires: python3-eventlet
Requires: python3-greenlet
Requires: python3-msgpack
Requires: python3-oslo-config
Requires: python3-oslo-i18n
Requires: python3-oslo-log
Requires: python3-oslo-utils
%description -n python3-oslo-privsep
OpenStack library for privilege separation.This library helps applications
perform actions which require more or less privileges than they were started
with in a safe, easy to code and easy to use manner.
%package help
Summary: Development documents and examples for oslo.privsep
Provides: python3-oslo-privsep-doc
%description help
OpenStack library for privilege separation
Summary: OpenStack library for privilege separation
Provides: python3-oslo-privsep-doc
%description help
OpenStack library for privilege separation.This library helps applications
perform actions which require more or less privileges than they were started
with in a safe, easy to code and easy to use manner.
%prep
%autosetup -n oslo.privsep-2.4.0
%autosetup -n oslo.privsep-2.5.0
%build
%py3_build
%install
%py3_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
@ -50,32 +72,36 @@ 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
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
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
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
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
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 python3-oslo-privsep -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Jul 15 2021 yaozc701 <yaozc7@foxmail.com> - 2.5.0-1
- Upgrade version to 2.5.0
* Sat Jan 30 2021 zhangy <zhangy1317@foxmail.com>
- Add buildrequires
* Fri Jan 08 2021 Python_Bot <Python_Bot@openeuler.org>