summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 04:51:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 04:51:29 +0000
commit0cc9e3e9416faedaf207f8b79eda213d3c3c38c0 (patch)
tree9ef1b2f48d4c0ff9660bf4659b5058e526fb8a5a
parent3f1ea73d1e94b75c390068610f1cbaaedfb1bb04 (diff)
automatic import of python-py-melissa-climateopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-py-melissa-climate.spec108
-rw-r--r--sources1
3 files changed, 110 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9e4efaf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/py-melissa-climate-2.1.4.tar.gz
diff --git a/python-py-melissa-climate.spec b/python-py-melissa-climate.spec
new file mode 100644
index 0000000..bf58527
--- /dev/null
+++ b/python-py-melissa-climate.spec
@@ -0,0 +1,108 @@
+%global _empty_manifest_terminate_build 0
+Name: python-py-melissa-climate
+Version: 2.1.4
+Release: 1
+Summary: Api wrapper for Melissa Climate http://seemelissa.com
+License: MIT license
+URL: https://github.com/kennedyshead/py-melissa-climate
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a6/b9/38d59252c9fab73630d9e929a9e88536f913056dff88432d00279df8393b/py-melissa-climate-2.1.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-requests-futures
+Requires: python3-aiohttp
+Requires: python3-check-manifest
+Requires: python3-coverage
+Requires: python3-mock
+
+%description
+This is an unofficial wrapper for melissa web api:
+http://seemelissa.com/en
+`Coffee fundraiser <https://paypal.me/pools/c/8177s58qSX>`__
+Installing
+~~~~~~~~~~
+ pip install py-melissa-climate
+ python
+ >>> from melissa import Melissa
+ >>> m = Melissa(username="email_adress", password="password")
+ >>> m.fetch_devices()
+ {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}}
+
+%package -n python3-py-melissa-climate
+Summary: Api wrapper for Melissa Climate http://seemelissa.com
+Provides: python-py-melissa-climate
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-py-melissa-climate
+This is an unofficial wrapper for melissa web api:
+http://seemelissa.com/en
+`Coffee fundraiser <https://paypal.me/pools/c/8177s58qSX>`__
+Installing
+~~~~~~~~~~
+ pip install py-melissa-climate
+ python
+ >>> from melissa import Melissa
+ >>> m = Melissa(username="email_adress", password="password")
+ >>> m.fetch_devices()
+ {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}}
+
+%package help
+Summary: Development documents and examples for py-melissa-climate
+Provides: python3-py-melissa-climate-doc
+%description help
+This is an unofficial wrapper for melissa web api:
+http://seemelissa.com/en
+`Coffee fundraiser <https://paypal.me/pools/c/8177s58qSX>`__
+Installing
+~~~~~~~~~~
+ pip install py-melissa-climate
+ python
+ >>> from melissa import Melissa
+ >>> m = Melissa(username="email_adress", password="password")
+ >>> m.fetch_devices()
+ {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}}
+
+%prep
+%autosetup -n py-melissa-climate-2.1.4
+
+%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-py-melissa-climate -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..395b0fe
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c5b1f9b498403fe63f6e45a87d75b0f9 py-melissa-climate-2.1.4.tar.gz