summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-30 17:13:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-30 17:13:44 +0000
commitf5df1424a7026b00d3d2728c22748ecebe8aeec6 (patch)
tree373677d6bf8583bbe012a25fdc82df273d9e1c03
parente05783ee05639e62fbb52232812bb9db9c289dab (diff)
automatic import of python-envoy-utils
-rw-r--r--.gitignore1
-rw-r--r--python-envoy-utils.spec100
-rw-r--r--sources1
3 files changed, 102 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0b58f06 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/envoy_utils-0.0.1.tar.gz
diff --git a/python-envoy-utils.spec b/python-envoy-utils.spec
new file mode 100644
index 0000000..03d8114
--- /dev/null
+++ b/python-envoy-utils.spec
@@ -0,0 +1,100 @@
+%global _empty_manifest_terminate_build 0
+Name: python-envoy-utils
+Version: 0.0.1
+Release: 1
+Summary: Python utilities for the Enphase Envoy
+License: GNU General Public License v3 or later (GPLv3+)
+URL: https://pypi.org/project/envoy-utils/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/57/7c/341318b9c87eb55c2e3de149873a8cd0cfe1b9e659d15bce3624f05429fc/envoy_utils-0.0.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-zeroconf
+
+%description
+# EnphaseEnergy
+
+Various collected information about Enphase Energy solar system (I am just starting on this one… But the installer password was highly requested on the web, so I am starting with that one)
+
+- [passwordCalc.py](passwordCalc.py) - sample code to calculate the installer password for a given serial number
+- [findEnphaseWithBonjour.py](findEnphaseWithBonjour.py) - sample code to find Enphase Envoy via Bonjour/Zeroconf. This also provides the serial number of the Envoy.
+- [enphaseStreamMeter.py](enphaseStreamMeter.py) - sample code to stream production/consumption. Requires the installer password.
+
+
+
+
+%package -n python3-envoy-utils
+Summary: Python utilities for the Enphase Envoy
+Provides: python-envoy-utils
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-envoy-utils
+# EnphaseEnergy
+
+Various collected information about Enphase Energy solar system (I am just starting on this one… But the installer password was highly requested on the web, so I am starting with that one)
+
+- [passwordCalc.py](passwordCalc.py) - sample code to calculate the installer password for a given serial number
+- [findEnphaseWithBonjour.py](findEnphaseWithBonjour.py) - sample code to find Enphase Envoy via Bonjour/Zeroconf. This also provides the serial number of the Envoy.
+- [enphaseStreamMeter.py](enphaseStreamMeter.py) - sample code to stream production/consumption. Requires the installer password.
+
+
+
+
+%package help
+Summary: Development documents and examples for envoy-utils
+Provides: python3-envoy-utils-doc
+%description help
+# EnphaseEnergy
+
+Various collected information about Enphase Energy solar system (I am just starting on this one… But the installer password was highly requested on the web, so I am starting with that one)
+
+- [passwordCalc.py](passwordCalc.py) - sample code to calculate the installer password for a given serial number
+- [findEnphaseWithBonjour.py](findEnphaseWithBonjour.py) - sample code to find Enphase Envoy via Bonjour/Zeroconf. This also provides the serial number of the Envoy.
+- [enphaseStreamMeter.py](enphaseStreamMeter.py) - sample code to stream production/consumption. Requires the installer password.
+
+
+
+
+%prep
+%autosetup -n envoy-utils-0.0.1
+
+%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-envoy-utils -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1115f37
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f11c06f82b741c9ae36a454266fcbb53 envoy_utils-0.0.1.tar.gz