summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-21 05:26:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-21 05:26:19 +0000
commitf8875e9cd0556f0379a65d9d52b3330565a4b9c3 (patch)
treed851136cd3ebf8c7d1a0de396318d29b18530d1b
parentb2c0f5e494b395acc329b8b5de88a4c51b728f5a (diff)
automatic import of python-libgpiodopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-libgpiod.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ec28835 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libgpiod-2.0.1.tar.gz
diff --git a/python-libgpiod.spec b/python-libgpiod.spec
new file mode 100644
index 0000000..4f711b0
--- /dev/null
+++ b/python-libgpiod.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-libgpiod
+Version: 2.0.1
+Release: 1
+Summary: Python bindings for libgpiod
+License: LGPLv2.1
+URL: https://pypi.org/project/libgpiod/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6d/e3/7a3a102b1cc490c4ff19ab63a5d8a228b3b3effa1339cefe1e5bb04f9320/libgpiod-2.0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+This is a package spun out of the main libgpiod repository containing python bindings to the underlying C library.
+
+
+%package -n python3-libgpiod
+Summary: Python bindings for libgpiod
+Provides: python-libgpiod
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-libgpiod
+This is a package spun out of the main libgpiod repository containing python bindings to the underlying C library.
+
+
+%package help
+Summary: Development documents and examples for libgpiod
+Provides: python3-libgpiod-doc
+%description help
+This is a package spun out of the main libgpiod repository containing python bindings to the underlying C library.
+
+
+%prep
+%autosetup -n libgpiod-2.0.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-libgpiod -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1ea08c4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+64503dee54fd782eb7a026e54de40bb1 libgpiod-2.0.1.tar.gz