python-glance-store/python-glance-store.spec
liusheng 58f7053fb5 Upgrade glance_store package to version 1.0.1
(cherry picked from commit ff213d7c85eaf48b87908fc3fba2bf7ee9666295)
2021-11-15 15:27:02 +08:00

119 lines
3.6 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-glance-store
Version: 1.0.1
Release: 1
Summary: OpenStack Image Service Store Library
License: Apache-2.0
URL: https://docs.openstack.org/glance_store/latest/
Source0: https://files.pythonhosted.org/packages/cc/1b/5790fef5a2068cc4cef98432c5a3f12996b1fc91a8edd3f80df1297fe845/glance_store-1.0.1.tar.gz
BuildArch: noarch
%description
Glance store library.
%package -n python3-glance-store
Summary: OpenStack Image Service Store Library
Provides: python-glance-store
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-serialization
BuildRequires: python3-oslo-utils
BuildRequires: python3-oslo-concurrency
BuildRequires: python3-stevedore
BuildRequires: python3-eventlet
BuildRequires: python3-six
BuildRequires: python3-jsonschema
BuildRequires: python3-keystoneauth1
BuildRequires: python3-keystoneclient
BuildRequires: python3-requests
BuildRequires: python3-cinderclient
BuildRequires: python3-os-brick
BuildRequires: python3-oslo-rootwrap
BuildRequires: python3-oslo-privsep
BuildRequires: python3-httplib2
BuildRequires: python3-swiftclient
BuildRequires: python3-oslo-vmware
# General requires
Requires: python3-oslo-config
Requires: python3-oslo-i18n
Requires: python3-oslo-serialization
Requires: python3-oslo-utils
Requires: python3-oslo-concurrency
Requires: python3-stevedore
Requires: python3-eventlet
Requires: python3-six
Requires: python3-jsonschema
Requires: python3-keystoneauth1
Requires: python3-keystoneclient
Requires: python3-requests
Requires: python3-cinderclient
Requires: python3-os-brick
Requires: python3-oslo-rootwrap
Requires: python3-oslo-privsep
Requires: python3-httplib2
Requires: python3-swiftclient
Requires: python3-oslo-vmware
%description -n python3-glance-store
Glance store library.
%package help
Summary: OpenStack Image Service Store Library
Provides: python3-glance-store-doc
%description help
Glance store library.
%prep
%autosetup -n glance_store-%{version}
%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-glance-store -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon Nov 15 2021 liusheng <liusheng2048@gmail.com> - 1.0.1-1
- Upgrade glance_store package to version 1.0.1
* Fri Nov 12 2021 OpenStack_SIG <openstack@openeuler.org> - 1.0.0-1
- Init with version 1.0.0 to support OpenStack Train