From 85f02cb8434e95fe2701bf8fc8de0e00ecb2f8fb Mon Sep 17 00:00:00 2001 From: Karol Krenski Date: Tue, 22 Jul 2008 16:41:32 +0000 Subject: [PATCH] - without static_libs bcond Changed files: libosip2.spec -> 1.18 --- libosip2.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.44.0