From b30e6b95477eb4edceae812391c31300616b4fe1 Mon Sep 17 00:00:00 2001 From: witekfl Date: Mon, 20 Aug 2007 18:45:28 +0000 Subject: [PATCH] - added bcond_without static_libs Changed files: expat.spec -> 1.57 --- expat.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.44.0