diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:02:16 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:02:16 +0000 |
| commit | f8af01f54c7511a952b733b3ce51ea835264b3a5 (patch) | |
| tree | 6062748e49fb6a96b9e492598122f89ba1e71d1f /python-netapp-ontap.spec | |
| parent | 6f6699dc7d2ebb56f0cbfe65ddc640b490579a13 (diff) | |
automatic import of python-netapp-ontap
Diffstat (limited to 'python-netapp-ontap.spec')
| -rw-r--r-- | python-netapp-ontap.spec | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/python-netapp-ontap.spec b/python-netapp-ontap.spec new file mode 100644 index 0000000..25cc60b --- /dev/null +++ b/python-netapp-ontap.spec @@ -0,0 +1,95 @@ +%global _empty_manifest_terminate_build 0 +Name: python-netapp-ontap +Version: 9.12.1.0 +Release: 1 +Summary: A library for working with ONTAP's REST APIs simply in Python +License: BSD License +URL: https://devnet.netapp.com/restapi.php +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9a/da/d0c608f7dab7cf29f27f737e69587482854e3edd422ab09bda2f447b58c6/netapp_ontap-9.12.1.0.tar.gz +BuildArch: noarch + +Requires: python3-marshmallow +Requires: python3-requests +Requires: python3-requests-toolbelt +Requires: python3-urllib3 +Requires: python3-recline + +%description +GET https://10.100.200.50:443/api/storage/volumes/1 +Accept: */* +User-Agent: python-requests/2.21.0 +Connection: keep-alive +Accept-Encoding: gzip, deflate +X-Dot-Client-App: netapp-ontap-python-9.8.0 +Authorization: Basic YWRtaW46cGFzc3dvcmQK + +%package -n python3-netapp-ontap +Summary: A library for working with ONTAP's REST APIs simply in Python +Provides: python-netapp-ontap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-netapp-ontap +GET https://10.100.200.50:443/api/storage/volumes/1 +Accept: */* +User-Agent: python-requests/2.21.0 +Connection: keep-alive +Accept-Encoding: gzip, deflate +X-Dot-Client-App: netapp-ontap-python-9.8.0 +Authorization: Basic YWRtaW46cGFzc3dvcmQK + +%package help +Summary: Development documents and examples for netapp-ontap +Provides: python3-netapp-ontap-doc +%description help +GET https://10.100.200.50:443/api/storage/volumes/1 +Accept: */* +User-Agent: python-requests/2.21.0 +Connection: keep-alive +Accept-Encoding: gzip, deflate +X-Dot-Client-App: netapp-ontap-python-9.8.0 +Authorization: Basic YWRtaW46cGFzc3dvcmQK + +%prep +%autosetup -n netapp-ontap-9.12.1.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 . + +%files -n python3-netapp-ontap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 9.12.1.0-1 +- Package Spec generated |
