From: witekfl Date: Sat, 8 Sep 2007 06:00:29 +0000 (+0000) Subject: - added bcond_without static_libs X-Git-Tag: auto/th/LiTE-0_8_6-1~2 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?p=packages%2FLiTE.git;a=commitdiff_plain;h=22309216e6dec368f92791c2fea13f3c9e34aec1 - added bcond_without static_libs Changed files: LiTE.spec -> 1.7 --- diff --git a/LiTE.spec b/LiTE.spec index b6f4f20..d941d3e 100644 --- a/LiTE.spec +++ b/LiTE.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static libraries +# Summary: LiTE is a Toolkit Engine Summary(pl.UTF-8): LiTE - silnik toolkitu Name: LiTE @@ -60,7 +64,8 @@ Statyczna biblioteka LiTE. %{__automake} %configure \ --enable-static \ - --with-fontdir=%{_fontsdir}/TTF + --with-fontdir=%{_fontsdir}/TTF \ + %{!?with_static_libs:--disable-static} %{__make} %install @@ -118,6 +123,8 @@ fi %{_pkgconfigdir}/lite.pc %{_examplesdir}/%{name}-%{version} +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/liblite.a +%endif