Now gtk/po*/Makefile causes the build error because Solaris msgfmt does not 
have '-c' option.
We can use glib-gettextize for po/Makefile.in.in but glib-gettextize and 
intltoolize does not modify po-properties/Makefile.in.in so I simply remove the 
'-c' option.


--- gtk2.spec.orig      2007-02-16 14:24:06.067141000 +0900
+++ gtk2.spec   2007-02-16 14:24:05.485918000 +0900
@@ -103,6 +103,13 @@

 %prep
 %setup -q -n gtk+-%{version}
+
+# Fixes build error. Solaris msgfmt does not have '-c'.
+for f in po/Makefile.in.in po-properties/Makefile.in.in ; do
+  sed -e 's/$(GMSGFMT) -c/$(GMSGFMT)/g' $f > $f$$
+  mv $f$$ $f
+done
+
 %if %build_l10n
 bzcat %SOURCE10 | tar xf -
 cd po-sun; make; cd ..
@@ -286,6 +293,8 @@
 %{_mandir}/man3/*.gz

 %changelog -n gtk2
+* Fri Feb 16 2007 - takao.fujiwara at sun.com
+- Removed '-c' option of msgfmt in po*/Makefile.in.in
 * Tue Feb 13 2007 - takao.fujiwara at sun.com
 - Add l10n tarball.
 * Mon Jan 22 2007 - damien.carbery at sun.com


Reply via email to