summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:21:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:21:06 +0000
commit102e35c91667befee93c5c0b1c11c8271b2be341 (patch)
tree80c5604d6d77b87bf72e6f876b4333d315ddce59
parent45d6e16c5ca2290f68f4695b69aeec5719e2eb00 (diff)
automatic import of python-pykwb
-rw-r--r--.gitignore1
-rw-r--r--python-pykwb.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a3fafc5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pykwb-0.0.10.tar.gz
diff --git a/python-pykwb.spec b/python-pykwb.spec
new file mode 100644
index 0000000..3eab64e
--- /dev/null
+++ b/python-pykwb.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pykwb
+Version: 0.0.10
+Release: 1
+Summary: KWB Easyfire serial library, for inclusion into homeassistant
+License: MIT
+URL: https://github.com/bimbar/pykwb.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f5/15/3d284d1ddf96797d68cae9da0f3bbcbbba8e0f0009192ec885c9472fb943/pykwb-0.0.10.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-pykwb
+Summary: KWB Easyfire serial library, for inclusion into homeassistant
+Provides: python-pykwb
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pykwb
+
+
+%package help
+Summary: Development documents and examples for pykwb
+Provides: python3-pykwb-doc
+%description help
+
+
+%prep
+%autosetup -n pykwb-0.0.10
+
+%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-pykwb -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.10-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b3e5d8c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d3b477cda1ec48f7d256593b97e7b7fc pykwb-0.0.10.tar.gz