summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 11:29:30 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 11:29:30 +0000
commit436376c3428b81d33c40a1cff3d2e5b327cf7056 (patch)
tree6330b8a73344d8ea7c804ca7642bc66798b675cf
parentc81fd0b7887617fd69890e76e6b8c39f711fc18d (diff)
automatic import of python-apidaemon
-rw-r--r--.gitignore1
-rw-r--r--python-apidaemon.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e14c156 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ApiDaemon-0.3.6.3.tar.gz
diff --git a/python-apidaemon.spec b/python-apidaemon.spec
new file mode 100644
index 0000000..cdc1028
--- /dev/null
+++ b/python-apidaemon.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ApiDaemon
+Version: 0.3.6.3
+Release: 1
+Summary: Daemon for wraps any external APIs
+License: MIT-license
+URL: https://github.com/tsyganov-ivan/ApiDaemon
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/13/df9420498b99fc0f5e3a2416ce84d7b3c2416e5dbfb0a513c7c69756635c/ApiDaemon-0.3.6.3.tar.gz
+BuildArch: noarch
+
+
+%description
+Pluggable daemon for wrapping external APIs and create own.
+
+%package -n python3-ApiDaemon
+Summary: Daemon for wraps any external APIs
+Provides: python-ApiDaemon
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ApiDaemon
+Pluggable daemon for wrapping external APIs and create own.
+
+%package help
+Summary: Development documents and examples for ApiDaemon
+Provides: python3-ApiDaemon-doc
+%description help
+Pluggable daemon for wrapping external APIs and create own.
+
+%prep
+%autosetup -n ApiDaemon-0.3.6.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-ApiDaemon -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.6.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9f287ff
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9b35b7c0ec219fd04e094b09d1a46417 ApiDaemon-0.3.6.3.tar.gz