From 01129d60c91d38a1b51cc12cd365393262700c43 Mon Sep 17 00:00:00 2001 From: twittner Date: Fri, 17 Jun 2005 19:49:27 +0000 Subject: [PATCH] - added bcond_without static_libs Changed files: beecrypt.spec -> 1.55 --- beecrypt.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/beecrypt.spec b/beecrypt.spec index 60836c7..0ec934b 100644 --- a/beecrypt.spec +++ b/beecrypt.spec @@ -6,6 +6,7 @@ %bcond_with javac # use javac instead of gcj %bcond_without python # don't build python module %bcond_without doc # don't build documentation +%bcond_without static_libs # don't build static libraries # Summary: The BeeCrypt Cryptography Library Summary(pl): Biblioteka kryptograficzna BeeCrypt @@ -178,6 +179,7 @@ Pythonie na u --without-cplusplus \ --with%{!?with_java:out}-javaglue \ --with-cpu=%{_target_cpu} \ + %{!?with_static_libs:--enable-static=no} \ %ifarch %{x8664} --with-arch=x86_64 \ %else @@ -228,9 +230,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libbeecrypt.la %{_includedir}/beecrypt +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libbeecrypt.a +%endif %if %{with java} %files java @@ -242,10 +246,12 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/libbeecrypt_java.so %{_libdir}/libbeecrypt_java.la +%if %{with static_libs} %files java-static %defattr(644,root,root,755) %{_libdir}/libbeecrypt_java.a %endif +%endif %if %{with doc} %files doc -- 2.43.0