[packages/libsigc++] - allow building without docs
hawk
hawk at pld-linux.org
Sun Dec 10 17:11:56 CET 2023
commit c47fea209158baacdcdf821075c50e322697127f
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sun Dec 10 16:36:51 2023 +0100
- allow building without docs
libsigc++.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/libsigc++.spec b/libsigc++.spec
index fd67678..e70b166 100644
--- a/libsigc++.spec
+++ b/libsigc++.spec
@@ -2,6 +2,7 @@
# Conditional build:
%bcond_without static_libs # don't build static library
%bcond_without tests # check target
+%bcond_without docs # docs
#
Summary: The Typesafe Signal Framework for C++
Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++
@@ -102,6 +103,7 @@ mm-common-prepare --copy --force
%{__automake}
%configure \
--disable-silent-rules \
+ %{!?with_docs:--disable-documentation} \
%{?with_static_libs:--enable-static}
%{__make}
@@ -143,7 +145,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libsigc-2.0.a
%endif
+%if %{with docs}
%files doc
%defattr(644,root,root,755)
%{_datadir}/devhelp/books/libsigc++-2.0
%{_docdir}/libsigc++-2.0
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsigc++.git/commitdiff/c47fea209158baacdcdf821075c50e322697127f
More information about the pld-cvs-commit
mailing list