diff --git a/python-volkszaehler.spec b/python-volkszaehler.spec new file mode 100644 index 0000000000000000000000000000000000000000..0c34181cac2720d8f3e53e8780c7e08b96cf52b7 --- /dev/null +++ b/python-volkszaehler.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-volkszaehler +Version: 0.2.2 +Release: 1 +Summary: Python Wrapper for interacting with the Volkszahler API. +License: MIT +URL: https://github.com/home-assistant-ecosystem/python-volkszaehler +Source0: https://files.pythonhosted.org/packages/c2/e2/5f1c4878b0f3054abedb50ed15dc13efa766b18d5932640b43d35f4cfa82/volkszaehler-0.2.2.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-async-timeout + +%description +Python API for interacting with Volkszaehler. At the moment only the consumption +of data is supported. Sorry, uploading is not possible. +This module is not official, developed, supported or endorsed by Volkzaehler. + +%package -n python3-volkszaehler +Summary: Python Wrapper for interacting with the Volkszahler API. +Provides: python-volkszaehler +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-volkszaehler +Python API for interacting with Volkszaehler. At the moment only the consumption +of data is supported. Sorry, uploading is not possible. +This module is not official, developed, supported or endorsed by Volkzaehler. + +%package help +Summary: Development documents and examples for volkszaehler +Provides: python3-volkszaehler-doc + +%description help +Python API for interacting with Volkszaehler. At the moment only the consumption +of data is supported. Sorry, uploading is not possible. +This module is not official, developed, supported or endorsed by Volkzaehler. + +%prep +%autosetup -n volkszaehler-0.2.2 + +%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-volkszaehler -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Sep 03 2021 Python_Bot - 0.2.2-1 +- Package Init diff --git a/volkszaehler-0.2.2.tar.gz b/volkszaehler-0.2.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..56e65eac73288409ac1582329b54f58fa025e714 Binary files /dev/null and b/volkszaehler-0.2.2.tar.gz differ