From 58811f6490d11d9285a4220bbe3592a532f5513b Mon Sep 17 00:00:00 2001 From: witekfl Date: Sat, 21 Jul 2007 15:26:19 +0000 Subject: [PATCH] - added bcond_without static_libs Changed files: libspectrum.spec -> 1.18 --- libspectrum.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libspectrum.spec b/libspectrum.spec index acd0113..a868108 100644 --- a/libspectrum.spec +++ b/libspectrum.spec @@ -1,3 +1,6 @@ +# Conditional build: +%bcond_without static_libs # don't build static library +# Summary: ZX Spectrum emulator file format library Summary(pl.UTF-8): Biblioteka do obsługi formatów plików emulatorów ZX Spectrum Name: libspectrum @@ -70,7 +73,8 @@ echo 'AC_DEFUN([AM_PATH_GLIB],[$3])' >> acinclude.m4 %{__autoconf} %{__autoheader} %{__automake} -%configure +%configure \ + %{!?with_static_libs:--disable-static} %{__make} %install @@ -98,6 +102,8 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/libspectrum.h %{_mandir}/man3/libspectrum.3* +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libspectrum.a +%endif -- 2.44.0