]> git.pld-linux.org Git - packages/libsigc++.git/commitdiff
- allow building without docs master
authorMarcin Krol <hawk@tld-linux.org>
Sun, 10 Dec 2023 15:36:51 +0000 (16:36 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 10 Dec 2023 15:36:51 +0000 (16:36 +0100)
libsigc++.spec

index fd67678ca8eb5268dc36353db83dca96f97dbfd9..e70b166b80c8c1bbbb5594ab2492c3dc01b7037c 100644 (file)
@@ -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
This page took 0.230413 seconds and 4 git commands to generate.