python-ironicclient/python-ironicclient.spec

132 lines
4.1 KiB
RPMSpec
Raw Normal View History

2021-01-12 17:16:42 +08:00
%global _empty_manifest_terminate_build 0
Name: python-ironicclient
Version: 3.1.2
Release: 1
2021-07-16 11:16:15 +08:00
Summary: OpenStack Bare Metal Provisioning API Client Library
License: Apache-2.0
URL: https://docs.openstack.org/python-ironicclient/latest/
Source0: https://files.pythonhosted.org/packages/6c/86/7cae0a20eb15fb7263d42ec431a4969247bce3efcb4f2e66e24bf98072b1/python-ironicclient-3.1.2.tar.gz
2021-01-12 17:16:42 +08:00
BuildArch: noarch
%description
2021-07-16 11:16:15 +08:00
This is a client for the OpenStack Bare Metal API.
2021-01-12 17:16:42 +08:00
2021-07-16 11:16:15 +08:00
%package -n python3-ironicclient
Summary: OpenStack Bare Metal Provisioning API Client Library
Provides: python-ironicclient
# Base build requires
2021-01-12 17:16:42 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2021-07-16 11:16:15 +08:00
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-appdirs
BuildRequires: python3-dogpile-cache
BuildRequires: python3-jsonschema
BuildRequires: python3-keystoneauth1
BuildRequires: python3-osc-lib
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-serialization
2021-07-16 11:16:15 +08:00
BuildRequires: python3-oslo-utils
BuildRequires: python3-pyyaml
2021-07-16 11:16:15 +08:00
BuildRequires: python3-requests
BuildRequires: python3-six
2021-07-16 11:16:15 +08:00
BuildRequires: python3-openstackclient
# Tests running requires
BuildRequires: python3-hacking
2021-07-16 11:16:15 +08:00
BuildRequires: python3-coverage
BuildRequires: python3-doc8
2021-07-16 11:16:15 +08:00
BuildRequires: python3-fixtures
BuildRequires: python3-requests-mock
BuildRequires: python3-mock
BuildRequires: python3-babel
BuildRequires: python3-oslotest
2021-07-16 11:16:15 +08:00
BuildRequires: python3-testtools
BuildRequires: python3-tempest
BuildRequires: python3-stestr
BuildRequires: python3-ddt
BuildRequires: python3-openstackclient
2021-07-16 11:16:15 +08:00
# General requires
Requires: python3-pbr
2021-07-16 11:16:15 +08:00
Requires: python3-appdirs
Requires: python3-dogpile-cache
Requires: python3-jsonschema
Requires: python3-keystoneauth1
Requires: python3-osc-lib
Requires: python3-oslo-config
Requires: python3-oslo-i18n
Requires: python3-oslo-serialization
2021-07-16 11:16:15 +08:00
Requires: python3-oslo-utils
Requires: python3-pyyaml
2021-07-16 11:16:15 +08:00
Requires: python3-requests
Requires: python3-six
2021-07-16 11:16:15 +08:00
Requires: python3-openstackclient
# Tests running requires
Requires: python3-hacking
2021-07-16 11:16:15 +08:00
Requires: python3-coverage
Requires: python3-doc8
2021-07-16 11:16:15 +08:00
Requires: python3-fixtures
Requires: python3-requests-mock
Requires: python3-mock
Requires: python3-babel
Requires: python3-oslotest
2021-07-16 11:16:15 +08:00
Requires: python3-testtools
Requires: python3-tempest
Requires: python3-stestr
Requires: python3-ddt
Requires: python3-openstackclient
2021-07-16 11:16:15 +08:00
%description -n python3-ironicclient
This is a client for the OpenStack Bare Metal API.
2021-01-12 17:16:42 +08:00
2021-07-16 11:16:15 +08:00
%package help
Summary: OpenStack Bare Metal Provisioning API Client Library
Provides: python3-ironicclient-doc
%description help
This is a client for the OpenStack Bare Metal API.
2021-01-12 17:16:42 +08:00
%prep
%autosetup -n python-ironicclient-%{version}
2021-01-12 17:16:42 +08:00
%build
2021-07-16 11:16:15 +08:00
%py3_build
2021-01-12 17:16:42 +08:00
%install
2021-07-16 11:16:15 +08:00
%py3_install
2021-07-16 11:16:15 +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
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-ironicclient -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2021-01-12 17:16:42 +08:00
%changelog
* Mon Nov 08 2021 OpenStack_SIG <openstack@openeuler.org> - 3.1.2-1
- Init package python3-ironicclient with version 3.1.2 for Train