summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:33:24 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:33:24 +0000
commit6f57a460343386a56b7d0a052496c8fb52419c50 (patch)
tree81c919d0eb7b7587b44a5d2014794405bc056112
parenta7eb490a1f0a1626d87b260a9771efe2f4f45288 (diff)
automatic import of python-oemthermostat
-rw-r--r--.gitignore1
-rw-r--r--python-oemthermostat.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..bcb7f25 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oemthermostat-1.1.1.tar.gz
diff --git a/python-oemthermostat.spec b/python-oemthermostat.spec
new file mode 100644
index 0000000..a56d5d7
--- /dev/null
+++ b/python-oemthermostat.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-oemthermostat
+Version: 1.1.1
+Release: 1
+Summary: A package to interface with the HTTP API of the OpenEnergyMonitor Thermostat.
+License: BSD
+URL: https://github.com/Cadair/openenergymonitor_thermostat
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/2f/d279f34e4484356e36752113a345d80238b4538229dbd32c15e99b97b146/oemthermostat-1.1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-sphinx
+Requires: python3-sphinxcontrib-httpdomain
+Requires: python3-sphinx-automodapi
+Requires: python3-sphinx-rtd-theme
+Requires: python3-pytest
+Requires: python3-pytest-cov
+
+%description
+
+
+%package -n python3-oemthermostat
+Summary: A package to interface with the HTTP API of the OpenEnergyMonitor Thermostat.
+Provides: python-oemthermostat
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-oemthermostat
+
+
+%package help
+Summary: Development documents and examples for oemthermostat
+Provides: python3-oemthermostat-doc
+%description help
+
+
+%prep
+%autosetup -n oemthermostat-1.1.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-oemthermostat -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..446d639
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+86b57494b2c1ab7dad1c8f3fbb12f3cf oemthermostat-1.1.1.tar.gz