]> git.pld-linux.org Git - packages/libosip2.git/commitdiff
- without static_libs bcond auto/th/libosip2-3_1_0-1
authorKarol Krenski <charles@pld-linux.org>
Tue, 22 Jul 2008 16:41:32 +0000 (16:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libosip2.spec -> 1.18

libosip2.spec

index 4c6c683474da74c7b950e3f29e82f7584367e0e6..763a68e98b280ad8d4255debb56d7f76be8e1314 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       The GNU oSIP library
 Summary(pl.UTF-8):     Biblioteka GNU oSIP
 Name:          libosip2
@@ -69,7 +73,8 @@ rm -f acinclude.m4
 %configure \
        --enable-semaphore \
        --enable-pthread \
-       --%{?debug:en}%{!?debug:dis}able-debug
+       --%{?debug:en}%{!?debug:dis}able-debug \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -107,7 +112,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/libosip2.pc
 %{_mandir}/man3/osip.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libosip2.a
 %{_libdir}/libosipparser2.a
+%endif
This page took 0.151316 seconds and 4 git commands to generate.