diff --git a/aniso8601-0.82.tar.gz b/aniso8601-0.82.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8c4edb3488b8dce010998ccee6502e71d22b90c6 Binary files /dev/null and b/aniso8601-0.82.tar.gz differ diff --git a/aniso8601-8.1.0.tar.gz b/aniso8601-8.1.0.tar.gz deleted file mode 100644 index a7331eb0a960f6f223064e4a28c8ad1033d81a60..0000000000000000000000000000000000000000 Binary files a/aniso8601-8.1.0.tar.gz and /dev/null differ diff --git a/python-aniso8601.spec b/python-aniso8601.spec index 7434e201b0d8ef1de103ab874cac77b410e8371c..90c75ab10abf641c6292b40c8797aad1c045c263 100644 --- a/python-aniso8601.spec +++ b/python-aniso8601.spec @@ -1,44 +1,70 @@ -Name: python-aniso8601 -Version: 8.1.0 -Release: 1 -Summary: Another ISO 8601 parser for Python -License: GPLv3+ -URL: https://bitbucket.org/nielsenb/aniso8601 -Source0: https://pypi.io/packages/source/a/aniso8601/aniso8601-%{version}.tar.gz -BuildArch: noarch - -BuildRequires: python3-devel - +%global _empty_manifest_terminate_build 0 +Name: python-aniso8601 +Version: 0.82 +Release: 1 +Summary: A library for parsing ISO 8601 strings. +License: GNU General Public License v3 or later (GPLv3+) +URL: https://bitbucket.org/nielsenb/aniso8601 +Source0: https://files.pythonhosted.org/packages/1b/81/2dbfc8eff9b6c052e22dba1c775dc3eec61117a9d800e1825f373f840e6b/aniso8601-0.82.tar.gz +BuildArch: noarch %description -A python library for parsing ISO 8601 strings. +Another ISO 8601 parser for Python -%package -n python3-aniso8601 -Summary: Another ISO 8601 parser for Python -%{?python_provide:%python_provide python3-aniso8601} +%package -n python2-aniso8601 +Summary: A library for parsing ISO 8601 strings. +Provides: python2-aniso8601 +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pbr +%description -n python2-aniso8601 +Another ISO 8601 parser for Python -%description -n python3-aniso8601 -A python library for parsing ISO 8601 strings. +%package help +Summary: Development documents and examples for aniso8601 +Provides: python2-aniso8601-doc +%description help +Another ISO 8601 parser for Python %prep -%autosetup -n aniso8601-%{version} +%autosetup -n aniso8601-0.82 %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 +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 . -%check -%{__python3} -m unittest discover aniso8601/tests/ +%files -n python2-aniso8601 -f filelist.lst +%dir %{python2_sitelib}/* -%files -n python3-aniso8601 -%license LICENSE -%doc README.rst -%{python3_sitelib}/* +%files help -f doclist.lst +%{_docdir}/* %changelog -* Tue Feb 2 2021 wangjie - 8.1.0-1 -- Upgrade to version 8.1.0 - -* Tue Nov 5 2019 openEuler Buildteam - 0.10.0-1 -- Package init +* Tue Jun 01 2021 OpenStack_SIG +- Package Spec generated