[packages/libgpiod] - updated to 2.2; patch to use plain setuptools for python

qboosh qboosh at pld-linux.org
Thu Oct 24 21:52:14 CEST 2024


commit de9bb521673ecf0678a5b3698ed8cc18d54531c3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 24 21:48:38 2024 +0200

    - updated to 2.2; patch to use plain setuptools for python

 libgpiod-python.patch | 17 +++++++++++++++++
 libgpiod.spec         | 13 ++++++++-----
 2 files changed, 25 insertions(+), 5 deletions(-)
---
diff --git a/libgpiod.spec b/libgpiod.spec
index b4dd2f9..1facc15 100644
--- a/libgpiod.spec
+++ b/libgpiod.spec
@@ -1,4 +1,5 @@
 # TODO:
+# - glib, dbus, systemd
 # - rust bindings (--enable-bindings-rust, needs vendoring; BR: cargo, rust)
 # - tests (BR: kmod-devel >= 18, libmount-devel >= 2.33.1, glib2-devel >= 1:2.50 for library; bats for tools; catch2 for C++)
 #
@@ -10,21 +11,22 @@
 Summary:	Library for interacting with the Linux GPIO character device
 Summary(pl.UTF-8):	Biblioteka do obsługi linuksowych urządzeń znakowych GPIO
 Name:		libgpiod
-Version:	2.1.3
+Version:	2.2
 Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://www.kernel.org/pub/software/libs/libgpiod/%{name}-%{version}.tar.xz
-# Source0-md5:	044a2724c408221c8798d0e197133c21
+# Source0-md5:	1d3a1d1cd81908564579e1aaba9aea52
+Patch0:		%{name}-python.patch
 URL:		https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
-BuildRequires:	autoconf >= 2.69
+BuildRequires:	autoconf >= 2.71
 BuildRequires:	autoconf-archive
 BuildRequires:	automake
 %{?with_apidocs:BuildRequires:	doxygen}
 BuildRequires:	help2man
 BuildRequires:	libedit-devel >= 3.1
 BuildRequires:	libstdc++-devel >= 6:7
-BuildRequires:	libtool
+BuildRequires:	libtool >= 2:2
 BuildRequires:	linux-libc-headers >= 7:5.5
 BuildRequires:	pkgconfig
 %if %{with python}
@@ -151,6 +153,7 @@ Dokumentacja API biblioteki libgpiod.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -247,7 +250,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py3_sitedir}/gpiod/_ext.cpython-*.so
 %{py3_sitedir}/gpiod/*.py
 %{py3_sitedir}/gpiod/__pycache__
-%{py3_sitedir}/gpiod-2.0.1-py*.egg-info
+%{py3_sitedir}/gpiod-2.2.0-py*.egg-info
 %endif
 
 %if %{with apidocs}
diff --git a/libgpiod-python.patch b/libgpiod-python.patch
new file mode 100644
index 0000000..7d408e1
--- /dev/null
+++ b/libgpiod-python.patch
@@ -0,0 +1,17 @@
+--- libgpiod-2.2/bindings/python/Makefile.am.orig	2024-10-14 16:45:16.000000000 +0200
++++ libgpiod-2.2/bindings/python/Makefile.am	2024-10-23 21:28:43.227455657 +0200
+@@ -36,11 +36,11 @@ clean-local:
+ all-local: python-tests
+ 	CFLAGS="-I$(abs_top_srcdir)/include/ -I$(abs_top_srcdir)/tests/gpiosim \
+ 	-L$(abs_top_builddir)/lib/.libs/ -L$(abs_top_builddir)/tests/gpiosim/.libs/" \
+-	$(PYTHON) -m build
++	$(PYTHON) setup.py build
+ 
+ install-exec-local:
+-	$(PYTHON) -m pip install dist/*.whl \
+-	--ignore-installed --prefix=$(prefix) --root=$(if $(DESTDIR),$(DESTDIR),/)
++	$(PYTHON) setup.py install --skip-build --optimize=2 \
++	--prefix=$(prefix) --root=$(if $(DESTDIR),$(DESTDIR),/)
+ 
+ SUBDIRS = gpiod
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgpiod.git/commitdiff/de9bb521673ecf0678a5b3698ed8cc18d54531c3



More information about the pld-cvs-commit mailing list