From b013d5c381a6c228c69db54fa69f0e172dea76a6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 22 Aug 2023 08:46:24 +0000 Subject: automatic import of python-storage-interfaces --- python-storage-interfaces.spec | 88 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 python-storage-interfaces.spec (limited to 'python-storage-interfaces.spec') diff --git a/python-storage-interfaces.spec b/python-storage-interfaces.spec new file mode 100644 index 0000000..e509ffa --- /dev/null +++ b/python-storage-interfaces.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-storage-interfaces +Version: 1.0.5 +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/d0/f0/9caf3089e19dced3892714cef0817d87fb985e8215e468cc88a86a9afaf1/storage_interfaces-1.0.5.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 Jul 28 2023 sunhui - 1.0.5-1 +- Update package to version 1.0.5 + +* Fri Aug 06 2021 OpenStack_SIG - 1.0.4-1 +- Package Spec generate -- cgit v1.2.3