[packages/libmanette] - updated to 0.2.11, added apidocs

qboosh qboosh at pld-linux.org
Mon Mar 17 20:57:50 CET 2025


commit 1abd19e8891fd89690f107910ae5f466a4f66218
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 17 20:48:37 2025 +0100

    - updated to 0.2.11, added apidocs

 libmanette.spec | 42 +++++++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)
---
diff --git a/libmanette.spec b/libmanette.spec
index 7f1265e..729fa89 100644
--- a/libmanette.spec
+++ b/libmanette.spec
@@ -1,23 +1,26 @@
 #
 # Conditional build:
+%bcond_without	apidocs		# API documentation
 %bcond_without	static_libs	# static library
 
 Summary:	Simple GObject game controller library
 Summary(pl.UTF-8):	Prosta biblioteka GObject do obsługi manipulatorów do gier
 Name:		libmanette
-Version:	0.2.9
+Version:	0.2.11
 Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://download.gnome.org/sources/libmanette/0.2/%{name}-%{version}.tar.xz
-# Source0-md5:	3b1dd33b408e81cf5d7b9624243f2ac5
+# Source0-md5:	1f9ebb6a8f56e458e4ee8db4d97067ec
 URL:		https://gnome.pages.gitlab.gnome.org/libmanette/
+%{?with_apidocs:BuildRequires:	gi-docgen >= 2021.1}
 BuildRequires:	glib2-devel >= 1:2.50
+BuildRequires:	hidapi-devel
 BuildRequires:	libevdev-devel >= 1.4.5
 BuildRequires:	meson >= 0.53.0
 BuildRequires:	ninja >= 1.5
 BuildRequires:	pkgconfig
-BuildRequires:	rpmbuild(macros) >= 1.752
+BuildRequires:	rpmbuild(macros) >= 2.042
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	udev-glib-devel >= 1:1.0
 BuildRequires:	xz
@@ -97,19 +100,38 @@ Vala API for libmanette library.
 %description -n vala-libmanette -l pl.UTF-8
 API języka Vala do biblioteki libmanette.
 
+%package apidocs
+Summary:	API documentation for libmanette library
+Summary(pl.UTF-8):	Dokumentacja biblioteki libmanette
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for libmanette library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja biblioteki libmanette.
+
 %prep
 %setup -q
 
 %build
-%meson build \
-	%{!?with_static_libs:--default-library=shared}
+%meson \
+	%{!?with_static_libs:--default-library=shared} \
+	%{?with_apidocs:-Ddoc=true} \
+	-Dgudev=enabled
 
-%ninja_build -C build
+%meson_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%ninja_install -C build
+%meson_install
+
+%if %{with apidocs}
+install -d $RPM_BUILD_ROOT%{_gidocdir}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/libmanette $RPM_BUILD_ROOT%{_gidocdir}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -141,3 +163,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_datadir}/vala/vapi/manette-0.2.deps
 %{_datadir}/vala/vapi/manette-0.2.vapi
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gidocdir}/libmanette
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmanette.git/commitdiff/1abd19e8891fd89690f107910ae5f466a4f66218



More information about the pld-cvs-commit mailing list