
Hello community, here is the log from the commit of package seamonkey for openSUSE:Factory checked in at Thu Feb 25 02:33:50 CET 2010. -------- --- seamonkey/seamonkey.changes 2010-02-17 22:38:54.000000000 +0100 +++ /mounts/work_src_done/STABLE/seamonkey/seamonkey.changes 2010-02-24 07:13:34.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Feb 24 07:10:39 CET 2010 - wr@rosenauer.org + +- added translation subpackages + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- l10n-2.0.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ seamonkey.spec ++++++ --- /var/tmp/diff_new_pack.r5YwE4/_old 2010-02-25 02:33:39.000000000 +0100 +++ /var/tmp/diff_new_pack.r5YwE4/_new 2010-02-25 02:33:39.000000000 +0100 @@ -30,7 +30,7 @@ License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ Provides: web_browser Version: 2.0.3 -Release: 1 +Release: 2 Summary: The successor of the Mozilla Application Suite Url: http://www.mozilla.org/projects/seamonkey Group: Productivity/Networking/Web/Browsers @@ -39,6 +39,7 @@ Source2: add-plugins.sh.in Source3: mozilla.sh.in Source4: suse-default-prefs.js +Source5: l10n-%{version}.tar.bz2 Source6: search-addons.tar.bz2 Source7: seamonkey-rpmlintrc Source8: find-external-requires.sh @@ -70,6 +71,7 @@ %if %suse_version > 1110 %define has_system_cairo 1 %endif +%define localize 1 ### build options end %define _use_internal_dependency_generator 0 %define __find_requires sh %{SOURCE8} @@ -120,9 +122,34 @@ SeaMonkey. This is of great use to people who are doing SeaMonkey chrome development or web page development. +%if %localize + +%package translations-common +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: Common translations for SeaMonkey +Provides: locale(%{name}:ca;cs;de;es_AR;es_ES;;fr;hu;it;ja;nb_NO;nl;pl;pt_PT;ru;sv_SE) +Group: System/Localization +PreReq: %{name} = %{version} + +%description translations-common +This package contains several optional languages for the user interface +of SeaMonkey. + + +%package translations-other +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ +Summary: Extra translations for SeaMonkey +Provides: locale(%{name}:be;gl;ka;lt;sk;tr) +Group: System/Localization +PreReq: %{name} = %{version} + +%description translations-other +This package contains several optional languages for the user interface +of SeaMonkey. +%endif %prep -%setup -n seamonkey -b 1 -q +%setup -n seamonkey -b 1 -b 5 -q # mozilla patches pushd mozilla %patch2 -p1 @@ -157,6 +184,7 @@ ac_add_options --enable-application=suite ac_add_options --libdir=%{progdir} ac_add_options --prefix=%{prefix} +ac_add_options --with-l10n-base=../l10n ac_add_options --disable-tests ac_add_options --enable-optimize ac_add_options --disable-debug --disable-dtd-debug @@ -192,6 +220,42 @@ cp -rf $RPM_BUILD_DIR/seamonkey/mozilla/dist/seamonkey/* $RPM_BUILD_ROOT%{progdir} # remove some executable permissions find $RPM_BUILD_ROOT%{progdir} -name "*.js" | xargs chmod a-x +%if %localize +rm -f %{_tmppath}/translations.* +for locale in $(awk '{ print $1; }' suite/locales/shipped-locales); do + case $locale in + ja-JP-mac|en-US) + # locales not to be included in translations package + ;; + *) + make -C suite/locales libs-$locale || continue + cp mozilla/dist/xpi-stage/locale-$locale/chrome/$locale.jar \ + $RPM_BUILD_ROOT%{progdir}/chrome + cp mozilla/dist/xpi-stage/locale-$locale/chrome/$locale.manifest \ + $RPM_BUILD_ROOT%{progdir}/chrome + #cp mozilla/dist/xpi-stage/chatzilla-$locale/chrome/chatzilla.jar \ + # $RPM_BUILD_ROOT%{progdir}/chrome/chatzilla-$locale.jar + #cp mozilla/dist/xpi-stage/chatzilla-$locale/chrome/chatzilla.manifest \ + # $RPM_BUILD_ROOT%{progdir}/chrome/chatzilla-$locale.manifest + #cp mozilla/dist/xpi-stage/venkman-$locale/chrome/venkman.jar \ + # $RPM_BUILD_ROOT%{progdir}/chrome/venkman-$locale.jar + #cp mozilla/dist/xpi-stage/venkman-$locale/chrome/venkman.jar \ + # $RPM_BUILD_ROOT%{progdir}/chrome/venkman-$locale.manifest + # check against the fixed common list and sort into the right filelist + _matched=0 + for _match in ar ca cs da de en-GB es-AR es-CL es-ES fi fr hu it ja ko nb-NO nl pl pt-BR pt-PT ru sv-SE zh-CN zh-TW; do + [ "$_match" = "$locale" ] && _matched=1 + done + [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other + echo %{progdir}/chrome/$locale.jar >> %{_tmppath}/translations.$_l10ntarget + echo %{progdir}/chrome/$locale.manifest >> %{_tmppath}/translations.$_l10ntarget + #echo %{progdir}/chrome/chatzilla-$locale.jar >> %{_tmppath}/translations.$_l10ntarget + #echo %{progdir}/chrome/chatzilla-$locale.manifest >> %{_tmppath}/translations.$_l10ntarget + #echo %{progdir}/chrome/venkman-$locale.jar >> %{_tmppath}/translations.$_l10ntarget + #echo %{progdir}/chrome/venkman-$locale.manifest >> %{_tmppath}/translations.$_l10ntarget + esac +done +%endif # overwrite the mozilla start-script and link it to /usr/bin mkdir --parents $RPM_BUILD_ROOT%{_bindir} sed "s:%%PREFIX:%{prefix}:g @@ -239,6 +303,7 @@ %clean rm -rf $RPM_BUILD_ROOT +rm -rf %{_tmppath}/translations.* %post %{progdir}/add-plugins.sh > /dev/null 2>&1 @@ -260,11 +325,21 @@ %defattr(-,root,root) %{_bindir}/%{progname} %dir %{progdir} -%{progdir}/chrome/ %{progdir}/components/ %{progdir}/defaults/ %dir %{progdir}/dictionaries/ %dir %{progdir}/extensions/ +%dir %{progdir}/chrome/ +%{progdir}/chrome/classic.* +%{progdir}/chrome/comm.* +%{progdir}/chrome/en-US.* +%{progdir}/chrome/gloda.* +%{progdir}/chrome/messenger.* +%{progdir}/chrome/newsblog.* +%{progdir}/chrome/pippki.* +%{progdir}/chrome/reporter.* +%{progdir}/chrome/toolkit.* +%{progdir}/chrome/icons %{progdir}/extensions/modern@themes.mozilla.org %{progdir}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} %{progdir}/greprefs/ @@ -302,4 +377,13 @@ %defattr(-,root,root) %{progdir}/extensions/inspector@mozilla.org/ +%if %localize + +%files translations-common -f %{_tmppath}/translations.common +%defattr(-,root,root) + +%files translations-other -f %{_tmppath}/translations.other +%defattr(-,root,root) +%endif + %changelog ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de