[packages/atkmm] add apidocs bcond
atler
atler at pld-linux.org
Mon Jan 29 12:12:09 CET 2024
commit 06b7e05169fbd0db65f7a4c72bd8550a29ca90af
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jan 29 11:07:52 2024 +0100
add apidocs bcond
atkmm.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/atkmm.spec b/atkmm.spec
index a861c44..71148c0 100644
--- a/atkmm.spec
+++ b/atkmm.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without apidocs # API documentation
%bcond_without static_libs # static library
Summary: A C++ interface for atk library
@@ -15,12 +16,12 @@ URL: https://www.gtkmm.org/
BuildRequires: atk-devel >= 1:2.18.0
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.9
-BuildRequires: doxygen >= 1:1.8.9
+%{?with_apidocs:BuildRequires: doxygen >= 1:1.8.9}
BuildRequires: glibmm-devel >= 2.46.2
-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: pkgconfig
BuildRequires: rpm-build >= 4.6
@@ -94,6 +95,7 @@ mm-common-prepare --copy --force
%{__autoheader}
%{__automake}
%configure \
+ %{__enable_disable apidocs documentation} \
--enable-maintainer-mode \
--disable-silent-rules \
%{?with_static_libs:--enable-static}
@@ -128,9 +130,11 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/atkmm-1.6
%{_pkgconfigdir}/atkmm-1.6.pc
+%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/atkmm-1.6
+%endif
%if %{with static_libs}
%files static
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/atkmm.git/commitdiff/06b7e05169fbd0db65f7a4c72bd8550a29ca90af
More information about the pld-cvs-commit
mailing list