packages: libggigcp/libggigcp.spec - added static_modules bcond (libggi-like)

qboosh qboosh at pld-linux.org
Sun Jan 15 19:21:56 CET 2012


Author: qboosh                       Date: Sun Jan 15 18:21:56 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added static_modules bcond (libggi-like)

---- Files affected:
packages/libggigcp:
   libggigcp.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/libggigcp/libggigcp.spec
diff -u packages/libggigcp/libggigcp.spec:1.7 packages/libggigcp/libggigcp.spec:1.8
--- packages/libggigcp/libggigcp.spec:1.7	Sun Jan 15 17:40:14 2012
+++ packages/libggigcp/libggigcp.spec	Sun Jan 15 19:21:51 2012
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	static_modules	# build static library AND make all modules builtin (also in shared lib)
+#
 Summary:	LibGGIGCP - generic color and palette management extension
 Summary(pl.UTF-8):	LibGGIGCP - ogólne rozszerzenie do zarządzania kolorami i paletą
 Name:		libggigcp
@@ -56,7 +60,8 @@
 %setup -q
 
 %build
-%configure
+%configure \
+	%{!?with_static_modules:--disable-static}
 %{__make}
 
 %install
@@ -93,9 +98,11 @@
 %{_includedir}/ggi/internal/gcp.h
 %{_mandir}/man3/gcp*.3*
 
+%if %{with static_modules}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libggigcp.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -103,6 +110,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2012/01/15 18:21:51  qboosh
+- added static_modules bcond (libggi-like)
+
 Revision 1.7  2012/01/15 16:40:14  qboosh
 - updated to 1.0.2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libggigcp/libggigcp.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list