summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-23 08:42:40 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-23 08:42:40 +0000
commit0969ab7cd8c0e188d7311476f15017f31ecba2ee (patch)
tree0db70d11e34f50a87f8a711d6c0f1bb4ce7035e4
parent0ab627800585c56a35e310d64a09c973e25a8493 (diff)
automatic import of python3-aiounifiopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-aiounifi.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c8abaf1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aiounifi-44.tar.gz
diff --git a/python-aiounifi.spec b/python-aiounifi.spec
new file mode 100644
index 0000000..4ead64b
--- /dev/null
+++ b/python-aiounifi.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aiounifi
+Version: 44
+Release: 1
+Summary: An asynchronous Python library for communicating with UniFi Network Controller API
+License: MIT
+URL: https://github.com/Kane610/aiounifi
+Source0: https://files.pythonhosted.org/packages/39/c6/1e39caa7701713306f81a5779a1c0adc6cf9881f410bd12e6ca8e59c7840/aiounifi-44.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+Requires: python3-async-timeout
+Requires: python3-orjson
+
+%description
+
+
+%package -n python3-aiounifi
+Summary: An asynchronous Python library for communicating with UniFi Network Controller API
+Provides: python-aiounifi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-aiounifi
+
+
+%package help
+Summary: Development documents and examples for aiounifi
+Provides: python3-aiounifi-doc
+%description help
+
+
+%prep
+%autosetup -n aiounifi-44
+
+%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-aiounifi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Feb 23 2023 Python_Bot <Python_Bot@openeuler.org> - 44-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..50499a1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5779863c17787d109a47196d68e57cce aiounifi-44.tar.gz