diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 04:54:19 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 04:54:19 +0000 |
| commit | ab34cf01e89be8719fec1004df42ea08755c64e3 (patch) | |
| tree | d0710a7c5b314e71a40ace26bbfc12a65e97d8bf | |
| parent | e8438e1ca3c7781930f47b566b9f6fa3f178ed42 (diff) | |
automatic import of python-rachiopyopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-rachiopy.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/RachioPy-1.0.3.tar.gz diff --git a/python-rachiopy.spec b/python-rachiopy.spec new file mode 100644 index 0000000..3700116 --- /dev/null +++ b/python-rachiopy.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-RachioPy +Version: 1.0.3 +Release: 1 +Summary: A Python module for the Rachio API. +License: MIT +URL: https://github.com/rfverbruggen/rachiopy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/44/1a5edf2b05c421bf41c932f3a684ed415f931985db3b9683deb21ff97479/RachioPy-1.0.3.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description + + +%package -n python3-RachioPy +Summary: A Python module for the Rachio API. +Provides: python-RachioPy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-RachioPy + + +%package help +Summary: Development documents and examples for RachioPy +Provides: python3-RachioPy-doc +%description help + + +%prep +%autosetup -n RachioPy-1.0.3 + +%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-RachioPy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +fde4d276747a54c2931f3fe4420e79ec RachioPy-1.0.3.tar.gz |
