SPECS: file.spec - added bcond_without static_libs

twittner twittner at pld-linux.org
Fri Jun 17 23:03:29 CEST 2005


Author: twittner                     Date: Fri Jun 17 21:03:29 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   file.spec (1.104 -> 1.105) 

---- Diffs:

================================================================
Index: SPECS/file.spec
diff -u SPECS/file.spec:1.104 SPECS/file.spec:1.105
--- SPECS/file.spec:1.104	Sun May 22 23:33:00 2005
+++ SPECS/file.spec	Fri Jun 17 23:03:24 2005
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without	python	# don't build python-magic module
+%bcond_without	static_libs # don't build static libraries
 #
 Summary:	A utility for determining file types
 Summary(cs):	Program pro zjišťování typu souborů
@@ -259,7 +260,8 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	--enable-fsect-man5
+	--enable-fsect-man5 \
+	%{!?with_static_libs:--enable-static=no}
 
 %{__make}
 
@@ -280,7 +282,7 @@
 python setup.py install \
 	--root=$RPM_BUILD_ROOT \
 	--optimize=2
-cd ..	
+cd ..
 %endif
 
 install -D magic/magic.local $RPM_BUILD_ROOT%{_sysconfdir}/magic
@@ -331,9 +333,11 @@
 %{_includedir}/magic.h
 %{_mandir}/man3/*
 
+%if %{with static_libs}
 %files -n libmagic-static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %if %{with python}
 %files -n python-magic
@@ -347,6 +351,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.105  2005/06/17 21:03:24  twittner
+- added bcond_without static_libs
+
 Revision 1.104  2005/05/22 21:33:00  saq
 - greedy-dump.patch: if a file looks like both dump file and ELF, use the latter
 - release 3
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/file.spec?r1=1.104&r2=1.105&f=u




More information about the pld-cvs-commit mailing list