commit 7a4b249def76d853ff0610678b9c2aa56629237e
Author: Jan Palus <[email protected]>
Date:   Mon Jan 29 10:56:34 2024 +0100

    add apidocs bcond

 pangomm.spec | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/pangomm.spec b/pangomm.spec
index 8c79fe2..fd87339 100644
--- a/pangomm.spec
+++ b/pangomm.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without apidocs         # API documentation
+
 %define                apiver  1.4
 
 %define        cairomm_ver     1.12.0
@@ -16,12 +20,12 @@ URL:                https://www.gtkmm.org/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1:1.11
 BuildRequires: cairomm-devel >= %{cairomm_ver}
-BuildRequires: doxygen >= 1:1.8.9
+%{?with_apidocs:BuildRequires: doxygen >= 1:1.8.9}
 BuildRequires: glibmm-devel >= %{glibmm_ver}
-BuildRequires: graphviz
+%{?with_apidocs:BuildRequires: graphviz}
 BuildRequires: libstdc++-devel >= 6:4.7
 BuildRequires: libtool >= 2:2.0
-BuildRequires: libxslt-progs
+%{?with_apidocs:BuildRequires: libxslt-progs}
 BuildRequires: mm-common >= 0.9.10
 BuildRequires: pango-devel >= %{pango_ver}
 BuildRequires: perl-base >= 1:5.6.0
@@ -99,6 +103,7 @@ mm-common-prepare --copy --force
 %{__autoheader}
 %{__automake}
 %configure \
+       %{__enable_disable apidocs documentation} \
        --enable-maintainer-mode \
        --disable-silent-rules \
        --enable-static
@@ -135,7 +140,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libpangomm-%{apiver}.a
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_docdir}/pangomm-%{apiver}
 %{_datadir}/devhelp/books/pangomm-%{apiver}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pangomm.git/commitdiff/52c7e6737794ad0736c8f2d0f570128731e8b61a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to