diff --git a/os-resource-classes-1.0.0.tar.gz b/os-resource-classes-1.0.0.tar.gz deleted file mode 100644 index 9916aa7fb74edf7d183c1d9a75dd2b7c9e30ec4b..0000000000000000000000000000000000000000 Binary files a/os-resource-classes-1.0.0.tar.gz and /dev/null differ diff --git a/os-resource-classes-1.1.0.tar.gz b/os-resource-classes-1.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..be0f64471fc22a3ae9855e51894e68e1b26fb82e Binary files /dev/null and b/os-resource-classes-1.1.0.tar.gz differ diff --git a/python-os-resource-classes.spec b/python-os-resource-classes.spec index 4043981189c05a5f4abd8bedba23972589b72c7c..c29c8e64be009b8399fbbc04357bf834b419aa43 100644 --- a/python-os-resource-classes.spec +++ b/python-os-resource-classes.spec @@ -1,98 +1,82 @@ -%{!?upstream_version: %global upstream_version %{version}%{?milestone}} -%global with_doc 1 - - +%global _empty_manifest_terminate_build 0 Name: python-os-resource-classes -Version: 1.0.0 -Release: 1%{?dist} -Summary: A library containing standardized resource class names in the Placement service. +Version: 1.1.0 +Release: 1 +Summary: Resource Classes for OpenStack License: Apache-2.0 -URL: https://opendev.org/openstack/os-resource-classes -Source0: http://tarballs.openstack.org/os-resource-classes/os-resource-classes-1.0.0.tar.gz +URL: https://docs.openstack.org/os-resource-classes/latest/ +Source0: https://files.pythonhosted.org/packages/44/81/0f05d5d149dbd20e7ca652b57a329b571c4b068a24df6edc65ca4cfc2e16/os-resource-classes-1.1.0.tar.gz BuildArch: noarch - -BuildRequires: git -BuildRequires: openstack-macros - %description A library containing standardized resource class names in the Placement service. -%package -n python3-os-resource-classes -Summary: A library containing standardized resource class names in the Placement service. -%{?python_provide:%python_provide python3-os-resource-classes} - -Requires: python3-pbr >= 2.0 - +%package -n python3-os-resource-classes +Summary: Resource Classes for OpenStack +Provides: python-os-resource-classes +# Base build requires BuildRequires: python3-devel +BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip -BuildRequires: python3-setuptools - +BuildRequires: python3-wheel +# General requires +# General requires +Requires: python3-pbr %description -n python3-os-resource-classes A library containing standardized resource class names in the Placement service. -%package -n python3-os-resource-classes-tests -Summary: A library containing standardized resource class names in the Placement service. - - -BuildRequires: python3-coverage -BuildRequires: python3-subunit -BuildRequires: python3-oslotest -BuildRequires: python3-testtools -BuildRequires: python3-stestr - -Requires: python3-coverage >= 4.0 -Requires: python3-os-resource-classes = %{version}-%{release} -Requires: python3-subunit -Requires: python3-oslotest -Requires: python3-testtools -Requires: python3-stestr - -%description -n python3-os-resource-classes-tests -This package contains tests for python os-resource-classes library. - -%if 0%{?with_doc} -%package -n python-os-resource-classes-doc -Summary: os-resource-classes documentation - -BuildRequires: python3-sphinx -BuildRequires: python3-openstackdocstheme - -%description -n python-os-resource-classes-doc -Documentation for os-resource-classes -%endif +%package help +Summary: Resource Classes for OpenStack +Provides: python3-os-resource-classes-doc +%description help +A library containing standardized resource class names in the Placement service. %prep -%autosetup -n os-resource-classes-1.0.0 -S git -rm -rf os_resource_classes.egg-info -%py_req_cleanup +%autosetup -n os-resource-classes-%{version} %build -%{py3_build} - -%if 0%{?with_doc} -sphinx-build-3 -W -b html doc/source doc/build/html -rm -rf doc/build/html/.{doctrees,buildinfo} -%endif +%py3_build %install -%{py3_install} - -%check -%{__python3} setup.py test - -%files -n python3-os-resource-classes -%license LICENSE -%doc README.rst -%{python3_sitelib}/os_resource_classes -%{python3_sitelib}/os_resource_classes-1.0.0-py?.?.egg-info -%exclude %{python3_sitelib}/os_resource_classes/tests - -%files -n python3-os-resource-classes-tests -%{python3_sitelib}/os_resource_classes/tests - +%py3_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 python3-os-resource-classes -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Fri May 27 2022 OpenStack_SIG - 1.1.0-1 +- Upgrade package python3-os-resource-classes to version 1.1.0 + * Tue Jan 12 2021 zhangy 2021.1.12 - Update to 2021.1.12