[packages/glibmm2.68] missing BRs for apidocs and apidocs bcond

atler atler at pld-linux.org
Mon Oct 25 00:36:12 CEST 2021


commit 787220cf57e220f3c8c160fb24455a483b29cae5
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Oct 25 00:35:16 2021 +0200

    missing BRs for apidocs and apidocs bcond

 glibmm2.68.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/glibmm2.68.spec b/glibmm2.68.spec
index a938aca..21d6aa8 100644
--- a/glibmm2.68.spec
+++ b/glibmm2.68.spec
@@ -2,6 +2,7 @@
 # - make clean on -examples (remove .deps) -> & noarch subpackage
 #
 # Conditional build:
+%bcond_without	apidocs		# API documentation
 %bcond_without	static_libs	# don't build static library
 
 %define 	glib_ver	1:2.63.0
@@ -18,7 +19,6 @@ Source0:	https://download.gnome.org/sources/glibmm/2.68/glibmm-%{version}.tar.xz
 URL:		https://www.gtkmm.org/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.11
-BuildRequires:	doxygen >= 1:1.8.9
 BuildRequires:	glib2-devel >= %{glib_ver}
 BuildRequires:	libsigc++3-devel >= %{libsigc_ver}
 BuildRequires:	libstdc++-devel >= 6:7
@@ -30,6 +30,11 @@ BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.752
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
+%if %{with apidocs}
+BuildRequires:	doxygen >= 1:1.8.9
+BuildRequires:	graphviz
+BuildRequires:	libxslt-progs
+%endif
 Requires:	glib2 >= %{glib_ver}
 Requires:	libsigc++3 >= %{libsigc_ver}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -102,6 +107,7 @@ mm-common-prepare --copy --force
 %{__autoheader}
 %{__automake}
 %configure \
+	%{!?with_apidocs:--disable-documentation} \
 	--enable-maintainer-mode \
 	--disable-silent-rules \
 	%{?with_static_libs:--enable-static}
@@ -164,9 +170,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libglibmm_generate_extra_defs-2.68.a
 %endif
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/glibmm-2.68
+%endif
 
 %files examples
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glibmm2.68.git/commitdiff/787220cf57e220f3c8c160fb24455a483b29cae5



More information about the pld-cvs-commit mailing list