summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 16:40:54 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 16:40:54 +0000
commitb1ab9b690637fb1c2efe3cfc3ec2caecfeb09e3c (patch)
treef0d6c432f0dcc14cb60d14d9d2e042c71ba56282
parent8c3f6112f5dcd38917c841956083b08c226731f4 (diff)
automatic import of python-pythx
-rw-r--r--.gitignore1
-rw-r--r--python-pythx.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b487c79 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pythx-1.7.3.tar.gz
diff --git a/python-pythx.spec b/python-pythx.spec
new file mode 100644
index 0000000..08c8844
--- /dev/null
+++ b/python-pythx.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pythx
+Version: 1.7.3
+Release: 1
+Summary: A Python library for the MythX platform
+License: MIT license
+URL: https://github.com/dmuhs/pythx
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fc/49/7d8c870405211489c9fa2c266c9296849ffa6a06f75fd5cf18eb3bc0d35b/pythx-1.7.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-dateutil
+Requires: python3-inflection
+Requires: python3-PyJWT
+Requires: python3-requests
+Requires: python3-mythx-models
+
+%description
+
+
+%package -n python3-pythx
+Summary: A Python library for the MythX platform
+Provides: python-pythx
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pythx
+
+
+%package help
+Summary: Development documents and examples for pythx
+Provides: python3-pythx-doc
+%description help
+
+
+%prep
+%autosetup -n pythx-1.7.3
+
+%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-pythx -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3dedd21
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+11ea9b6cbd67d7bf0f7a379eb8393b63 pythx-1.7.3.tar.gz