diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:58:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:58:04 +0000 |
commit | 5181cfbe0b73f7bfdc35445830097f976fe4ccf3 (patch) | |
tree | 420c784282b0b7e2e33dcd32b0ad87bfff036ae7 /python-poolsense.spec | |
parent | d16bcc5027f6f4dda702956748293d9367f53efb (diff) |
automatic import of python-poolsense
Diffstat (limited to 'python-poolsense.spec')
-rw-r--r-- | python-poolsense.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/python-poolsense.spec b/python-poolsense.spec new file mode 100644 index 0000000..0ec7b54 --- /dev/null +++ b/python-poolsense.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-poolsense +Version: 0.1.0 +Release: 1 +Summary: Asynchronous Python client for getting PoolSense data. +License: MIT license +URL: https://github.com/haemishkyd/poolsense +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/46/6b/d44cc8dbb48d772446715357eadf64df57f4e3f9cd224129078188cc469b/poolsense-0.1.0.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp + +%description +# PoolSense Python Interface + +This is a simple package that accesses the information collected by the PoolSense device. + +[PoolSense](https://www.proautomation.co/) + + + +%package -n python3-poolsense +Summary: Asynchronous Python client for getting PoolSense data. +Provides: python-poolsense +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-poolsense +# PoolSense Python Interface + +This is a simple package that accesses the information collected by the PoolSense device. + +[PoolSense](https://www.proautomation.co/) + + + +%package help +Summary: Development documents and examples for poolsense +Provides: python3-poolsense-doc +%description help +# PoolSense Python Interface + +This is a simple package that accesses the information collected by the PoolSense device. + +[PoolSense](https://www.proautomation.co/) + + + +%prep +%autosetup -n poolsense-0.1.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-poolsense -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1 +- Package Spec generated |