SPECS: gutenprint.spec - bcond static_libs

charles charles at pld-linux.org
Wed Nov 30 12:31:08 CET 2005


Author: charles                      Date: Wed Nov 30 11:31:08 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- bcond static_libs

---- Files affected:
SPECS:
   gutenprint.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/gutenprint.spec
diff -u SPECS/gutenprint.spec:1.7 SPECS/gutenprint.spec:1.8
--- SPECS/gutenprint.spec:1.7	Wed Oct  5 17:55:45 2005
+++ SPECS/gutenprint.spec	Wed Nov 30 12:31:00 2005
@@ -5,6 +5,7 @@
 %bcond_without	gimp		# build GIMP plugin subpackage
 %bcond_without	ijs		# don't build IJS server for Ghostscript
 %bcond_without	foomatic	# don't generate foomatic data
+%bcond_without	static_libs	# don't build static library
 #
 # TODO:
 # - port info_and_pdf_only.patch and install documentation in correct place.
@@ -308,16 +309,16 @@
 
 %configure \
 	%{?debug:--enable-debug} \
+	%{!?with_static_libs:--disable-static} \
+	%{!?with_cups:--disable-cups-ppds} \
 	--with%{!?with_cups:out}-cups \
 	--without-gimp \
 	--with%{!?with_gimp:out}-gimp2 \
 	--with%{!?with_ijs:out}-ijs \
 	--with%{!?with_foomatic:out}-foomatic \
 	--with%{!?with_foomatic:out}-foomatic3 \
-	%{?with_static_libs:--enable-static} \
 	--with-modules=dlopen \
 	--enable-escputil \
-	%{!?with_cups:--disable-cups-ppds} \
 	--disable-libgutenprintui \
 	--disable-rpath \
 	--disable-static-genppd \
@@ -386,9 +387,11 @@
 %{_pkgconfigdir}/gutenprint.pc
 #%{_mandir}/man3/gutenprint.3*
 
+%if %{with static_libs}
 %files -n libgutenprint-static
 %defattr(644,root,root,755)
 %{_libdir}/libgutenprint.a
+%endif
 
 %files -n libgutenprintui
 %defattr(644,root,root,755)
@@ -401,9 +404,11 @@
 %{_includedir}/gutenprintui2
 %{_pkgconfigdir}/gutenprintui2.pc
 
+%if %{with static_libs}
 %files -n libgutenprintui-static
 %defattr(644,root,root,755)
 %{_libdir}/libgutenprintui2.a
+%endif
 
 %files -n escputil
 %defattr(644,root,root,755)
@@ -456,6 +461,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2005/11/30 11:31:00  charles
+- bcond static_libs
+
 Revision 1.7  2005/10/05 15:55:45  freetz
 - 5.0.0rc1, call foomatic3 in configure, %%files update
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gutenprint.spec?r1=1.7&r2=1.8&f=u




More information about the pld-cvs-commit mailing list