diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 05:49:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 05:49:06 +0000 |
commit | cb5f12bd72b7e4ee08dd0fb991f081a88f93a06f (patch) | |
tree | 1f5afdebf9edcf4ae11d26b1787e167c68825a94 | |
parent | 3c0e4daf8f3a6ae06dd227aa4a26440b1e8c3a3f (diff) |
automatic import of python-fulfil-client
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-fulfil-client.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/fulfil_client-2.0.0.tar.gz diff --git a/python-fulfil-client.spec b/python-fulfil-client.spec new file mode 100644 index 0000000..048c43d --- /dev/null +++ b/python-fulfil-client.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fulfil_client +Version: 2.0.0 +Release: 1 +Summary: Fulfil REST API Client in Python +License: ISCL +URL: https://github.com/fulfilio/fulfil-python-api +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/81/19/84c2524b80dbbeee8023627061a3ed7c8585ab935fd3df490e71d1a4bbcc/fulfil_client-2.0.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-fulfil_client +Summary: Fulfil REST API Client in Python +Provides: python-fulfil_client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-fulfil_client + + +%package help +Summary: Development documents and examples for fulfil_client +Provides: python3-fulfil_client-doc +%description help + + +%prep +%autosetup -n fulfil_client-2.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 . + +%files -n python3-fulfil_client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +5c0c92efe8ba91dbebcf9119fb037556 fulfil_client-2.0.0.tar.gz |