diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 15:57:58 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 15:57:58 +0000 |
| commit | c68d9f4c82f35b36fef6ac6c8a3a02c3ff4ccf89 (patch) | |
| tree | 950d947244950030ee5709ebea60a67c19e6a3de | |
| parent | 3f1f62b31a1779460d8652ef24a123ee0edea5ab (diff) | |
automatic import of python-filestack-python
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-filestack-python.spec | 83 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -0,0 +1 @@ +/filestack-python-3.5.0.tar.gz diff --git a/python-filestack-python.spec b/python-filestack-python.spec new file mode 100644 index 0000000..f532ef5 --- /dev/null +++ b/python-filestack-python.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-filestack-python +Version: 3.5.0 +Release: 1 +Summary: Filestack Python SDK +License: Apache 2.0 +URL: https://github.com/filestack/filestack-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/0a/59f72f5389adfa59806b1b3c299fe1e9d7a651ae8ca855e6b2d9079cdd34/filestack-python-3.5.0.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-trafaret + +%description +Visit: https://github.com/filestack/filestack-python + + + + +%package -n python3-filestack-python +Summary: Filestack Python SDK +Provides: python-filestack-python +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-filestack-python +Visit: https://github.com/filestack/filestack-python + + + + +%package help +Summary: Development documents and examples for filestack-python +Provides: python3-filestack-python-doc +%description help +Visit: https://github.com/filestack/filestack-python + + + + +%prep +%autosetup -n filestack-python-3.5.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-filestack-python -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +b50102d27e33b69edbed421b085f3804 filestack-python-3.5.0.tar.gz |
