summaryrefslogtreecommitdiff
path: root/python-aio-api-ros.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:48:36 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:48:36 +0000
commit2586d668cdee3243eb9afd594e9e8875b1901826 (patch)
treeb62b60e3c4dfdd27a0e00223c26bd40f3b14701a /python-aio-api-ros.spec
parentf30c9458892250342efa04cbddeb453a67ae19b7 (diff)
automatic import of python-aio-api-rosopeneuler20.03
Diffstat (limited to 'python-aio-api-ros.spec')
-rw-r--r--python-aio-api-ros.spec81
1 files changed, 81 insertions, 0 deletions
diff --git a/python-aio-api-ros.spec b/python-aio-api-ros.spec
new file mode 100644
index 0000000..6f3ff10
--- /dev/null
+++ b/python-aio-api-ros.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aio-api-ros
+Version: 0.0.19
+Release: 1
+Summary: async implementation Mikrotik api
+License: MIT
+URL: https://github.com/frostspb/aio_api_ros
+Source0: https://mirrors.aliyun.com/pypi/web/packages/14/d3/40b3eaa86efc81c5a65a3f8bddb55c074609a948a313be1353b5d225565a/aio_api_ros-0.0.19.tar.gz
+BuildArch: noarch
+
+
+%description
+async implementation Mikrotik api
+Only Python 3.5+
+
+
+
+%package -n python3-aio-api-ros
+Summary: async implementation Mikrotik api
+Provides: python-aio-api-ros
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-aio-api-ros
+async implementation Mikrotik api
+Only Python 3.5+
+
+
+
+%package help
+Summary: Development documents and examples for aio-api-ros
+Provides: python3-aio-api-ros-doc
+%description help
+async implementation Mikrotik api
+Only Python 3.5+
+
+
+
+%prep
+%autosetup -n aio_api_ros-0.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-aio-api-ros -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.19-1
+- Package Spec generated