diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pysmappee.spec | 78 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/pysmappee-0.2.29.tar.gz diff --git a/python-pysmappee.spec b/python-pysmappee.spec new file mode 100644 index 0000000..9e3565b --- /dev/null +++ b/python-pysmappee.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pysmappee +Version: 0.2.29 +Release: 1 +Summary: Offical Smappee dev API and MQTT python wrapper +License: MIT +URL: https://github.com/smappee/pysmappee +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/ea/753fc91e4325eee236b213e3241adba91c14959f184372d39be1f3ee27c4/pysmappee-0.2.29.tar.gz +BuildArch: noarch + +Requires: python3-cachetools +Requires: python3-paho-mqtt +Requires: python3-pytz +Requires: python3-requests +Requires: python3-requests-oauthlib +Requires: python3-schedule + +%description +Python Library for the Smappee dev API (v3) and MQTT interface. Used as a wrapper dependency in the [Home Assistant integration](https://www.home-assistant.io/integrations/smappee). + +%package -n python3-pysmappee +Summary: Offical Smappee dev API and MQTT python wrapper +Provides: python-pysmappee +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pysmappee +Python Library for the Smappee dev API (v3) and MQTT interface. Used as a wrapper dependency in the [Home Assistant integration](https://www.home-assistant.io/integrations/smappee). + +%package help +Summary: Development documents and examples for pysmappee +Provides: python3-pysmappee-doc +%description help +Python Library for the Smappee dev API (v3) and MQTT interface. Used as a wrapper dependency in the [Home Assistant integration](https://www.home-assistant.io/integrations/smappee). + +%prep +%autosetup -n pysmappee-0.2.29 + +%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-pysmappee -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.29-1 +- Package Spec generated @@ -0,0 +1 @@ +97fbb954ac4aa4b988d552cbdee6c24f pysmappee-0.2.29.tar.gz |
