SPECS: LiTE.spec - added bcond_without static_libs

witekfl witekfl at pld-linux.org
Sat Sep 8 08:00:34 CEST 2007


Author: witekfl                      Date: Sat Sep  8 06:00:34 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   LiTE.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/LiTE.spec
diff -u SPECS/LiTE.spec:1.6 SPECS/LiTE.spec:1.7
--- SPECS/LiTE.spec:1.6	Sun Mar 11 20:31:03 2007
+++ SPECS/LiTE.spec	Sat Sep  8 08:00:29 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# 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
@@ -61,7 +65,8 @@
 %{__automake}
 %configure \
 	--enable-static \
-	--with-fontdir=%{_fontsdir}/TTF
+	--with-fontdir=%{_fontsdir}/TTF \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -119,9 +124,11 @@
 %{_pkgconfigdir}/lite.pc
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/liblite.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -129,6 +136,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2007/09/08 06:00:29  witekfl
+- added bcond_without static_libs
+
 Revision 1.6  2007/03/11 19:31:03  qboosh
 - updated to 0.8.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/LiTE.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list