From: witekfl Date: Tue, 14 Jun 2005 14:14:56 +0000 (+0000) Subject: - added bcond without static_libs X-Git-Tag: AC-STABLE~4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffsplib.git;a=commitdiff_plain;h=f4b24f378296e40403ecc254a450e7d9035047f0 - added bcond without static_libs Changed files: fsplib.spec -> 1.5 --- diff --git a/fsplib.spec b/fsplib.spec index 029f7f6..c2cb4e5 100644 --- a/fsplib.spec +++ b/fsplib.spec @@ -1,3 +1,4 @@ +%bcond_without static_libs # don't build static library Summary: fsp library Summary(pl): Biblioteka fsp Name: fsplib @@ -66,7 +67,8 @@ autoreconf -i %{__autoconf} %{__automake} %configure \ - --enable-shared + --enable-shared \ + %{!?with_static_libs:--disable-static} %{__make} %install @@ -92,6 +94,8 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/lib*.la %{_includedir}/* +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/lib*.a +%endif