README revision 9725
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
How to generate po tarballs
===========================
# cd po-sun
# make clean
# make
# cp po-sun-tarballs/* %{_builddir}/SOURCES/.
# pkgbuild --with-build-l10n -bp SUNWfoo.spec
How to add a new module
=======================
# module=foo
# cd %{_builddir}/%{name}-%{version}/$module/po
# intltool-update -m
# cat POTFILES.in.orig missing | env LANG=C sort > POTFILES.in
# intltool-update -p
# sed -e 's/#\. SUN_BRANDING/# SUN_BRANDING/' ${module}.pot \
> ${module}-sun.pot
# mkdir $SVN/trunk/po-sun/$module
# cp ${module}-sun.pot $SVN/trunk/po-sun/$module/.
# cd $SVN/trunk/po-sun
# vi Makefile
# diff Makefile.orig Makefile
72a73
> foo \
79a81,83
> foo_PAGES = foo
> foo.PAGES: $(foo_PAGES)
>
# make
# bzcat po-sun-tarballs/foo-po-sun-*.tar.bz2 | tar tfv -
How to add/update translations
==============================
Please make sure 'make clean; make' and pkgbuild and commit your .po files
in the module dir.
How to update .spec files
=========================
Modify spec-files/foo.spec
@@ -7,6 +7,7 @@
#
# Owner: foo
#
+%include l10n.inc
Name: foo
License: GPL
Group: System/GUI/GNOME
@@ -20,6 +21,7 @@
Source2: gfloppy.1.gz
Source3: gnome-dictionary.1.gz
Source4: gnome-screenshot.1.gz
+Source5: %{name}-po-sun-%{po_sun_version}.tar.bz2
# date:2005-05-02 type:bug bugster:6222777 owner:mattman
# date:2006-04-05 type:branding owner:gman
@@ -63,6 +65,10 @@ This package contains some essential uti
%prep
%setup -q
+%if %build_l10n
+bzcat %SOURCE5 | tar xf -
+cd po-sun; make; cd ..
+%endif
%patch1 -p1
%patch2 -p1
%patch3 -p1
@@ -159,3 +165,6 @@ done
%{_libdir}/pkgconfig
%changelog
+* Thu Dec 28 2006 - foo@sun.com
+- Add l10n tarball.
+
How to delete Sun l10n tarball in .spec files
=============================================
1. Upstream foo.diff
2. Remove foo-po-sun*.tar.bz2 from .spec files