From 0a63bbff334eff510b823aa7ebed754275498570 Mon Sep 17 00:00:00 2001 From: zhangfan Date: Fri, 6 Aug 2021 10:33:42 +0800 Subject: [PATCH] Add spec and tar for openstack w Signed-off-by: zhangfan --- python-storage-interfaces.spec | 85 ++++++++++++++++++++++++++++++++ storage_interfaces-1.0.4.tar.gz | Bin 0 -> 4490 bytes 2 files changed, 85 insertions(+) create mode 100644 python-storage-interfaces.spec create mode 100644 storage_interfaces-1.0.4.tar.gz diff --git a/python-storage-interfaces.spec b/python-storage-interfaces.spec new file mode 100644 index 0000000..d803a7d --- /dev/null +++ b/python-storage-interfaces.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-storage-interfaces +Version: 1.0.4 +Release: 1 +Summary: Abstract classes for representing storage-related objects +License: BSD +URL: https://github.com/Infinidat/storage_interfaces +Source0: https://files.pythonhosted.org/packages/b1/35/e944f2465282afcfd3d715ce013276b70435b61eedbc44347158f021dda7/storage_interfaces-1.0.4.tar.gz +BuildArch: noarch +%description +Abstract classes for representing storage-related objects + +%package -n python3-storage-interfaces +Summary: Abstract classes for representing storage-related objects +Provides: python-storage-interfaces +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# Tests running requires +BuildRequires: python3-astroid +BuildRequires: python3-pylint +BuildRequires: python3-pytest +# Tests running requires +Requires: python3-astroid +Requires: python3-pylint +Requires: python3-pytest +%description -n python3-storage-interfaces +Abstract classes for representing storage-related objects + +%package help +Summary: Abstract classes for representing storage-related objects +Provides: python3-storage-interfaces-doc +%description help +Abstract classes for representing storage-related objects + +%prep +%autosetup -n storage_interfaces-%{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 . + +%check +%{__python3} setup.py test + +%files -n python3-storage-interfaces -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Aug 06 2021 OpenStack_SIG - 1.0.4-1 +- Package Spec generate \ No newline at end of file diff --git a/storage_interfaces-1.0.4.tar.gz b/storage_interfaces-1.0.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..299046f87f74a816550b3b661e8f9472b0c38a1c GIT binary patch literal 4490 zcmV;55q0h#iwFp7Gg@B)|72-%bT4ysZ*pO0WnXD-bY*g8VPj=;Eio=IE;KH5VR8WN zJ^gdqNV54g^H)rqt7n`-GT-E}%hqBn+tgv;5KbmGer zfIq;o*<_=x0yLl9GozmA?&%r0?|9mjjZNEU-i4+!E*0g1T-ks1d{6+W*Q@wju9phw z-xyvMA*NO-7pv9st3t6>D%W1o>Z>h4zvS0=wd-(%@1o(a9-@erB zDeF4Z=NbQ6t#aS^7mKCR;`o;!w(^P=vhja$XrHut$BIgtArK-)pGXLVyrV6{puG>L zjQVqzLHNuyG@nr(xUS>*%%JYvzjSPR#XN30HmANre`(UPT&20U)xC{MB$+vst?WhE z2XhNvP6(*irmtUO_QAmr!l%v^!w}TRxKDEzo-?Di!x;v#^hgXDH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