summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 05:10:56 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 05:10:56 +0000
commit439b0651cd126eacd01997ecde4225c1515dfa32 (patch)
tree2ce1496ae78d4fd3cc78bc78e924fc4c3b8f25c4
parent1400ec9a2f6a0490e955576cea31956ea71a9a48 (diff)
automatic import of python3-compalopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-compal.spec80
-rw-r--r--sources1
3 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ebbada9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/compal-0.4.0.tar.gz
diff --git a/python-compal.spec b/python-compal.spec
new file mode 100644
index 0000000..8c1822c
--- /dev/null
+++ b/python-compal.spec
@@ -0,0 +1,80 @@
+%global _empty_manifest_terminate_build 0
+Name: python-compal
+Version: 0.4.0
+Release: 1
+Summary: Compal CH7465LG/Ziggo Connect Box client
+License: MIT
+URL: https://github.com/ties/compal_CH7465LG_py
+Source0: https://files.pythonhosted.org/packages/aa/1c/bd3be81743cdf3b9aa185c1b07f3a69966ba94241e0800e7a066a07d70fb/compal-0.4.0.tar.gz
+BuildArch: noarch
+
+
+%description
+This repository contains a simple api to wrap the web interface of the Ziggo Connect Box (i.e. the
+Compal CH7465LG). It is implemented in **Python >= 3.7**.
+At the moment it *only* contains the functionality that I needed while I was investigating my
+device, but pull requests that improve the documentation or add features are welcome.
+
+%package -n python3-compal
+Summary: Compal CH7465LG/Ziggo Connect Box client
+Provides: python-compal
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-compal
+This repository contains a simple api to wrap the web interface of the Ziggo Connect Box (i.e. the
+Compal CH7465LG). It is implemented in **Python >= 3.7**.
+At the moment it *only* contains the functionality that I needed while I was investigating my
+device, but pull requests that improve the documentation or add features are welcome.
+
+%package help
+Summary: Development documents and examples for compal
+Provides: python3-compal-doc
+%description help
+This repository contains a simple api to wrap the web interface of the Ziggo Connect Box (i.e. the
+Compal CH7465LG). It is implemented in **Python >= 3.7**.
+At the moment it *only* contains the functionality that I needed while I was investigating my
+device, but pull requests that improve the documentation or add features are welcome.
+
+%prep
+%autosetup -n compal-0.4.0
+
+%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-compal -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..308be2c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1eb992d755ebfc9c43a08590582de135 compal-0.4.0.tar.gz