--- a/ChangeLog Fri Jul 11 11:22:24 2003 +0000
+++ b/ChangeLog Fri Jul 11 11:39:20 2003 +0000
@@ -1,3 +1,10 @@
+2003-07-11 Mike Lei <[email protected]>
+
+ * gnome-user-docs.spec: add l10n help support
+ * patches/gnome-user-docs-01-add-l10n-online-help.diff: fix
+ configure.in , gnome2-user-guide/{C,hu,ro}/Makefile.am
+ * gnome-user-docs-l10n-online-help.tar.bz2: help files
+
2003-07-11 Mike Lei <[email protected]>
* scrollkeeper.spec : add zh_HK support in /var/lib/scrollkeeper
Binary file ext-sources/gnome-user-docs-l10n-online-help.tar.bz2 has changed
--- a/gnome-user-docs.spec Fri Jul 11 11:22:24 2003 +0000
+++ b/gnome-user-docs.spec Fri Jul 11 11:39:20 2003 +0000
@@ -11,6 +11,8 @@
Vendor: Sun Microsystems Inc.
Summary: User Documentation for the GNOME desktop
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.2/gnome2-user-docs-%{version}.tar.bz2
+Source1: gnome-user-docs-l10n-online-help.tar.bz2
+Patch0: gnome-user-docs-01-add-l10n-online-help.diff
URL: http://developer.gnome.org/projects/gdp/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
@@ -25,8 +27,15 @@
%prep
%setup -q -n gnome2-user-docs-%{version}
+%patch0
+tar jxf %SOURCE1
%build
+libtoolize --force
+aclocal -I /usr/share/aclocal/gnome2-macros
+automake -a -c -f
+autoconf
+
./configure --prefix=%{_prefix} \
--datadir=%{_datadir}
make
@@ -39,9 +48,25 @@
rm -rf $RPM_BUILD_ROOT
%post
+for i in zh_CN zh_TW ko_KR ja_JP de_DE es_ES fr_FR it_IT sv_SE ; do
+ langtag=$i
+ [ ${i:0:2} == "zh" ] || langtag=${i:0:2}
+ for j in %{_datadir}/omf/user-guide/*-$langtag.omf ; do
+ env LANG=$i LC_ALL=$i scrollkeeper-install -q $j
+ done
+done
+
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
%postun
+for i in zh_CN zh_TW ko_KR ja_JP de_DE es_ES fr_FR it_IT sv_SE ; do
+ langtag=$i
+ [ ${i:0:2} == "zh" ] || langtag=${i:0:2}
+ for j in %{_datadir}/omf/user-guide/*-$langtag.omf ; do
+ env LANG=$i LC_ALL=$i scrollkeeper-uninstall -q $j
+ done
+done
+
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
%files
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gnome-user-docs-01-add-l10n-online-help.diff Fri Jul 11 11:39:20 2003 +0000
@@ -0,0 +1,102 @@
+--- configure.in 2003-03-10 09:24:46.000000000 +0800
++++ configure.in.new 2003-07-11 17:09:57.000000000 +0800
+@@ -41,6 +41,15 @@
+ gnome2-user-guide/C/Makefile
+ gnome2-user-guide/ro/Makefile
+ gnome2-user-guide/hu/Makefile
++gnome2-user-guide/de/Makefile
++gnome2-user-guide/es/Makefile
++gnome2-user-guide/fr/Makefile
++gnome2-user-guide/it/Makefile
++gnome2-user-guide/sv/Makefile
++gnome2-user-guide/ja/Makefile
++gnome2-user-guide/ko/Makefile
++gnome2-user-guide/zh_CN/Makefile
++gnome2-user-guide/zh_TW/Makefile
+ gnome2-accessibility-guide/Makefile
+ gnome2-accessibility-guide/C/Makefile
+ gnome2-system-admin-guide/Makefile
+--- gnome2-user-guide/Makefile.am 2003-01-20 06:56:29.000000000 +0800
++++ gnome2-user-guide/Makefile.am.new 2003-07-11 17:11:54.000000000 +0800
+@@ -1,2 +1,2 @@
+-SUBDIRS = C ro hu
++SUBDIRS = C ro hu de es fr it sv ja ko zh_CN zh_TW
+
+--- gnome2-user-guide/C/Makefile.am 2003-03-10 13:14:42.000000000 +0800
++++ gnome2-user-guide/C/Makefile.am.new 2003-07-11 17:51:48.000000000 +0800
+@@ -5,7 +5,7 @@
+ omffile = user-guide-C.omf
+ entities = legal.xml front.xml glossary.xml gosbasic.xml goscustaccess.xml goscustdesk.xml goscustlookandfeel.xml gosdeskback.xml goseditmainmenu.xml gosmetacity.xml gosnautilus.xml gosoverview.xml gospanel.xml gosstartsession.xml part1.xml part2.xml wgosbasic.xml wgoscustaccess.xml wgoscustdesk.xml wgoscustlookandfeel.xml wgosdeskback.xml wgoseditmainmenu.xml wgosmetacity.xml wgosnautilus.xml wgosoverview.xml wgospanel.xml wgosstartsession.xml
+ include $(top_srcdir)/xmldocs.make
+-omf_dest_dir=$(datadir)/omf/$(docname)
++omf_dest_dir1=$(datadir)/omf/$(docname)
+ #
+ # This is copy-paste from ../../omf.make and changed to actually
+ # do something sensible in this instance
+@@ -22,11 +22,11 @@
+ # Oh, and this one aswell - they need to get installed. omf.make is so primitive 8-(
+ #
+ install-data-hook-omf:
+- $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir)
++ $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir1)
+ for file in $(extraomf); do \
+- $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
++ $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir1)/$$file; \
+ done
+- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
++ -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir1)
+
+ dist-hook: app-dist-hook
+
+--- gnome2-user-guide/hu/Makefile.am 2003-01-20 06:56:14.000000000 +0800
++++ gnome2-user-guide/hu/Makefile.am.new 2003-07-11 17:56:59.000000000 +0800
+@@ -5,7 +5,7 @@
+ omffile = user-guide-hu.omf
+ entities = legal.xml front.xml gosbasic.xml goscustaccess.xml goscustdesk.xml goscustlookandfeel.xml gosdeskback.xml goseditmainmenu.xml gosmetacity.xml gosnautilus.xml gosoverview.xml gospanel.xml gosstartsession.xml part1.xml part2.xml wgoscustdesk.xml wgoscustlookandfeel.xml wgosnautilus.xml wgospanel.xml glossary.xml wgosbasic.xml wgosmetacity.xml wgosoverview.xml wgoseditmainmenu.xml wgoscustaccess.xml wgosdeskback.xml wgosstartsession.xml
+ include $(top_srcdir)/xmldocs.make
+-omf_dest_dir=$(datadir)/omf/$(docname)
++omf_dest_dir1=$(datadir)/omf/$(docname)
+ #
+ # This is copy-paste from ../../omf.make and changed to actually
+ # do something sensible in this instance
+@@ -22,11 +22,11 @@
+ # Oh, and this one aswell - they need to get installed. omf.make is so primitive 8-(
+ #
+ install-data-hook-omf:
+- $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir)
++ $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir1)
+ for file in $(extraomf); do \
+- $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
++ $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir1)/$$file; \
+ done
+- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
++ -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir1)
+
+ dist-hook: app-dist-hook
+
+--- gnome2-user-guide/ro/Makefile.am 2003-03-10 13:15:05.000000000 +0800
++++ gnome2-user-guide/ro/Makefile.am.new 2003-07-11 17:57:21.000000000 +0800
+@@ -5,7 +5,7 @@
+ omffile = user-guide-ro.omf
+ entities = legal.xml front.xml glossary.xml gosbasic.xml goscustaccess.xml goscustdesk.xml goscustlookandfeel.xml gosdeskback.xml goseditmainmenu.xml gosmetacity.xml gosnautilus.xml gosoverview.xml gospanel.xml gosstartsession.xml part1.xml part2.xml wgosbasic.xml wgoscustaccess.xml wgoscustdesk.xml wgoscustlookandfeel.xml wgosdeskback.xml wgoseditmainmenu.xml wgosmetacity.xml wgosnautilus.xml wgosoverview.xml wgospanel.xml wgosstartsession.xml
+ include $(top_srcdir)/xmldocs.make
+-omf_dest_dir=$(datadir)/omf/$(docname)
++omf_dest_dir1=$(datadir)/omf/$(docname)
+ #
+ # This is copy-paste from ../../omf.make and changed to actually
+ # do something sensible in this instance
+@@ -22,11 +22,11 @@
+ # Oh, and this one aswell - they need to get installed. omf.make is so primitive 8-(
+ #
+ install-data-hook-omf:
+- $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir)
++ $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir1)
+ for file in $(extraomf); do \
+- $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
++ $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir1)/$$file; \
+ done
+- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
++ -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir1)
+
+ dist-hook: app-dist-hook
+