!2 Init infinisdk
From: @huangtianhua Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
2b7e7cdb3a
BIN
infinisdk-161.1.3.tar.gz
Normal file
BIN
infinisdk-161.1.3.tar.gz
Normal file
Binary file not shown.
122
python-infinisdk.spec
Normal file
122
python-infinisdk.spec
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-infinisdk
|
||||||
|
Version: 161.1.3
|
||||||
|
Release: 1
|
||||||
|
Summary: Infinidat API SDK
|
||||||
|
License: BSD
|
||||||
|
URL: https://infinisdk.readthedocs.io/en/latest/
|
||||||
|
Source0: https://files.pythonhosted.org/packages/3e/ee/257d9283673ccfa646a785e116120cd995f7f2802cf6c720171609783b27/infinisdk-161.1.3.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Infinidat API SDK
|
||||||
|
|
||||||
|
%package -n python3-infinisdk
|
||||||
|
Summary: Infinidat API SDK
|
||||||
|
Provides: python-infinisdk
|
||||||
|
# Base build requires
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
# General requires
|
||||||
|
BuildRequires: python3-api-object-schema
|
||||||
|
BuildRequires: python3-arrow
|
||||||
|
BuildRequires: python3-capacity
|
||||||
|
BuildRequires: python3-colorama
|
||||||
|
BuildRequires: python3-confetti
|
||||||
|
BuildRequires: python3-click
|
||||||
|
BuildRequires: python3-flux
|
||||||
|
BuildRequires: python3-gossip
|
||||||
|
BuildRequires: python3-infi.dtypes.wwn
|
||||||
|
BuildRequires: python3-infi-dtypes-iqn
|
||||||
|
BuildRequires: python3-logbook
|
||||||
|
BuildRequires: python3-munch
|
||||||
|
BuildRequires: python3-mitba
|
||||||
|
BuildRequires: python3-pact
|
||||||
|
BuildRequires: python3-dateutil
|
||||||
|
BuildRequires: python3-requests
|
||||||
|
BuildRequires: python3-sentinels
|
||||||
|
BuildRequires: python3-storage-interfaces
|
||||||
|
BuildRequires: python3-urlobject
|
||||||
|
BuildRequires: python3-vintage
|
||||||
|
BuildRequires: python3-sphinx-theme-alabaster
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
# General requires
|
||||||
|
Requires: python3-api-object-schema
|
||||||
|
Requires: python3-arrow
|
||||||
|
Requires: python3-capacity
|
||||||
|
Requires: python3-colorama
|
||||||
|
Requires: python3-confetti
|
||||||
|
Requires: python3-click
|
||||||
|
Requires: python3-flux
|
||||||
|
Requires: python3-gossip
|
||||||
|
Requires: python3-infi.dtypes.wwn
|
||||||
|
Requires: python3-infi-dtypes-iqn
|
||||||
|
Requires: python3-logbook
|
||||||
|
Requires: python3-munch
|
||||||
|
Requires: python3-mitba
|
||||||
|
Requires: python3-pact
|
||||||
|
Requires: python3-dateutil
|
||||||
|
Requires: python3-requests
|
||||||
|
Requires: python3-sentinels
|
||||||
|
Requires: python3-storage-interfaces
|
||||||
|
Requires: python3-urlobject
|
||||||
|
Requires: python3-vintage
|
||||||
|
Requires: python3-sphinx-theme-alabaster
|
||||||
|
Requires: python3-sphinx
|
||||||
|
%description -n python3-infinisdk
|
||||||
|
Infinidat API SDK
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Infinidat API SDK
|
||||||
|
Provides: python3-infinisdk-doc
|
||||||
|
%description help
|
||||||
|
Infinidat API SDK
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n infinisdk-%{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-infinisdk -f filelist.lst
|
||||||
|
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 19 2021 OpenStack_SIG <openstack@openeuler.org> - 161.1.3-1
|
||||||
|
- Package Spec generate
|
||||||
Loading…
x
Reference in New Issue
Block a user