summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:36:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:36:53 +0000
commit845ef401cc1678162fcaefeeafd27c4e73252d89 (patch)
tree9c4d98c39d92863941b4b1191c2a4e2b79e0dde2
parent99d831b6396e34b0246f74b7411fa01f0d307664 (diff)
automatic import of python-Procountoropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-procountor.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d268c8d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Procountor-2.2.3.tar.gz
diff --git a/python-procountor.spec b/python-procountor.spec
new file mode 100644
index 0000000..8dd858e
--- /dev/null
+++ b/python-procountor.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Procountor
+Version: 2.2.3
+Release: 1
+Summary: Python library for calling Procountor REST API
+License: MIT license
+URL: https://github.com/vilkasgroup/Procountor
+Source0: https://mirrors.aliyun.com/pypi/web/packages/a1/99/63aed41856a56c48cf738b8ed2fd248ce7397438cb0fe3afa9402a2f7aa2/Procountor-2.2.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-requests-toolbelt
+
+%description
+
+
+%package -n python3-Procountor
+Summary: Python library for calling Procountor REST API
+Provides: python-Procountor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Procountor
+
+
+%package help
+Summary: Development documents and examples for Procountor
+Provides: python3-Procountor-doc
+%description help
+
+
+%prep
+%autosetup -n Procountor-2.2.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-Procountor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e3af0c0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3cac62af56fb6f68b9909420b20bb015 Procountor-2.2.3.tar.gz