[packages/libical] add apidocs bcond

atler atler at pld-linux.org
Sun Apr 28 14:39:35 CEST 2024


commit 5bccad695722e3b06e9004103df5cfb36154d79a
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Apr 28 13:16:33 2024 +0200

    add apidocs bcond

 libical.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libical.spec b/libical.spec
index 4089a34..c2a8bdf 100644
--- a/libical.spec
+++ b/libical.spec
@@ -1,6 +1,7 @@
 # TODO: java, perl bindings (not ready in sources)
 #
 # Conditional build:
+%bcond_without	apidocs	# API documentation
 %bcond_without	python	# Python binding
 #
 Summary:	libical library
@@ -22,14 +23,14 @@ BuildRequires:	db-devel
 BuildRequires:	db-cxx-devel
 BuildRequires:	glib2-devel >= 1:2.38
 BuildRequires:	gobject-introspection-devel >= 0.6.7
-BuildRequires:	gtk-doc
+%{?with_apidocs:BuildRequires:	gtk-doc}
 BuildRequires:	libicu-devel >= 50
 BuildRequires:	libstdc++-devel
 BuildRequires:	libxml2-devel >= 1:2.7.3
 BuildRequires:	perl-base
 BuildRequires:	pkgconfig
 BuildRequires:	rpm-build >= 4.6
-BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRequires:	rpmbuild(macros) >= 1.742
 BuildRequires:	vala
 %if %{with python}
 BuildRequires:	python-devel >= 1:2.3
@@ -206,6 +207,7 @@ Wiązanie Pythona do biblioteki libical.
 install -d build
 cd build
 %cmake .. \
+	%{cmake_on_off apidocs ICAL_BUILD_DOCS} \
 	-DGOBJECT_INTROSPECTION=ON \
 	-DICAL_GLIB=ON \
 	-DICAL_GLIB_VAPI=ON \
@@ -363,9 +365,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libical-glib.a
 
+%if %{with apidocs}
 %files glib-apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/libical-glib
+%endif
 
 %files -n vala-libical-glib
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libical.git/commitdiff/f94c0f03c529236db46f8d7f5c0cf6e28971b20c



More information about the pld-cvs-commit mailing list