SPECS: google-gadgets-for-linux.spec - fixed sed arguments - bcond debug

cactus cactus at pld-linux.org
Sat Aug 23 22:30:15 CEST 2008


Author: cactus                       Date: Sat Aug 23 20:30:15 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed sed arguments
- bcond debug

---- Files affected:
SPECS:
   google-gadgets-for-linux.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/google-gadgets-for-linux.spec
diff -u SPECS/google-gadgets-for-linux.spec:1.3 SPECS/google-gadgets-for-linux.spec:1.4
--- SPECS/google-gadgets-for-linux.spec:1.3	Sat Aug 23 11:13:29 2008
+++ SPECS/google-gadgets-for-linux.spec	Sat Aug 23 22:30:09 2008
@@ -4,6 +4,12 @@
 # - configure: WARNING: Library SpiderMonkey is not available, smjs-script-runtime extension won't be built.
 # - update desc
 # - split to gadgets
+#
+# Conditional build:
+%bcond_with	debug	# build with debug
+#% bcond_without	gtk	# without gtk support
+#% bcond_without	qt	# without qt support
+
 %define		realname	google-gadgets
 #
 Summary:	google-gadgets-for-linux
@@ -63,7 +69,7 @@
 %prep
 %setup -q
 # little hack for xulrunner
-%{__sed} -i "s/PREDEFINED_MACROS)/& -I\%{_includedir}\/xulrunner\/gtkembedmoz -I\%{_includedir}\/xulrunner\/js -I\%{_includedir}\/xulrunner\/xpcom /" extensions/gtkmoz_browser_element/Makefile.am
+%{__sed} -i "s/PREDEFINED_MACROS)/& -I\/usr\/include\/xulrunner\/gtkembedmoz -I\/usr\/include\/xulrunner\/js -I\/usr\/include\/xulrunner\/xpcom /" extensions/gtkmoz_browser_element/Makefile.am
 mkdir -p build
 
 %build
@@ -77,7 +83,9 @@
 %{__autoheader}
 %{__automake}
 cd build
-../configure --prefix=%{_prefix}
+../configure \
+	--prefix=%{_prefix} \
+	--%{?with_debug:en}%{!?with_debug:dis}able-debug
 %{__make}
 
 %install
@@ -145,6 +153,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008/08/23 20:30:09  cactus
+- fixed sed arguments
+- bcond debug
+
 Revision 1.3  2008/08/23 09:13:29  cactus
 - subpackages : devel,static
 - fixed Source no.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/google-gadgets-for-linux.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list