!12 [sync] PR-11: Init Train release
From: @openeuler-sync-bot Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
5018b57fc7
BIN
openstacksdk-0.36.5.tar.gz
Normal file
BIN
openstacksdk-0.36.5.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,136 +1,106 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
|
|
||||||
%global with_doc 0
|
|
||||||
|
|
||||||
Name: python-openstacksdk
|
Name: python-openstacksdk
|
||||||
Version: 0.55.0
|
Version: 0.36.5
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: An SDK for building applications to work with OpenStack
|
Summary: An SDK for building applications to work with OpenStack
|
||||||
|
License: Apache-2.0
|
||||||
License: ASL 2.0
|
URL: https://docs.openstack.org/openstacksdk/
|
||||||
URL: http://www.openstack.org/
|
Source0: https://files.pythonhosted.org/packages/f3/9d/82e377c5fed02d6feaf110f8679839f56b4395380400c0e366a9e30918b8/openstacksdk-0.36.5.tar.gz
|
||||||
Source0: https://pypi.io/packages/source/o/openstacksdk/openstacksdk-%{version}.tar.gz
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A collection of libraries for building applications to work with OpenStack clouds.
|
A collection of libraries for building applications to work with OpenStack clouds.
|
||||||
|
|
||||||
%package -n python3-openstacksdk
|
%package -n python3-openstacksdk
|
||||||
Summary: An SDK for building applications to work with OpenStack
|
Summary: An SDK for building applications to work with OpenStack
|
||||||
%{?python_provide:%python_provide python3-openstacksdk}
|
Provides: python-openstacksdk
|
||||||
|
# Base build requires
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pbr >= 2.0.0
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-keystoneauth1
|
BuildRequires: python3-wheel
|
||||||
|
# General requires
|
||||||
|
BuildRequires: python3-pyyaml
|
||||||
BuildRequires: python3-appdirs
|
BuildRequires: python3-appdirs
|
||||||
BuildRequires: python3-requestsexceptions
|
BuildRequires: python3-cryptography
|
||||||
BuildRequires: python3-munch
|
|
||||||
BuildRequires: python3-jmespath
|
|
||||||
BuildRequires: python3-jsonschema
|
|
||||||
BuildRequires: python3-os-service-types
|
|
||||||
# Test requirements
|
|
||||||
BuildRequires: python3-importlib_metadata
|
|
||||||
BuildRequires: python3-iso8601
|
|
||||||
BuildRequires: python3-jsonpatch
|
|
||||||
BuildRequires: python3-subunit
|
|
||||||
BuildRequires: python3-oslotest
|
|
||||||
BuildRequires: python3-oslo-config
|
|
||||||
BuildRequires: python3-stestr
|
|
||||||
BuildRequires: python3-mock
|
|
||||||
BuildRequires: python3-testrepository
|
|
||||||
BuildRequires: python3-testscenarios
|
|
||||||
BuildRequires: python3-testtools
|
|
||||||
BuildRequires: python3-requests-mock
|
|
||||||
BuildRequires: python3-dogpile-cache
|
|
||||||
BuildRequires: python3-ddt
|
|
||||||
BuildRequires: python3-decorator
|
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-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-cryptography
|
||||||
Requires: python3-importlib_metadata
|
Requires: python3-decorator
|
||||||
|
Requires: python3-dogpile-cache
|
||||||
|
Requires: python3-iso8601
|
||||||
|
Requires: python3-jmespath
|
||||||
Requires: python3-jsonpatch
|
Requires: python3-jsonpatch
|
||||||
Requires: python3-keystoneauth1
|
Requires: python3-keystoneauth1
|
||||||
Requires: python3-pbr
|
|
||||||
Requires: python3-appdirs
|
|
||||||
Requires: python3-requestsexceptions
|
|
||||||
Requires: python3-munch
|
Requires: python3-munch
|
||||||
Requires: python3-jmespath
|
|
||||||
Requires: python3-iso8601
|
|
||||||
Requires: python3-os-service-types
|
|
||||||
Requires: python3-dogpile-cache
|
|
||||||
Requires: python3-decorator
|
|
||||||
Requires: python3-netifaces
|
Requires: python3-netifaces
|
||||||
Requires: python3-PyYAML
|
Requires: python3-os-service-types
|
||||||
|
Requires: python3-pbr
|
||||||
|
Requires: python3-requestsexceptions
|
||||||
|
Requires: python3-six
|
||||||
%description -n python3-openstacksdk
|
%description -n python3-openstacksdk
|
||||||
A collection of libraries for building applications to work with OpenStack clouds.
|
A collection of libraries for building applications to work with OpenStack clouds.
|
||||||
|
|
||||||
%package -n python3-openstacksdk-tests
|
%package help
|
||||||
Summary: An SDK for building applications to work with OpenStack - test files
|
Summary: An SDK for building applications to work with OpenStack
|
||||||
|
Provides: python3-openstacksdk-doc
|
||||||
Requires: python3-openstacksdk
|
%description help
|
||||||
|
A collection of libraries for building applications to work with OpenStack clouds.
|
||||||
%description -n python3-openstacksdk-tests
|
|
||||||
A collection of libraries for building applications to work with OpenStack - test files
|
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
|
||||||
%package -n python-openstacksdk-doc
|
|
||||||
Summary: An SDK for building applications to work with OpenStack - documentation
|
|
||||||
BuildRequires: python3-openstackdocstheme
|
|
||||||
BuildRequires: python3-sphinx
|
|
||||||
|
|
||||||
%description -n python-openstacksdk-doc
|
|
||||||
A collection of libraries for building applications to work with OpenStack
|
|
||||||
clouds - documentation.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n openstacksdk-%{version} -p1
|
%autosetup -n openstacksdk-%{version}
|
||||||
rm -rf {,test-}requirements.txt
|
|
||||||
rm -f openstack/tests/unit/test_stats.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{py3_build}
|
%py3_build
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
|
||||||
sphinx-build-3 -b html doc/source html
|
|
||||||
rm -rf html/.{doctrees,buildinfo}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{py3_install}
|
%py3_install
|
||||||
|
|
||||||
%check
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
rm -f ./openstack/tests/unit/test_hacking.py
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
export OS_STDOUT_CAPTURE=true
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
export OS_STDERR_CAPTURE=true
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
export OS_TEST_TIMEOUT=20
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
PYTHON=python3 stestr --test-path ./openstack/tests/unit run
|
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
|
%files -n python3-openstacksdk -f filelist.lst
|
||||||
%doc README.rst
|
%dir %{python3_sitelib}/*
|
||||||
%license LICENSE
|
|
||||||
%{_bindir}/openstack-inventory
|
|
||||||
%{python3_sitelib}/openstack
|
|
||||||
%{python3_sitelib}/openstacksdk-*.egg-info
|
|
||||||
%exclude %{python3_sitelib}/openstack/tests
|
|
||||||
|
|
||||||
%files -n python3-openstacksdk-tests
|
%files help -f doclist.lst
|
||||||
%{python3_sitelib}/openstack/tests
|
%{_docdir}/*
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
|
||||||
%files -n python-openstacksdk-doc
|
|
||||||
%doc html
|
|
||||||
%license LICENSE
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.55.0-2
|
* Tue Nov 16 2021 OpenStack_SIG <openstack@openeuler.org> - 0.36.5-1
|
||||||
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
- Init package python3-openstacksdk of version 0.36.5
|
||||||
|
|
||||||
* Wed Jul 28 2021 huangtianhua <huangtianhua@huawei.com> 0.55.0-1
|
|
||||||
- Upgrade to 0.55.0
|
|
||||||
* Thu Jan 26 2021 Python_Bot <Python_Bot@openeuler.org>
|
|
||||||
- Package Spec generated
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user