summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 11:46:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 11:46:26 +0000
commit6701f964f58fdc9f6ea38e0011acf827586b605e (patch)
tree0a300f58230c95d2067fe823f72ee35305b8cdf4
parent8fd9b126763b74989e038f8a0348c2065674b4f6 (diff)
automatic import of python-openwebifpyopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-openwebifpy.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9fd27b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/openwebifpy-3.2.7.tar.gz
diff --git a/python-openwebifpy.spec b/python-openwebifpy.spec
new file mode 100644
index 0000000..304c69f
--- /dev/null
+++ b/python-openwebifpy.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-openwebifpy
+Version: 3.2.7
+Release: 1
+Summary: Provides a python interface to interact with a device running OpenWebIf
+License: MIT license
+URL: https://github.com/fbradyirl/openwebifpy
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/b5/c9f352d75f59fe0053dbe79f29f6949fbafbd754c6421f2c64ffc54e5a0b/openwebifpy-3.2.7.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-zeroconf
+Requires: python3-wakeonlan
+
+%description
+
+
+%package -n python3-openwebifpy
+Summary: Provides a python interface to interact with a device running OpenWebIf
+Provides: python-openwebifpy
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-openwebifpy
+
+
+%package help
+Summary: Development documents and examples for openwebifpy
+Provides: python3-openwebifpy-doc
+%description help
+
+
+%prep
+%autosetup -n openwebifpy-3.2.7
+
+%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-openwebifpy -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..dded77b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+42b0f11e75d3617e645c07b8fa1fb648 openwebifpy-3.2.7.tar.gz