From: witekfl Date: Mon, 20 Aug 2007 18:45:28 +0000 (+0000) Subject: - added bcond_without static_libs X-Git-Tag: auto/ac/expat-2_0_1-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=b30e6b95477eb4edceae812391c31300616b4fe1;hp=6086ba38870ae53c40231e714d47dc89ac80738c;p=packages%2Fexpat.git - added bcond_without static_libs Changed files: expat.spec -> 1.57 --- diff --git a/expat.spec b/expat.spec index f469ead..dbffa5e 100644 --- a/expat.spec +++ b/expat.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static library +# Summary: XML 1.0 parser Summary(es.UTF-8): Parser de XML 1.0 Summary(pl.UTF-8): Analizator składni XML-a 1.0 @@ -127,7 +131,8 @@ Bibliotecas estáticas para desenvolvimento com a biblioteca expat. %{__aclocal} %{__autoheader} %{__autoconf} -%configure +%configure \ + %{!?with_static_libs:--disable-static} %{__make} %install @@ -165,6 +170,8 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/expat*.h %{_aclocaldir}/expat.m4 +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libexpat.a +%endif