diff --git a/oslo.utils-3.36.5.tar.gz b/oslo.utils-3.36.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b131b1883cc263d93730ab6af3da25aa986deb02 Binary files /dev/null and b/oslo.utils-3.36.5.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..7d9eeb9d6bcf64e16f5b67c0f20d508d62b30789 --- /dev/null +++ b/python-oslo-utils.spec @@ -0,0 +1,173 @@ +%global _empty_manifest_terminate_build 0 +Name: python-oslo-utils +Version: 3.36.5 +Release: 1 +Summary: Oslo Utility library +License: Apache-2.0 +URL: https://docs.openstack.org/oslo.utils/latest/ +Source0: https://files.pythonhosted.org/packages/bc/6a/1353f59a99867a1998f866c0675362f1bc64540f3565249586769c4b9c38/oslo.utils-3.36.5.tar.gz +BuildArch: noarch +%description +======================== +Team and repository tags +======================== + +.. image:: https://governance.openstack.org/tc/badges/oslo.utils.svg + :target: https://governance.openstack.org/tc/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.org/project/oslo.utils/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/oslo.utils.svg + :target: https://pypi.org/project/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 +* Release notes: https://docs.openstack.org/releasenotes/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:: https://governance.openstack.org/tc/badges/oslo.utils.svg + :target: https://governance.openstack.org/tc/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.org/project/oslo.utils/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/oslo.utils.svg + :target: https://pypi.org/project/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 +* Release notes: https://docs.openstack.org/releasenotes/oslo.utils/ + + + + +%package help +Summary: Development documents and examples for oslo.utils +Provides: python2-oslo-utils-doc +%description help +======================== +Team and repository tags +======================== + +.. image:: https://governance.openstack.org/tc/badges/oslo.utils.svg + :target: https://governance.openstack.org/tc/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.org/project/oslo.utils/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/oslo.utils.svg + :target: https://pypi.org/project/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 +* Release notes: https://docs.openstack.org/releasenotes/oslo.utils/ + + + + +%prep +%autosetup -n oslo.utils-3.36.5 + +%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