python-oslo.policy/python-oslo.policy.spec

108 lines
2.9 KiB
RPMSpec
Raw Normal View History

2021-01-08 16:45:23 +08:00
%global _empty_manifest_terminate_build 0
Name: python-oslo-policy
2021-07-13 11:04:44 +08:00
Version: 3.7.0
Release: 1
Summary: OpenStack oslo.policy library
2021-01-08 16:45:23 +08:00
License: Apache-2.0
URL: https://opendev.org/openstack/oslo.policy
2021-07-13 11:04:44 +08:00
Source0: https://files.pythonhosted.org/packages/da/c8/9fc4d6813c4e079939e23c7f09d05f2ee3e8f858366cd625dda2f3bd0f72/oslo.policy-3.7.0.tar.gz
2021-01-08 16:45:23 +08:00
BuildArch: noarch
%description
2021-07-13 11:04:44 +08:00
An OpenStack library for policy.
2021-01-08 16:45:23 +08:00
%package -n python3-oslo-policy
2021-07-13 11:04:44 +08:00
Summary: OpenStack oslo.policy library
Provides: python-oslo-policy
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2021-01-29 18:27:53 +08:00
BuildRequires: python3-pbr
2021-07-13 11:04:44 +08:00
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-pyyaml
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-context
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-serialization
BuildRequires: python3-oslo-utils
BuildRequires: python3-requests
BuildRequires: python3-stevedore
BuildRequires: python3-coverage
BuildRequires: python3-sphinx
BuildRequires: python3-requests-mock
BuildRequires: python3-oslotest
BuildRequires: python3-stestr
2021-01-08 16:45:23 +08:00
2021-07-13 11:04:44 +08:00
# General requires
Requires: python3-pyyaml
Requires: python3-oslo-config
Requires: python3-oslo-context
Requires: python3-oslo-i18n
Requires: python3-oslo-serialization
Requires: python3-oslo-utils
Requires: python3-requests
Requires: python3-stevedore
%description -n python3-oslo-policy
An OpenStack library for policy.
2021-01-08 16:45:23 +08:00
%package help
Summary: Development documents and examples for oslo.policy
Provides: python3-oslo-policy-doc
2021-07-13 11:04:44 +08:00
%description help
An OpenStack library for policy.
2021-01-08 16:45:23 +08:00
%prep
2021-07-13 11:04:44 +08:00
%autosetup -n oslo.policy-3.7.0
2021-01-08 16:45:23 +08:00
%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 .
2021-07-13 11:04:44 +08:00
%check
%{__python3} setup.py test
2021-01-08 16:45:23 +08:00
%files -n python3-oslo-policy -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2021-07-13 11:04:44 +08:00
* Tue July 13 2021 joec88 <chens141@chinaunicom.cn>
- Update to 3.7.0
2021-01-29 18:27:53 +08:00
* Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com>
- Add buildrequires
2021-01-08 16:45:23 +08:00
* Fri Jan 08 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated