python-oslo.privsep/python-oslo.privsep.spec

100 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

2021-01-08 16:00:47 +08:00
%global _empty_manifest_terminate_build 0
2021-07-15 09:57:57 +08:00
Name: python-oslo-privsep
Version: 1.33.5
2021-07-15 09:57:57 +08:00
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
2021-07-15 09:57:57 +08:00
BuildArch: noarch
2021-01-08 16:00:47 +08:00
%description
2021-07-15 09:57:57 +08:00
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.
2021-01-08 16:00:47 +08:00
%package -n python3-oslo-privsep
2021-07-15 09:57:57 +08:00
Summary: OpenStack library for privilege separation
Provides: python-oslo-privsep
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2021-01-30 14:52:43 +08:00
BuildRequires: python3-pbr
2021-07-15 09:57:57 +08:00
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.
2021-01-08 16:00:47 +08:00
%package help
2021-07-15 09:57:57 +08:00
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.
2021-01-08 16:00:47 +08:00
%prep
%autosetup -n oslo.privsep-%{version}
2021-01-08 16:00:47 +08:00
%build
%py3_build
%install
%py3_install
2021-07-15 09:57:57 +08:00
2021-01-08 16:00:47 +08:00
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
2021-07-15 09:57:57 +08:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:00:47 +08:00
fi
if [ -d usr/lib64 ]; then
2021-07-15 09:57:57 +08:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:00:47 +08:00
fi
if [ -d usr/bin ]; then
2021-07-15 09:57:57 +08:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:00:47 +08:00
fi
if [ -d usr/sbin ]; then
2021-07-15 09:57:57 +08:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:00:47 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2021-07-15 09:57:57 +08:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2021-01-08 16:00:47 +08:00
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