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