[packages/libsigc++3] add apidocs bcond
atler
atler at pld-linux.org
Thu Oct 5 22:25:40 CEST 2023
commit 3e1cf5dc9ff21beafe513ca4cc3c49ff86c4aec2
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Oct 5 22:18:02 2023 +0200
add apidocs bcond
libsigc++3.spec | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/libsigc++3.spec b/libsigc++3.spec
index 78bcdd4..dc5944a 100644
--- a/libsigc++3.spec
+++ b/libsigc++3.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without apidocs # API documentation
%bcond_without static_libs # static library
%bcond_without tests # check target
#
@@ -16,17 +17,18 @@ Source0: https://download.gnome.org/sources/libsigc++/3.6/libsigc++-%{version}.t
URL: https://libsigcplusplus.github.io/libsigcplusplus/
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.9
-BuildRequires: docbook-style-xsl-nons
-BuildRequires: doxygen >= 1:1.8.9
-BuildRequires: graphviz
+%{?with_apidocs:BuildRequires: docbook-style-xsl-nons}
+%{?with_apidocs:BuildRequires: doxygen >= 1:1.8.9}
+%{?with_apidocs:BuildRequires: graphviz}
BuildRequires: libstdc++-devel >= 6:7
BuildRequires: libtool >= 2:2.0
-BuildRequires: libxslt-progs
+%{?with_apidocs:BuildRequires: libxslt-progs}
BuildRequires: m4
BuildRequires: mm-common >= 0.9.12
BuildRequires: perl-base
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.527
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Obsoletes: libsigc++-examples < 1
@@ -104,7 +106,8 @@ mm-common-prepare --copy --force
%{__automake}
%configure \
--disable-silent-rules \
- %{?with_static_libs:--enable-static}
+ %{?with_static_libs:--enable-static} \
+ %{__enable_disable apidocs documentation}
%{__make}
%if %{with tests}
@@ -145,7 +148,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libsigc-3.0.a
%endif
+%if %{with apidocs}
%files doc
%defattr(644,root,root,755)
%{_datadir}/devhelp/books/libsigc++-3.0
%{_docdir}/libsigc++-3.0
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsigc++3.git/commitdiff/3e1cf5dc9ff21beafe513ca4cc3c49ff86c4aec2
More information about the pld-cvs-commit
mailing list