2015-12-08 07:57:24 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-openstacksdk
|
|
|
|
|
#
|
2018-01-15 11:47:42 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-12-08 07:57:24 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-openstacksdk
|
2018-09-01 09:06:18 +00:00
|
|
|
Version: 0.17.2
|
2015-12-08 07:57:24 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: An SDK for building applications to work with OpenStack
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
2018-09-01 09:06:18 +00:00
|
|
|
URL: https://launchpad.net/openstacksdk
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/o/openstacksdk/openstacksdk-0.17.2.tar.gz
|
2016-07-22 15:04:54 +00:00
|
|
|
BuildRequires: openstack-macros
|
2015-12-08 07:57:24 +00:00
|
|
|
BuildRequires: python-devel
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-PyYAML >= 3.12
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-appdirs >= 1.3.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-beautifulsoup4
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-decorator >= 3.4.0
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python2-deprecation >= 1.0
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-dogpile.cache >= 0.6.2
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-extras
|
|
|
|
|
BuildRequires: python2-fixtures
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-futures >= 3.0.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-ipaddress >= 1.0.17
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-jmespath >= 0.9.0
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python2-jsonpatch >= 1.16
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-jsonschema
|
|
|
|
|
BuildRequires: python2-keystoneauth1 >= 3.8.0
|
|
|
|
|
BuildRequires: python2-mock
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-munch >= 2.1.0
|
|
|
|
|
BuildRequires: python2-netifaces >= 0.10.4
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-os-service-types >= 1.2.0
|
|
|
|
|
BuildRequires: python2-oslotest
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python2-pbr >= 2.0.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-python-subunit
|
|
|
|
|
BuildRequires: python2-requests-mock
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python2-requestsexceptions >= 1.2.0
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python2-six >= 1.10.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python2-stestr
|
|
|
|
|
BuildRequires: python2-stevedore
|
|
|
|
|
BuildRequires: python2-testscenarios
|
|
|
|
|
BuildRequires: python2-testtools
|
|
|
|
|
BuildRequires: python3-PyYAML >= 3.12
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python3-appdirs >= 1.3.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python3-beautifulsoup4
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python3-decorator >= 3.4.0
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python3-deprecation >= 1.0
|
|
|
|
|
BuildRequires: python3-devel
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python3-dogpile.cache >= 0.6.2
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python3-extras
|
|
|
|
|
BuildRequires: python3-fixtures
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python3-jmespath >= 0.9.0
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python3-jsonpatch >= 1.16
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python3-jsonschema
|
|
|
|
|
BuildRequires: python3-keystoneauth1 >= 3.8.0
|
|
|
|
|
BuildRequires: python3-mock
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python3-munch >= 2.1.0
|
|
|
|
|
BuildRequires: python3-netifaces >= 0.10.4
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python3-os-service-types >= 1.2.0
|
|
|
|
|
BuildRequires: python3-oslotest
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python3-pbr >= 2.0.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python3-python-subunit
|
|
|
|
|
BuildRequires: python3-requests-mock
|
2018-02-13 14:47:36 +00:00
|
|
|
BuildRequires: python3-requestsexceptions >= 1.2.0
|
2018-01-15 11:47:42 +00:00
|
|
|
BuildRequires: python3-six >= 1.10.0
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python3-stestr
|
|
|
|
|
BuildRequires: python3-stevedore
|
|
|
|
|
BuildRequires: python3-testscenarios
|
|
|
|
|
BuildRequires: python3-testtools
|
|
|
|
|
Requires: python-PyYAML >= 3.12
|
2018-02-13 14:47:36 +00:00
|
|
|
Requires: python-appdirs >= 1.3.0
|
|
|
|
|
Requires: python-decorator >= 3.4.0
|
2017-08-07 13:29:29 +00:00
|
|
|
Requires: python-deprecation >= 1.0
|
2018-02-13 14:47:36 +00:00
|
|
|
Requires: python-dogpile.cache >= 0.6.2
|
|
|
|
|
Requires: python-iso8601 >= 0.1.11
|
|
|
|
|
Requires: python-jmespath >= 0.9.0
|
2018-01-15 11:47:42 +00:00
|
|
|
Requires: python-jsonpatch >= 1.16
|
2018-09-01 09:06:18 +00:00
|
|
|
Requires: python-keystoneauth1 >= 3.8.0
|
2018-02-13 14:47:36 +00:00
|
|
|
Requires: python-munch >= 2.1.0
|
|
|
|
|
Requires: python-netifaces >= 0.10.4
|
2018-09-01 09:06:18 +00:00
|
|
|
Requires: python-os-service-types >= 1.2.0
|
2018-02-13 14:47:36 +00:00
|
|
|
Requires: python-requestsexceptions >= 1.2.0
|
2018-01-15 11:47:42 +00:00
|
|
|
Requires: python-six >= 1.10.0
|
2015-12-08 07:57:24 +00:00
|
|
|
BuildArch: noarch
|
2018-02-13 14:47:36 +00:00
|
|
|
%ifpython2
|
|
|
|
|
Requires: python-futures >= 3.0.0
|
2018-09-01 09:06:18 +00:00
|
|
|
Requires: python-ipaddress >= 1.0.17
|
2018-02-13 14:47:36 +00:00
|
|
|
%endif
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
|
%else
|
|
|
|
|
# on RDO, update-alternatives is in chkconfig
|
|
|
|
|
Requires(post): chkconfig
|
|
|
|
|
Requires(postun): chkconfig
|
|
|
|
|
%endif
|
2018-01-15 11:47:42 +00:00
|
|
|
%python_subpackages
|
2015-12-08 07:57:24 +00:00
|
|
|
|
|
|
|
|
%description
|
2018-09-01 09:06:18 +00:00
|
|
|
The openstacksdk is a library for building applications to work
|
|
|
|
|
with OpenStack clouds.
|
|
|
|
|
The project aims to provide a consistent and complete set of
|
|
|
|
|
interactions with OpenStack's many services, along with complete
|
|
|
|
|
documentation, examples, and tools.
|
2016-07-22 15:04:54 +00:00
|
|
|
|
2018-01-15 11:47:42 +00:00
|
|
|
%package -n python-openstacksdk-doc
|
2016-07-22 15:04:54 +00:00
|
|
|
Summary: %{summary} - Documentation
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
BuildRequires: python-Sphinx
|
2018-09-01 09:06:18 +00:00
|
|
|
BuildRequires: python-openstackdocstheme
|
2016-07-22 15:04:54 +00:00
|
|
|
Requires: %{name} = %{version}
|
2015-12-08 07:57:24 +00:00
|
|
|
|
2018-01-15 11:47:42 +00:00
|
|
|
%description -n python-openstacksdk-doc
|
2018-09-01 09:06:18 +00:00
|
|
|
The openstacksdk is a library for building applications to work
|
|
|
|
|
with OpenStack clouds.
|
|
|
|
|
The project aims to provide a consistent and complete set of
|
|
|
|
|
interactions with OpenStack's many services, along with complete
|
|
|
|
|
documentation, examples, and tools.
|
2016-07-22 15:04:54 +00:00
|
|
|
|
2018-09-01 09:06:18 +00:00
|
|
|
The openstacksdk is a collection of libraries for building
|
|
|
|
|
applications to work with OpenStack clouds.
|
2015-12-08 07:57:24 +00:00
|
|
|
|
|
|
|
|
%prep
|
2018-09-01 09:06:18 +00:00
|
|
|
%autosetup -p1 -n openstacksdk-0.17.2
|
2017-02-10 16:40:09 +00:00
|
|
|
%py_req_cleanup
|
2018-02-13 14:47:36 +00:00
|
|
|
sed -i -e 's,coverage.*,,' test-requirements.txt || true
|
|
|
|
|
sed -i -e "s,'sphinx.ext.intersphinx'\,,," doc/source/conf.py
|
2017-08-07 13:29:29 +00:00
|
|
|
# build fails with warnings
|
|
|
|
|
sed -i 's/^warning-is-error.*/warning-is-error=0/g' setup.cfg
|
2015-12-08 07:57:24 +00:00
|
|
|
|
|
|
|
|
%build
|
2018-01-15 11:47:42 +00:00
|
|
|
%python_build
|
2018-09-01 09:06:18 +00:00
|
|
|
PBR_VERSION=0.17.2 sphinx-build -b html doc/source doc/build/html
|
2016-07-22 15:04:54 +00:00
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2015-12-08 07:57:24 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-01-15 11:47:42 +00:00
|
|
|
%python_install
|
2018-02-13 14:47:36 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/openstack-inventory
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative openstack-inventory
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative openstack-inventory
|
2015-12-08 07:57:24 +00:00
|
|
|
|
2016-07-22 15:04:54 +00:00
|
|
|
%check
|
2018-09-01 09:06:18 +00:00
|
|
|
export OS_LOG_CAPTURE=true
|
|
|
|
|
%python_exec -m stestr.cli run
|
2015-12-08 07:57:24 +00:00
|
|
|
|
2018-01-15 11:47:42 +00:00
|
|
|
%files %{python_files}
|
2016-07-22 15:04:54 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog README.rst
|
2018-02-13 14:47:36 +00:00
|
|
|
%python_alternative %{_bindir}/openstack-inventory
|
|
|
|
|
%{python_sitelib}/openstack
|
|
|
|
|
%{python_sitelib}/*.egg-info
|
2016-07-22 15:04:54 +00:00
|
|
|
|
2018-01-15 11:47:42 +00:00
|
|
|
%files -n python-openstacksdk-doc
|
2016-07-22 15:04:54 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc doc/build/html
|
2015-12-08 07:57:24 +00:00
|
|
|
|
|
|
|
|
%changelog
|