137 lines
3.9 KiB
RPMSpec
137 lines
3.9 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
%global with_doc 0
|
|
|
|
Name: python-openstacksdk
|
|
Version: 0.55.0
|
|
Release: 2
|
|
Summary: An SDK for building applications to work with OpenStack
|
|
|
|
License: ASL 2.0
|
|
URL: http://www.openstack.org/
|
|
Source0: https://pypi.io/packages/source/o/openstacksdk/openstacksdk-%{version}.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
|
|
%{?python_provide:%python_provide python3-openstacksdk}
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pbr >= 2.0.0
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-keystoneauth1
|
|
BuildRequires: python3-appdirs
|
|
BuildRequires: python3-requestsexceptions
|
|
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-netifaces
|
|
|
|
Requires: python3-cryptography
|
|
Requires: python3-importlib_metadata
|
|
Requires: python3-jsonpatch
|
|
Requires: python3-keystoneauth1
|
|
Requires: python3-pbr
|
|
Requires: python3-appdirs
|
|
Requires: python3-requestsexceptions
|
|
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-PyYAML
|
|
|
|
%description -n python3-openstacksdk
|
|
A collection of libraries for building applications to work with OpenStack clouds.
|
|
|
|
%package -n python3-openstacksdk-tests
|
|
Summary: An SDK for building applications to work with OpenStack - test files
|
|
|
|
Requires: python3-openstacksdk
|
|
|
|
%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
|
|
%autosetup -n openstacksdk-%{version} -p1
|
|
rm -rf {,test-}requirements.txt
|
|
rm -f openstack/tests/unit/test_stats.py
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
%if 0%{?with_doc}
|
|
sphinx-build-3 -b html doc/source html
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
%endif
|
|
|
|
%install
|
|
%{py3_install}
|
|
|
|
%check
|
|
rm -f ./openstack/tests/unit/test_hacking.py
|
|
export OS_STDOUT_CAPTURE=true
|
|
export OS_STDERR_CAPTURE=true
|
|
export OS_TEST_TIMEOUT=20
|
|
PYTHON=python3 stestr --test-path ./openstack/tests/unit run
|
|
|
|
%files -n python3-openstacksdk
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{_bindir}/openstack-inventory
|
|
%{python3_sitelib}/openstack
|
|
%{python3_sitelib}/openstacksdk-*.egg-info
|
|
%exclude %{python3_sitelib}/openstack/tests
|
|
|
|
%files -n python3-openstacksdk-tests
|
|
%{python3_sitelib}/openstack/tests
|
|
|
|
%if 0%{?with_doc}
|
|
%files -n python-openstacksdk-doc
|
|
%doc html
|
|
%license LICENSE
|
|
%endif
|
|
|
|
%changelog
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.55.0-2
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
|
|
* 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
|