summaryrefslogtreecommitdiff
path: root/python-cspyclient.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 02:53:31 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 02:53:31 +0000
commitf2d2e59a381245e2ed7d87775a33dc98cc7c476e (patch)
tree94428b4f59252356f4d37a54797c3960d8da52f5 /python-cspyclient.spec
parentf3b7854c57b3aeb007fb71f25e37834c04895fc0 (diff)
automatic import of python-cspyclient
Diffstat (limited to 'python-cspyclient.spec')
-rw-r--r--python-cspyclient.spec76
1 files changed, 76 insertions, 0 deletions
diff --git a/python-cspyclient.spec b/python-cspyclient.spec
new file mode 100644
index 0000000..f9a86d8
--- /dev/null
+++ b/python-cspyclient.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cspyclient
+Version: 1.0.19
+Release: 1
+Summary: An internal tool to work with CoderSchool Backend API
+License: MIT
+URL: https://pypi.org/project/cspyclient/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/9e/908ecb8a228dfd99c0fb761bb9aa243d7d9bc40b86f658a8bd4a08980b02/cspyclient-1.0.19.tar.gz
+BuildArch: noarch
+
+Requires: python3-pandas
+Requires: python3-requests
+Requires: python3-cryptography
+Requires: python3-numpy
+
+%description
+
+
+%package -n python3-cspyclient
+Summary: An internal tool to work with CoderSchool Backend API
+Provides: python-cspyclient
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cspyclient
+
+
+%package help
+Summary: Development documents and examples for cspyclient
+Provides: python3-cspyclient-doc
+%description help
+
+
+%prep
+%autosetup -n cspyclient-1.0.19
+
+%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-cspyclient -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.19-1
+- Package Spec generated