diff --git a/python-keystoneclient-3.15.0.tar.gz b/python-keystoneclient-3.15.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..add092f45add56b42bbd48f45d0e668cce930c9e Binary files /dev/null and b/python-keystoneclient-3.15.0.tar.gz differ diff --git a/python-keystoneclient-4.1.1.tar.gz b/python-keystoneclient-4.1.1.tar.gz deleted file mode 100644 index 6c2714445e7e76ae19bcfba8c52b884eda7ee7f4..0000000000000000000000000000000000000000 Binary files a/python-keystoneclient-4.1.1.tar.gz and /dev/null differ diff --git a/python-keystoneclient.spec b/python-keystoneclient.spec index 31b047f8fde39289ee0404530c6e7b423c586ab0..3d4ff393008ca6111cb34ba467ff3e3119408c44 100644 --- a/python-keystoneclient.spec +++ b/python-keystoneclient.spec @@ -1,135 +1,100 @@ %global _empty_manifest_terminate_build 0 - -%global with_doc 1 - -Name: python-keystoneclient -Epoch: 1 -Version: 4.1.1 -Release: 2%{?dist} -Summary: Client library for OpenStack Identity API -License: Apache-2.0 -URL: https://launchpad.net/python-keystoneclient -Source0: https://tarballs.openstack.org/python-keystoneclient/python-keystoneclient-4.1.1.tar.gz -BuildArch: noarch - - +Name: python-keystoneclient +Version: 3.15.0 +Release: 1 +Summary: Client Library for OpenStack Identity +License: Apache-2.0 +URL: https://docs.openstack.org/python-keystoneclient/latest/ +Source0: https://files.pythonhosted.org/packages/53/a6/b9c2c3a0054cc2c92680e523a5d1050d711f93f91a05a37fc1ce81d894c0/python-keystoneclient-3.15.0.tar.gz +BuildArch: noarch %description -Client library and command line utility for interacting with Openstack Identity API. - -%package -n python3-keystoneclient -Summary: Client library for OpenStack Identity API -%{?python_provide:%python_provide python3-keystoneclient} -Obsoletes: python2-keystoneclient < 4.1.1-2 - -BuildRequires: openstack-macros -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pbr >= 2.0.0 -BuildRequires: python3-pip -BuildRequires: git - -Requires: python3-oslo-config -Requires: python3-oslo-i18n >= 3.15.3 -Requires: python3-oslo-serialization >= 2.18.0 -Requires: python3-oslo-utils >= 3.33.0 -Requires: python3-requests >= 2.14.2 -Requires: python3-six >= 1.10.0 -Requires: python3-stevedore >= 1.20.0 -Requires: python3-pbr >= 2.0.0 -Requires: python3-debtcollector >= 1.2.0 -Requires: python3-keystoneauth1 >= 3.4.0 -Requires: python3-keyring >= 5.5.1 - -%description -n python3-keystoneclient -Client library and command line utility for interacting with Openstack Identity API. - -%package -n python3-keystoneclient-tests -Summary: Python API and CLI for OpenStack Keystone (tests) -%{?python_provide:%python_provide python3-keystoneclient-tests} -Requires: python3-keystoneclient = 4.1.1-2 - -BuildRequires: python3-hacking -BuildRequires: python3-fixtures -BuildRequires: python3-mock -BuildRequires: python3-oauthlib -BuildRequires: python3-oslotest -BuildRequires: python3-testtools -BuildRequires: python3-keystoneauth1 -BuildRequires: python3-oslo-config -BuildRequires: python3-oslo-utils -BuildRequires: python3-oslo-serialization -BuildRequires: python3-oslo-i18n -BuildRequires: python3-stestr -BuildRequires: python3-testresources -BuildRequires: python3-testscenarios -BuildRequires: python3-requests-mock -BuildRequires: python3-keyring >= 5.5.1 -BuildRequires: python3-lxml +Python bindings to the OpenStack Identity API (Keystone) +======================================================== + +This is a client for the OpenStack Identity API, implemented by the Keystone +team; it contains a Python API (the ``keystoneclient`` module) for +OpenStack's Identity Service. For command line interface support, use +`OpenStackClient`_. + + +%package -n python2-keystoneclient +Summary: Client Library for OpenStack Identity +Provides: python2-keystoneclient +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pbr +Requires: python2-debtcollector +Requires: python2-keystoneauth1 +Requires: python2-oslo-config +Requires: python2-oslo-i18n +Requires: python2-oslo-serialization +Requires: python2-oslo-utils +Requires: python2-requests +Requires: python2-six +Requires: python2-stevedore +%description -n python2-keystoneclient +Python bindings to the OpenStack Identity API (Keystone) +======================================================== + +This is a client for the OpenStack Identity API, implemented by the Keystone +team; it contains a Python API (the ``keystoneclient`` module) for +OpenStack's Identity Service. For command line interface support, use +`OpenStackClient`_. + + +%package help +Summary: Development documents and examples for python-keystoneclient +Provides: python2-keystoneclient-doc +%description help +Python bindings to the OpenStack Identity API (Keystone) +======================================================== + +This is a client for the OpenStack Identity API, implemented by the Keystone +team; it contains a Python API (the ``keystoneclient`` module) for +OpenStack's Identity Service. For command line interface support, use +`OpenStackClient`_. -Requires: python3-hacking -Requires: python3-fixtures -Requires: python3-mock -Requires: python3-oauthlib -Requires: python3-oslotest -Requires: python3-stestr -Requires: python3-testtools -Requires: python3-testresources -Requires: python3-testscenarios -Requires: python3-requests-mock -Requires: python3-lxml - -%description -n python3-keystoneclient-tests -Client library and command line utility for interacting with Openstack Identity API. - -%if 0%{?with_doc} -%package -n python-keystoneclient-doc -Summary: Documentation for OpenStack Keystone API client - -BuildRequires: python3-sphinx -BuildRequires: python3-sphinxcontrib-apidoc -BuildRequires: python3-openstackdocstheme - -%description -n python-keystoneclient-doc -Client library and command line utility for interacting with Openstack Identity API. -%endif %prep -%autosetup -n python-keystoneclient-4.1.1 -S git -sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg -rm -rf {test-,}requirements.txt +%autosetup -n python-keystoneclient-3.15.0 %build -%{py3_build} +%py2_build %install -%{py3_install} - -%if 0%{?with_doc} -sphinx-build -b html doc/source doc/build/html -rm -fr doc/build/html/objects.inv -rm -fr doc/build/html/.{doctrees,buildinfo} -%endif - -%check -PYTHON=%{__python3} stestr --test-path=./keystoneclient/tests/unit run - -%files -n python3-keystoneclient -%license LICENSE -%doc README.rst -%{python3_sitelib}/keystoneclient -%{python3_sitelib}/*.egg-info -%exclude %{python3_sitelib}/keystoneclient/tests - -%if 0%{?with_doc} -%files -n python-keystoneclient-doc -%doc doc/build/html -%license LICENSE -%endif - -%files -n python3-keystoneclient-tests -%license LICENSE -%{python3_sitelib}/keystoneclient/tests +%py2_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 python2-keystoneclient -f filelist.lst +%{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog -* Thu Jan 21 2021 Python_Bot +* Wed May 12 2021 openstack-sig - Package Spec generated