From: Karol Krenski Date: Tue, 22 Jul 2008 16:41:32 +0000 (+0000) Subject: - without static_libs bcond X-Git-Tag: auto/th/libosip2-3_1_0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=85f02cb8434e95fe2701bf8fc8de0e00ecb2f8fb;p=packages%2Flibosip2.git - without static_libs bcond Changed files: libosip2.spec -> 1.18 --- diff --git a/libosip2.spec b/libosip2.spec index 4c6c683..763a68e 100644 --- a/libosip2.spec +++ b/libosip2.spec @@ -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