diff --git a/oslo.utils-3.35.0.tar.gz b/oslo.utils-3.35.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4367fc6feefffbbae96939d739094f50a020a53b Binary files /dev/null and b/oslo.utils-3.35.0.tar.gz differ diff --git a/oslo.utils-4.7.0.tar.gz b/oslo.utils-4.7.0.tar.gz deleted file mode 100644 index d3d53940ab758676b9f51b320083e5fac63a37ba..0000000000000000000000000000000000000000 Binary files a/oslo.utils-4.7.0.tar.gz and /dev/null differ diff --git a/python-oslo-utils.spec b/python-oslo-utils.spec new file mode 100644 index 0000000000000000000000000000000000000000..512208d0b922c1064023d1cb76bbaba79a894ba3 --- /dev/null +++ b/python-oslo-utils.spec @@ -0,0 +1,170 @@ +%global _empty_manifest_terminate_build 0 +Name: python-oslo-utils +Version: 3.35.0 +Release: 1 +Summary: Oslo Utility library +License: Apache-2.0 +URL: https://docs.openstack.org/oslo.utils/latest/ +Source0: https://files.pythonhosted.org/packages/0e/3e/60213972daddecba38b23e0455d5f031f256187001e8400555dd02b98724/oslo.utils-3.35.0.tar.gz +BuildArch: noarch +%description +======================== +Team and repository tags +======================== + +.. image:: http://governance.openstack.org/badges/oslo.utils.svg + :target: http://governance.openstack.org/reference/tags/index.html + +.. Change things from this point on + +========== +oslo.utils +========== + +.. image:: https://img.shields.io/pypi/v/oslo.utils.svg + :target: https://pypi.python.org/pypi/oslo.utils/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/oslo.utils.svg + :target: https://pypi.python.org/pypi/oslo.utils/ + :alt: Downloads + +The oslo.utils library provides support for common utility type functions, +such as encoding, exception handling, string manipulation, and time handling. + +* Free software: Apache license +* Documentation: https://docs.openstack.org/oslo.utils/latest/ +* Source: https://git.openstack.org/cgit/openstack/oslo.utils +* Bugs: https://bugs.launchpad.net/oslo.utils + + + + +%package -n python2-oslo-utils +Summary: Oslo Utility library +Provides: python2-oslo-utils +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pbr +Requires: python2-six +Requires: python2-iso8601 +Requires: python2-oslo-i18n +Requires: python2-monotonic +Requires: python2-pytz +Requires: python2-netaddr +Requires: python2-netifaces +Requires: python2-debtcollector +Requires: python2-pyparsing +Requires: python2-funcsigs +%description -n python2-oslo-utils +======================== +Team and repository tags +======================== + +.. image:: http://governance.openstack.org/badges/oslo.utils.svg + :target: http://governance.openstack.org/reference/tags/index.html + +.. Change things from this point on + +========== +oslo.utils +========== + +.. image:: https://img.shields.io/pypi/v/oslo.utils.svg + :target: https://pypi.python.org/pypi/oslo.utils/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/oslo.utils.svg + :target: https://pypi.python.org/pypi/oslo.utils/ + :alt: Downloads + +The oslo.utils library provides support for common utility type functions, +such as encoding, exception handling, string manipulation, and time handling. + +* Free software: Apache license +* Documentation: https://docs.openstack.org/oslo.utils/latest/ +* Source: https://git.openstack.org/cgit/openstack/oslo.utils +* Bugs: https://bugs.launchpad.net/oslo.utils + + + + +%package help +Summary: Development documents and examples for oslo.utils +Provides: python2-oslo-utils-doc +%description help +======================== +Team and repository tags +======================== + +.. image:: http://governance.openstack.org/badges/oslo.utils.svg + :target: http://governance.openstack.org/reference/tags/index.html + +.. Change things from this point on + +========== +oslo.utils +========== + +.. image:: https://img.shields.io/pypi/v/oslo.utils.svg + :target: https://pypi.python.org/pypi/oslo.utils/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/oslo.utils.svg + :target: https://pypi.python.org/pypi/oslo.utils/ + :alt: Downloads + +The oslo.utils library provides support for common utility type functions, +such as encoding, exception handling, string manipulation, and time handling. + +* Free software: Apache license +* Documentation: https://docs.openstack.org/oslo.utils/latest/ +* Source: https://git.openstack.org/cgit/openstack/oslo.utils +* Bugs: https://bugs.launchpad.net/oslo.utils + + + + +%prep +%autosetup -n oslo.utils-3.35.0 + +%build +%py2_build + +%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 +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-oslo-utils -f filelist.lst +%dir %{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 07 2021 OpenStack_SIG +- Package Spec generated diff --git a/python-oslo.utils.spec b/python-oslo.utils.spec deleted file mode 100644 index 77d8f63a302bde2c381f15324d3078f7477c8d9b..0000000000000000000000000000000000000000 --- a/python-oslo.utils.spec +++ /dev/null @@ -1,87 +0,0 @@ -%global _empty_manifest_terminate_build 0 -Name: python-oslo-utils -Version: 4.7.0 -Release: 2 -Summary: Oslo Utility library -License: Apache-2.0 -URL: https://opendev.org/openstack/oslo.utils -Source0: https://files.pythonhosted.org/packages/a2/ac/7539cc1dc182abcd7fb3c4721d35203bc365415dff2b201f5de72e4fa6f6/oslo.utils-4.7.0.tar.gz -BuildArch: noarch - -Requires: python3-debtcollector -Requires: python3-iso8601 -Requires: python3-netaddr -Requires: python3-netifaces -Requires: python3-packaging -Requires: python3-pbr -Requires: python3-pyparsing -Requires: python3-pytz -Requires: python3-six - -%description -OpenStack library utils - - -%package -n python3-oslo-utils -Summary: Oslo Utility library -Provides: python-oslo-utils -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-pbr -%description -n python3-oslo-utils -OpenStack library utils - - -%package help -Summary: Development documents and examples for oslo.utils -Provides: python3-oslo-utils-doc -%description help -OpenStack library utils - - -%prep -%autosetup -n oslo.utils-4.7.0 - -%build -%py3_build - -%install -%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-oslo-utils -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* - -%changelog -* Sat Jan 30 2021 zhangy -- Add buildrequires -* Fri Jan 08 2021 Python_Bot -- Package Spec generated