python-oslo.privsep/python-oslo.privsep.spec
wangxiyuan ea1473a961 Init Train release
(cherry picked from commit 8a4791448fbe3dc0a2c1d46847cb38ee4a858367)
2021-11-15 20:09:36 +08:00

100 lines
3.2 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-oslo-privsep
Version: 1.33.5
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/74/a0/056d579ba04905378bdc629780e45fcf81ed6358a30cc68fd167fc38b20b/oslo.privsep-1.33.5.tar.gz
BuildArch: noarch
%description
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
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
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: 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-%{version}
%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
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 python3-oslo-privsep -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon Nov 15 2021 OpenStack_SIG <openstack@openeuler.org> - 1.33.5-1
- Init package python3-oslo-privsep of version 1.33.5