]> git.pld-linux.org Git - packages/libdaemon.git/blobdiff - libdaemon.spec
- added bcond_without static_libs
[packages/libdaemon.git] / libdaemon.spec
index 6d4a7d2ebb9996b4672c4da7d60b26ee7ecdb23a..e5b12828382b3d0d3a8dca224e834337c312521b 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_without static_libs     # don't build static library
 Summary:       Lightweight C library which eases the writing of UNIX daemons
 Summary(pl):   Prosta biblioteka C u³atwiaj±ca pisanie demonów uniksowych
 Name:          libdaemon
@@ -59,7 +60,8 @@ Ten pakiet zawiera statyczn
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 %{__make} doxygen
 
@@ -91,6 +93,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/*.pc
 %{_mandir}/man?/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.052296 seconds and 4 git commands to generate.