summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 03:50:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 03:50:00 +0000
commit0e36b7db42833612b44d3399f0ce95b34082fba0 (patch)
treeb4e9ce94b50106b96338dd0071d86ed9d26e887f
parent3ec33e6af991a73751c929eca714fe48f65ed2ce (diff)
automatic import of python-gen3
-rw-r--r--.gitignore1
-rw-r--r--python-gen3.spec89
-rw-r--r--sources1
3 files changed, 91 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..39461cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gen3-4.17.2.tar.gz
diff --git a/python-gen3.spec b/python-gen3.spec
new file mode 100644
index 0000000..814172a
--- /dev/null
+++ b/python-gen3.spec
@@ -0,0 +1,89 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gen3
+Version: 4.17.2
+Release: 1
+Summary: Gen3 CLI and Python SDK
+License: Apache-2.0
+URL: https://gen3.org/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/83/cb/f2b5e57a4bb1a8bfffa177005793465107fd3f39a545ad344b771f60c4d0/gen3-4.17.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-indexclient
+Requires: python3-drsclient
+Requires: python3-aiohttp
+Requires: python3-backoff
+Requires: python3-cdislogging
+Requires: python3-click
+Requires: python3-jsonschema
+Requires: python3-dataclasses-json
+Requires: python3-pypfb
+Requires: python3-tqdm
+Requires: python3-humanfriendly
+Requires: python3-dateutil
+Requires: python3-aiofiles
+Requires: python3-pandas
+Requires: python3-httpx
+Requires: python3-fhirclient
+
+%description
+
+
+%package -n python3-gen3
+Summary: Gen3 CLI and Python SDK
+Provides: python-gen3
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gen3
+
+
+%package help
+Summary: Development documents and examples for gen3
+Provides: python3-gen3-doc
+%description help
+
+
+%prep
+%autosetup -n gen3-4.17.2
+
+%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-gen3 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 4.17.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3d95b21
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8dcbf721de5c5f8c665773162d694eb9 gen3-4.17.2.tar.gz