diff --git a/heketi-3.0.0.tar.gz b/heketi-3.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b84af17a08be11508f92734ace8ff843832f586f Binary files /dev/null and b/heketi-3.0.0.tar.gz differ diff --git a/python-heketi.spec b/python-heketi.spec new file mode 100644 index 0000000000000000000000000000000000000000..a3493e501ed63a26db2eb2f469c080e339653732 --- /dev/null +++ b/python-heketi.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-heketi +Version: 3.0.0 +Release: 1 +Summary: Python client library for Heketi +License: Apache License (2.0) +URL: https://github.com/heketi/heketi/tree/master/client/api/python +Source0: https://files.pythonhosted.org/packages/2e/d7/901ee2ee8a0bfc8415174c1540bbbdbf416988b3388356a399cfa00e5048/heketi-3.0.0.tar.gz +BuildArch: noarch + + +%description +Heketi provides a RESTful management interface which can be used to manage the life cycle of GlusterFS volumes. + +%package -n python3-heketi +Summary: Python client library for Heketi +Provides: python-heketi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-heketi +Heketi provides a RESTful management interface which can be used to manage the life cycle of GlusterFS volumes. + + +%package help +Summary: Development documents and examples for heketi +Provides: python3-heketi-doc +%description help +Heketi provides a RESTful management interface which can be used to manage the life cycle of GlusterFS volumes. + + +%prep +%autosetup -n heketi-3.0.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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-heketi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Jan 13 2022 wangqia - 3.0.0-1 +- Package Spec generated