summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:44:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:44:06 +0000
commit40dc50ee40ce2af577cd2e6776f940cfd6b6fec4 (patch)
tree1f10055e7f24f487780cf8a2919cb1e32872d214
parent982472b0f2d43186028d8b71249c4e0b7d6cddd7 (diff)
automatic import of python-pyfnip
-rw-r--r--.gitignore1
-rw-r--r--python-pyfnip.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7843380 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyfnip-0.2.tar.gz
diff --git a/python-pyfnip.spec b/python-pyfnip.spec
new file mode 100644
index 0000000..b89888b
--- /dev/null
+++ b/python-pyfnip.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyfnip
+Version: 0.2
+Release: 1
+Summary: Python wrapper for FutureNow IP relay/dimmer units
+License: MIT License
+URL: http://github.com/juhaniemi/pyfnip
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7c/37/00fe9a9e6fef300a973f64b40cbb51fb5846a266d4aac06e136682fecbf3/pyfnip-0.2.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-pyfnip
+Summary: Python wrapper for FutureNow IP relay/dimmer units
+Provides: python-pyfnip
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyfnip
+
+
+%package help
+Summary: Development documents and examples for pyfnip
+Provides: python3-pyfnip-doc
+%description help
+
+
+%prep
+%autosetup -n pyfnip-0.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-pyfnip -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9e2748e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dff6fe3beebd6d74409d5ebe60f25079 pyfnip-0.2.tar.gz