diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 06:19:20 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 06:19:20 +0000 |
| commit | d9137e46e09b630f0b3e25c3cc928891c5f7803f (patch) | |
| tree | accf85e87e9eb9757d90b4367a7d80df0cb79e31 /python-pywemo.spec | |
| parent | c863c684eb7eb514a7947a019515a7e9e3bd8e32 (diff) | |
automatic import of python-pywemo
Diffstat (limited to 'python-pywemo.spec')
| -rw-r--r-- | python-pywemo.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-pywemo.spec b/python-pywemo.spec new file mode 100644 index 0000000..e1cf4db --- /dev/null +++ b/python-pywemo.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pywemo +Version: 0.9.1 +Release: 1 +Summary: Lightweight Python module to discover and control WeMo devices +License: MIT +URL: https://github.com/pywemo/pywemo +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b9/79/6efd51cdbafe9f0fb6272f9def0ad943b179b4e17476aa7c2e3a80cf5201/pywemo-0.9.1.tar.gz +BuildArch: noarch + +Requires: python3-ifaddr +Requires: python3-requests +Requires: python3-urllib3 +Requires: python3-lxml + +%description +Python 3 module to setup, discover and control WeMo devices. + +%package -n python3-pywemo +Summary: Lightweight Python module to discover and control WeMo devices +Provides: python-pywemo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pywemo +Python 3 module to setup, discover and control WeMo devices. + +%package help +Summary: Development documents and examples for pywemo +Provides: python3-pywemo-doc +%description help +Python 3 module to setup, discover and control WeMo devices. + +%prep +%autosetup -n pywemo-0.9.1 + +%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-pywemo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.1-1 +- Package Spec generated |
