public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libgpiod] rawhide: Update to 2.3.1 (rhbz#2489269)
@ 2026-07-05 11:53 Peter Robinson
  0 siblings, 0 replies; only message in thread
From: Peter Robinson @ 2026-07-05 11:53 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libgpiod
Branch : rawhide
Commit : 9f94795c265654ecf32b965a6d8bec8cd396be7b
Author : Peter Robinson <pbrobinson@gmail.com>
Date   : 2026-07-05T12:53:04+01:00
Stats  : +28/-23 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libgpiod/c/9f94795c265654ecf32b965a6d8bec8cd396be7b?branch=rawhide

Log:
Update to 2.3.1 (rhbz#2489269)

---
diff --git a/libgpiod.spec b/libgpiod.spec
index f082207..380dc59 100644
--- a/libgpiod.spec
+++ b/libgpiod.spec
@@ -2,7 +2,7 @@
 %global with_python 1
 
 Name:          libgpiod
-Version:       2.2.5
+Version:       2.3.1
 Release:       1%{?candidate:.%{candidate}}%{?dist}
 Summary:       C library and tools for interacting with linux GPIO char device
 
@@ -13,14 +13,15 @@ Source1:       gpiod-sysusers.conf
 
 BuildRequires: doxygen
 BuildRequires: gcc gcc-c++
+BuildRequires: meson cmake
 BuildRequires: gi-docgen
 BuildRequires: glib2-devel
 BuildRequires: gobject-introspection-devel
 BuildRequires: help2man
 BuildRequires: kernel-headers
+BuildRequires: libedit-devel
 BuildRequires: libgudev-devel
 BuildRequires: libstdc++-devel
-BuildRequires: make
 BuildRequires: pkgconf
 %if 0%{?with_python}
 BuildRequires: python3-devel
@@ -91,42 +92,39 @@ Files for development with %{name}.
 
 %prep
 %autosetup -p1
-%if 0%{?with_python}
-# python bindings build is set to use isolation. Remove this for distro build so it uses the
-# system installed dependencies instead of trying to use pip to install from the network
-sed -i 's/-m build/-m pip wheel --wheel-dir dist --no-build-isolation ./' bindings/python/Makefile*
-# Once the following commit is merged, replace the above line with the command below:
-# https://lore.kernel.org/linux-gpio/20250407181116.1070816-1-yselkowi@redhat.com/T/#u
-#sed -i 's/-m pip wheel/& --no-build-isolation/' bindings/python/Makefile*
-%endif
 
 %build
-%configure \
-	--enable-tools \
-	--enable-dbus \
-	--enable-systemd \
-	--disable-static \
-	--enable-bindings-cxx \
-	--enable-bindings-glib \
+%meson  -Dtools=enabled \
+	-Dbindings-cxx=enabled \
+	-Dbindings-glib=enabled \
 %if 0%{?with_python}
-	--enable-bindings-python \
+	-Dbindings-python=enabled \
 %endif
+	-Ddbus=enabled \
+	-Dsystemd=enabled \
+	-Dtests=disabled \
 	%{nil}
 
-%make_build
+%meson_build
+
 
 %install
-%make_install
+%meson_install
 
 # Install sysusers file
 install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/gpiod.conf
+
 # Fix udev rule location
 %ifnarch %{ix86}
 mkdir -p %{buildroot}/%{_udevrulesdir}/
 mv -f %{buildroot}/%{_libdir}/udev/rules.d/90-gpio.rules %{buildroot}/%{_udevrulesdir}/90-gpio.rules
 %endif
-# Remove libtool archives.
+# Remove static libs/libtool archives.
 find %{buildroot} -name '*.la' -delete
+find %{buildroot} -name '*.a' -delete
+
+%check
+%meson_test
 
 %ldconfig_scriptlets
 
@@ -145,6 +143,7 @@ find %{buildroot} -name '*.la' -delete
 %doc README.md
 %{_libdir}/libgpiod.so.3*
 %{_libdir}/libgpiodbus.so.1*
+%{_libdir}/libgpiotools.so.1*
 %{_sysusersdir}/gpiod.conf
 %{_udevrulesdir}/90-gpio.rules
 
@@ -180,22 +179,28 @@ find %{buildroot} -name '*.la' -delete
 
 %if 0%{?with_python}
 %files -n python3-%{name}
+%{python3_sitelib}/gpiod/
 %{python3_sitearch}/gpiod/
-%{python3_sitearch}/gpiod-2.2.0.dist-info
 %endif
 
 %files devel
 %{_libdir}/%{name}*.so
+%{_libdir}/libgpiotools.so
 %{_libdir}/pkgconfig/libgpiod*.pc
 %{_libdir}/pkgconfig/gpiod-glib.pc
+%{_libdir}/pkgconfig/libgpiotools.pc
 %{_includedir}/gpiod.*
 %{_includedir}/gpiodcxx/
 %{_includedir}/gpiod-glib.h
 %{_includedir}/gpiod-glib/
+%{_includedir}/gpiotools.h
 %{_datadir}/gir-1.0/Gpiodglib-1.0.gir
 
 
 %changelog
+* Sun Jul 05 2026 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.1-1
+- Update to 2.3.1 (rhbz#2489269)
+
 * Mon Jun 15 2026 Peter Robinson <pbrobinson@fedoraproject.org> - 2.2.5-1
 - Update to 2.2.5 (rhbz#2488905)
 

diff --git a/sources b/sources
index 53de196..0bcc65b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libgpiod-2.2.5.tar.xz) = 4b608f9b7725d58c44d4c804e56de3925fb84b9a9092cf678b4f2dca63904295510d8c6f83641b3445e3588f05722b5b0873ae27f7e77c1835ea4f591cbe4832
+SHA512 (libgpiod-2.3.1.tar.xz) = 53e7e860cc7acf5f9610be6fa93ded943845233a3abcc08378d9364dcf339956ef035a4a78ae6f474e5c9d0887b4aee4ed57d4495d01b88338cd93e00fa61bd6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-05 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-05 11:53 [rpms/libgpiod] rawhide: Update to 2.3.1 (rhbz#2489269) Peter Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox