diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:31:57 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:31:57 +0000 |
commit | de387153371e97c3502ed4560bfff7bb6c82130a (patch) | |
tree | f5541a73fc163cfc1df3c20b36e54630c7bb6fcb | |
parent | 272b9f5593c90b885140ef5df2a6cd10cc4729a1 (diff) |
automatic import of python-pyatmoopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyatmo.spec | 94 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 96 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyatmo-7.5.0.tar.gz diff --git a/python-pyatmo.spec b/python-pyatmo.spec new file mode 100644 index 0000000..551103f --- /dev/null +++ b/python-pyatmo.spec @@ -0,0 +1,94 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyatmo +Version: 7.5.0 +Release: 1 +Summary: Simple API to access Netatmo weather station data from any Python 3 script. Designed for Home Assistant (but not only) +License: MIT +URL: https://github.com/jabesq/pyatmo +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/e2/33ebd80c2346716aa5be74e0128c3b8bf81045c5c69631526b54eb6223e0/pyatmo-7.5.0.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-oauthlib +Requires: python3-requests +Requires: python3-requests-oauthlib + +%description +[](https://github.com/ambv/black) +[](https://github.com/jabesq/pyatmo/actions?workflow=Python+package) +[](https://pypi.python.org/pypi/pyatmo) +[](https://github.com/jabesq/pyatmo/blob/master/LICENSE.txt) +Simple API to access Netatmo devices and data like weather station or camera data from Python 3. +For more detailed information see [dev.netatmo.com](http://dev.netatmo.com) +This project has no relation with the Netatmo company. + +%package -n python3-pyatmo +Summary: Simple API to access Netatmo weather station data from any Python 3 script. Designed for Home Assistant (but not only) +Provides: python-pyatmo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyatmo +[](https://github.com/ambv/black) +[](https://github.com/jabesq/pyatmo/actions?workflow=Python+package) +[](https://pypi.python.org/pypi/pyatmo) +[](https://github.com/jabesq/pyatmo/blob/master/LICENSE.txt) +Simple API to access Netatmo devices and data like weather station or camera data from Python 3. +For more detailed information see [dev.netatmo.com](http://dev.netatmo.com) +This project has no relation with the Netatmo company. + +%package help +Summary: Development documents and examples for pyatmo +Provides: python3-pyatmo-doc +%description help +[](https://github.com/ambv/black) +[](https://github.com/jabesq/pyatmo/actions?workflow=Python+package) +[](https://pypi.python.org/pypi/pyatmo) +[](https://github.com/jabesq/pyatmo/blob/master/LICENSE.txt) +Simple API to access Netatmo devices and data like weather station or camera data from Python 3. +For more detailed information see [dev.netatmo.com](http://dev.netatmo.com) +This project has no relation with the Netatmo company. + +%prep +%autosetup -n pyatmo-7.5.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-pyatmo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 7.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +108ec489402f7a2fe1ad6a07fb354046 pyatmo-7.5.0.tar.gz |