python-openstacksdk/python-openstacksdk.spec
wangxiyuan 7b0a0f753d Init Train release
(cherry picked from commit 8a63922032f546c4848b14be3ab6b3914cde3c34)
2021-11-17 08:58:31 +08:00

107 lines
3.4 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-openstacksdk
Version: 0.36.5
Release: 1
Summary: An SDK for building applications to work with OpenStack
License: Apache-2.0
URL: https://docs.openstack.org/openstacksdk/
Source0: https://files.pythonhosted.org/packages/f3/9d/82e377c5fed02d6feaf110f8679839f56b4395380400c0e366a9e30918b8/openstacksdk-0.36.5.tar.gz
BuildArch: noarch
%description
A collection of libraries for building applications to work with OpenStack clouds.
%package -n python3-openstacksdk
Summary: An SDK for building applications to work with OpenStack
Provides: python-openstacksdk
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-pyyaml
BuildRequires: python3-appdirs
BuildRequires: python3-cryptography
BuildRequires: python3-decorator
BuildRequires: python3-dogpile-cache
BuildRequires: python3-iso8601
BuildRequires: python3-jmespath
BuildRequires: python3-jsonpatch
BuildRequires: python3-keystoneauth1
BuildRequires: python3-munch
BuildRequires: python3-netifaces
BuildRequires: python3-os-service-types
BuildRequires: python3-requestsexceptions
BuildRequires: python3-six
# General requires
Requires: python3-pyyaml
Requires: python3-appdirs
Requires: python3-cryptography
Requires: python3-decorator
Requires: python3-dogpile-cache
Requires: python3-iso8601
Requires: python3-jmespath
Requires: python3-jsonpatch
Requires: python3-keystoneauth1
Requires: python3-munch
Requires: python3-netifaces
Requires: python3-os-service-types
Requires: python3-pbr
Requires: python3-requestsexceptions
Requires: python3-six
%description -n python3-openstacksdk
A collection of libraries for building applications to work with OpenStack clouds.
%package help
Summary: An SDK for building applications to work with OpenStack
Provides: python3-openstacksdk-doc
%description help
A collection of libraries for building applications to work with OpenStack clouds.
%prep
%autosetup -n openstacksdk-%{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-openstacksdk -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Nov 16 2021 OpenStack_SIG <openstack@openeuler.org> - 0.36.5-1
- Init package python3-openstacksdk of version 0.36.5