[packages/libgpiod] - fixed build with apidocs
qboosh
qboosh at pld-linux.org
Fri Feb 21 19:17:45 CET 2025
commit 8d45c3e435f6757d7cfdc9ea7adf99ea42485669
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Feb 21 18:59:03 2025 +0100
- fixed build with apidocs
libgpiod-docs.patch | 26 ++++++++++++++++++++++++++
libgpiod.spec | 9 ++++++---
2 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/libgpiod.spec b/libgpiod.spec
index b800cdb..72bb608 100644
--- a/libgpiod.spec
+++ b/libgpiod.spec
@@ -18,6 +18,7 @@ Source0: https://www.kernel.org/pub/software/libs/libgpiod/%{name}-%{version}.ta
# Source0-md5: 96111292f46e2a646cd9dd8802a0c3a4
Patch0: %{name}-python.patch
Patch1: %{name}-link.patch
+Patch2: %{name}-docs.patch
URL: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
BuildRequires: autoconf >= 2.71
BuildRequires: autoconf-archive
@@ -240,10 +241,11 @@ Dokumentacja API biblioteki libgpiod.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
@@ -260,7 +262,8 @@ Dokumentacja API biblioteki libgpiod.
%{__make}
%if %{with apidocs}
-%{__make} doc
+%{__make} docs \
+ SHELL=bash
%endif
%install
@@ -352,7 +355,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
-%doc doc/html/*
+%doc docs/doxygen-output/html/*
%endif
%files glib
diff --git a/libgpiod-docs.patch b/libgpiod-docs.patch
new file mode 100644
index 0000000..5117b21
--- /dev/null
+++ b/libgpiod-docs.patch
@@ -0,0 +1,26 @@
+--- libgpiod-2.2.1/docs/conf.py.orig 2025-02-17 09:44:45.000000000 +0100
++++ libgpiod-2.2.1/docs/conf.py 2025-02-21 06:23:14.122156339 +0100
+@@ -82,23 +82,6 @@ def setup(app):
+
+ subprocess.run(["doxygen", "Doxyfile"])
+
+-cwd = os.getcwd()
+-os.chdir("..")
+-subprocess.run(["autoreconf", "-ifv"], check=True)
+-subprocess.run(
+- [
+- "./configure",
+- "--enable-tools",
+- "--enable-bindings-glib",
+- "--enable-introspection",
+- "--enable-tools",
+- "--enable-dbus",
+- ],
+- check=True,
+-)
+-subprocess.run(["make", "-j"], check=True)
+-os.chdir(cwd)
+-
+ for page in [
+ "gpiodetect",
+ "gpioinfo",
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgpiod.git/commitdiff/8d45c3e435f6757d7cfdc9ea7adf99ea42485669
More information about the pld-cvs-commit
mailing list