diff --git a/os-traits-0.5.0.tar.gz b/os-traits-0.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..137176cac98ca6214a571248551e1d7539ab3b8e Binary files /dev/null and b/os-traits-0.5.0.tar.gz differ diff --git a/os-traits-2.4.0.tar.gz b/os-traits-2.4.0.tar.gz deleted file mode 100644 index a082f8a3b35bc2b3438b576f3cd174e85ed8e457..0000000000000000000000000000000000000000 Binary files a/os-traits-2.4.0.tar.gz and /dev/null differ diff --git a/python-os-traits.spec b/python-os-traits.spec index d68f1edb97dcc57a75a56fffa94a1744b80507df..cbb00ff62459768fde5804561c758705d1232bf9 100644 --- a/python-os-traits.spec +++ b/python-os-traits.spec @@ -1,43 +1,66 @@ %global _empty_manifest_terminate_build 0 Name: python-os-traits -Version: 2.4.0 -Release: 2 +Version: 0.5.0 +Release: 1 Summary: A library containing standardized trait strings License: Apache-2.0 -URL: http://opendev.org/openstack/os-traits -Source0: https://files.pythonhosted.org/packages/68/4d/3c7e46c340e55adb0933f1644d5a2f06024bfe34b3b71f3ce54d434119fa/os-traits-2.4.0.tar.gz +URL: https://docs.openstack.org/os-traits/latest/ +Source0: https://files.pythonhosted.org/packages/03/c0/c1e53d499db05ec0a46186a2b42968faf76b3d28677a278f700a1417b35f/os-traits-0.5.0.tar.gz BuildArch: noarch - -Requires: python3-pbr - %description -os-traits is an OpenStack library containing standardized trait strings. +========= +os-traits +========= +`os-traits` is a library containing standardized trait strings. -%package -n python3-os-traits +Traits are strings that represent a feature of some resource provider. This +library contains the catalog of constants that have been standardized in the +OpenStack community to refer to a particular hardware, virtualization, storage, +network, or device trait. + +%package -n python2-os-traits Summary: A library containing standardized trait strings -Provides: python-os-traits -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-pbr -%description -n python3-os-traits -os-traits is an OpenStack library containing standardized trait strings. +Provides: python2-os-traits +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pbr +Requires: python2-six +%description -n python2-os-traits +========= +os-traits +========= + +`os-traits` is a library containing standardized trait strings. + +Traits are strings that represent a feature of some resource provider. This +library contains the catalog of constants that have been standardized in the +OpenStack community to refer to a particular hardware, virtualization, storage, +network, or device trait. %package help Summary: Development documents and examples for os-traits -Provides: python3-os-traits-doc +Provides: python2-os-traits-doc %description help -os-traits is an OpenStack library containing standardized trait strings. +========= +os-traits +========= + +`os-traits` is a library containing standardized trait strings. + +Traits are strings that represent a feature of some resource provider. This +library contains the catalog of constants that have been standardized in the +OpenStack community to refer to a particular hardware, virtualization, storage, +network, or device trait. %prep -%autosetup -n os-traits-2.4.0 +%autosetup -n os-traits-0.5.0 %build -%py3_build +%py2_build %install -%py3_install +%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 @@ -64,14 +87,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-os-traits -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-os-traits -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Fri Jan 29 2021 zhangy -- Add buildrequires -* Wed Jan 06 2021 Python_Bot +* Mon May 10 2021 OpenStack_SIG - Package Spec generated