From b1ce358627a9fb13cea81d5572026603e7c88f4b Mon Sep 17 00:00:00 2001 From: sean-lau Date: Mon, 31 May 2021 09:53:56 +0800 Subject: [PATCH] Add support for OpenStack R and Q version --- python-anyjson.spec | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/python-anyjson.spec b/python-anyjson.spec index 34c6173..2127e0d 100644 --- a/python-anyjson.spec +++ b/python-anyjson.spec @@ -7,24 +7,23 @@ License: BSD URL: http://bitbucket.org/runeh/anyjson/ Source0: https://files.pythonhosted.org/packages/c3/4d/d4089e1a3dd25b46bebdb55a992b0797cff657b4477bc32ce28038fdecbc/anyjson-0.3.3.tar.gz BuildArch: noarch - - %description Anyjson loads whichever is the fastest JSON module installed and provides a uniform API regardless of which JSON implementation is used. -%package -n python3-anyjson +%package -n python2-anyjson Summary: Wraps the best available JSON implementation available in a common interface -Provides: python-anyjson -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-anyjson +Provides: python2-anyjson +BuildRequires: python2-devel +BuildRequires: python2-pbr +BuildRequires: python2-setuptools +%description -n python2-anyjson Anyjson loads whichever is the fastest JSON module installed and provides a uniform API regardless of which JSON implementation is used. %package help Summary: Development documents and examples for anyjson -Provides: python3-anyjson-doc +Provides: python2-anyjson-doc %description help Anyjson loads whichever is the fastest JSON module installed and provides a uniform API regardless of which JSON implementation is used. @@ -33,10 +32,10 @@ a uniform API regardless of which JSON implementation is used. %autosetup -n anyjson-0.3.3 %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 @@ -63,12 +62,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-anyjson -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-anyjson -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Mon Jul 06 2020 Python_Bot +* Mon May 31 2021 OpenStack_SIG - Package Spec generated -- Gitee