diff --git a/glance_store-0.23.0.tar.gz b/glance_store-0.23.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..be693b6ae1ecc280909c3e4110690f22ad050ba2 Binary files /dev/null and b/glance_store-0.23.0.tar.gz differ diff --git a/glance_store-2.3.0.tar.gz b/glance_store-2.3.0.tar.gz deleted file mode 100644 index e40d07fbb18af163c27fa91fed05081dab8191ef..0000000000000000000000000000000000000000 Binary files a/glance_store-2.3.0.tar.gz and /dev/null differ diff --git a/python-glance-store.spec b/python-glance-store.spec index 59d1396cc77c64baae81707247b1a779ee9a2897..16a5694acf94600ce6da24b27ddad0ab7a0fde26 100644 --- a/python-glance-store.spec +++ b/python-glance-store.spec @@ -1,67 +1,100 @@ %global _empty_manifest_terminate_build 0 -Name: python-glance-store -Version: 2.3.0 -Release: 2%{?dist} -Summary: OpenStack Image Service Store Library -License: Apache-2.0 -URL: https://github.com/openstack/glance_store -Source0: https://tarballs.openstack.org/glance_store/glance_store-2.3.0.tar.gz -BuildArch: noarch - +%global __requires_exclude eventlet +Name: python-glance-store +Version: 0.23.0 +Release: 4 +Summary: OpenStack Image Service Store Library +License: Apache-2.0 +URL: http://docs.openstack.org/developer/glance_store +Source0: https://files.pythonhosted.org/packages/cd/39/f17ae0aeec09fd51c7b4bd5a293ddc2f6ed9bca4494b8a2c55b5bee89fee/glance_store-0.23.0.tar.gz +BuildArch: noarch %description -OpenStack image service store library -%package -n python3-glance-store -Summary: OpenStack Image Service Store Library -BuildRequires: git -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pbr -Requires: python3-eventlet -Requires: python3-cinderclient >= 4.1.0 -Requires: python3-keystoneauth1 >= 3.4.0 -Requires: python3-keystoneclient >= 1:3.8.0 -Requires: python3-requests -Requires: python3-six >= 1.10.0 -Requires: python3-stevedore >= 1.20.0 -Requires: python3-oslo-concurrency >= 3.26.0 -Requires: python3-oslo-config -Requires: python3-oslo-i18n >= 3.15.3 -Requires: python3-oslo-rootwrap -Requires: python3-oslo-serialization >= 2.18.0 -Requires: python3-oslo-utils >= 3.33.0 -Requires: python3-os-brick >= 2.6.0 -Requires: python3-oslo-privsep >= 1.23.0 -Requires: python3-jsonschema -%{?python_provide:%python_provide python3-glance-store} +OpenStack Image Service Store Library + + +%package -n python2-glance-store +Summary: OpenStack Image Service Store Library +Provides: python2-glance-store +BuildRequires: python2-pbr +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-oslo-config +Requires: python2-oslo-i18n +Requires: python2-oslo-serialization +Requires: python2-oslo-utils +Requires: python2-oslo-concurrency +Requires: python2-stevedore +Requires: python2-eventlet +Requires: python2-six +Requires: python2-jsonschema +Requires: python2-keystoneauth1 +Requires: python2-keystoneclient +Requires: python2-requests +Requires: python2-enum34 +Requires: python2-cinderclient +Requires: python2-os-brick +Requires: python2-oslo-rootwrap +Requires: python2-oslo-privsep +Requires: python2-httplib2 +Requires: python2-swiftclient +Requires: python2-oslo-vmware +%description -n python2-glance-store +OpenStack Image Service Store Library + + +%package help +Summary: Development documents and examples for glance-store +Provides: python2-glance-store-doc +%description help +OpenStack Image Service Store Library -%description -n python3-glance-store -OpenStack image service store library %prep -%autosetup -S git -n glance_store-2.3.0 +%autosetup -n glance_store-0.23.0 %build -%{py3_build} +%py2_build %install -%{py3_install} -ln -s ./glance-rootwrap %{buildroot}%{_bindir}/glance-rootwrap-3 -install -p -D -m 644 etc/glance/rootwrap.d/glance_cinder_store.filters %{buildroot}%{_datarootdir}/glance_store/glance_cinder_store.filters -rm -rf %{buildroot}%{_prefix}/etc/glance +%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 python3-glance-store -%doc AUTHORS ChangeLog -%license LICENSE -%{_bindir}/glance-rootwrap -%{_bindir}/glance-rootwrap-3 -%{_datarootdir}/glance_store -%{_datarootdir}/glance_store/*.filters -%{python3_sitelib}/glance_store -%{python3_sitelib}/glance_store-*.egg-info +%files -n python2-glance-store -f filelist.lst +%{python2_sitelib}/* -%changelog -* Wed Oct 21 2020 Joel Capitao 2.3.0-2 -- Enable sources tarball validation using GPG signature. +%files help -f doclist.lst +%{_docdir}/* -* Mon Sep 21 2020 RDO 2.3.0-1 -- Update to 2.3.0 +%changelog +* Thu Jun 03 2021 wangxiyuan +- Drop eventlet version limit +* Wed Jun 2 2021 huangtianhua +- Adds BuildRequires python2-pbr to make obs success +* Mon May 24 2021 openstack-sig +- Fix Provides +* Fri May 14 2021 openstack-sig +- Package Spec generated