]> git.pld-linux.org Git - packages/libnjb.git/commitdiff
- added bcond_without static_libs auto/ti/libnjb-2_2_5-2
authorwitekfl <witekfl@pld-linux.org>
Mon, 20 Aug 2007 19:31:12 +0000 (19:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libnjb.spec -> 1.23

libnjb.spec

index 53f8b0613aafbbc7969b66e850b8cb088e3ec0e6..4b0289ba44b42f461e83c473c4ef99cd7884c3de 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       API interface to talk to Zen Creative devices
 Summary(pl.UTF-8):     Interfejs API do komunikacji z urządzeniami Zen Creative
 Name:          libnjb
@@ -69,7 +73,8 @@ Narzędzia dla biblioteki njb.
 %setup -q
 
 %build
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make} \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
@@ -103,9 +108,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/%{name}
 %{_pkgconfigdir}/*.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libnjb.a
+%endif
 
 %files utils
 %defattr(644,root,root,755)
This page took 0.138902 seconds and 4 git commands to generate.