SPECS: icedove-lang-pl.spec (NEW) - language pack for Icedove
hawk
hawk at pld-linux.org
Thu Jun 26 12:32:30 CEST 2008
Author: hawk Date: Thu Jun 26 10:32:30 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- language pack for Icedove
---- Files affected:
SPECS:
icedove-lang-pl.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/icedove-lang-pl.spec
diff -u /dev/null SPECS/icedove-lang-pl.spec:1.1
--- /dev/null Thu Jun 26 12:32:30 2008
+++ SPECS/icedove-lang-pl.spec Thu Jun 26 12:32:25 2008
@@ -0,0 +1,84 @@
+# $Revision$, $Date$
+#
+# TODO:
+# - do something with *.rdf file, there is file conflict with other lang packages
+#
+Summary: Polish resources for Icedove
+Summary(pl.UTF-8): Polskie pliki językowe dla Icedove
+Name: icedove-lang-pl
+Version: 2.0.0.14
+Release: 1
+License: GPL
+Group: I18n
+Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pl.xpi
+# Source0-md5: 9e8f7ee13949ea2e50bda06646632950
+URL: http://www.thunderbird.pl/
+BuildRequires: sed >= 4.0
+BuildRequires: unzip
+BuildRequires: zip
+Requires: icedove >= %{version}
+Provides: icedove-lang-resources = %{version}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _icedovedir %{_datadir}/icedove
+%define _chromedir %{_icedovedir}/chrome
+
+%description
+Polish resources for Icedove.
+
+%description -l pl.UTF-8
+Polskie pliki językowe dla Icedove.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_chromedir},%{_icedovedir}/{defaults/profile,searchplugins}}
+
+unzip %{SOURCE0} -d $RPM_BUILD_ROOT%{_libdir}
+mv -f $RPM_BUILD_ROOT%{_libdir}/chrome/pl.jar $RPM_BUILD_ROOT%{_chromedir}/pl-PL.jar
+mv -f $RPM_BUILD_ROOT%{_libdir}/*.rdf $RPM_BUILD_ROOT%{_icedovedir}/defaults/profile
+mv -f $RPM_BUILD_ROOT%{_libdir}/chrome/* $RPM_BUILD_ROOT%{_chromedir}
+cat $RPM_BUILD_ROOT%{_libdir}/chrome.manifest | sed 's: pl : pl-PL :g; s:chrome/pl:pl-PL:g ' \
+ > $RPM_BUILD_ROOT%{_chromedir}/pl-PL.manifest
+# rebrand locale for iceweasel
+cd $RPM_BUILD_ROOT%{_chromedir}
+unzip pl-PL.jar locale/pl/branding/brand.dtd locale/pl/branding/brand.properties \
+ locale/pl/messenger/aboutDialog.dtd locale/pl/messenger/start.dtd \
+ locale/pl/messenger-newsblog/newsblog.properties
+sed -i -e 's/Mozilla Thunderbird/Icedove/g; s/Thunderbird/Icedove/g;' \
+ locale/pl/branding/brand.dtd locale/pl/branding/brand.properties
+sed -i -e 's/Thunderbird[a-z]*/Icedove/g;' locale/pl/messenger/start.dtd
+sed -i -e 's/Thunderbird/Icedove/g;' locale/pl/messenger-newsblog/newsblog.properties
+grep -e '\<ENTITY' locale/pl/messenger/aboutDialog.dtd \
+ > locale/pl/messenger/aboutDialog.dtd.new
+sed -i -e '/copyrightText/s/^\(.*\)\..*Thunderbird.*/\1\./g; s/\r//g; /copyrightText/s/$/" >/g;' \
+ locale/pl/messenger/aboutDialog.dtd.new
+mv -f locale/pl/messenger/aboutDialog.dtd.new locale/pl/messenger/aboutDialog.dtd
+zip -0 pl-PL.jar locale/pl/branding/brand.dtd locale/pl/branding/brand.properties \
+ locale/pl/messenger/aboutDialog.dtd locale/pl/messenger/start.dtd \
+ locale/pl/messenger-newsblog/newsblog.properties
+rm -f locale/pl/branding/brand.dtd locale/pl/branding/brand.properties \
+ locale/pl/messenger/aboutDialog.dtd locale/pl/messenger/start.dtd \
+ locale/pl/messenger-newsblog/newsblog.properties
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_chromedir}/pl-PL.jar
+%{_chromedir}/pl-PL.manifest
+#%{_chromedir}/chromelist.txt
+%{_icedovedir}/defaults/profile/*.rdf
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/06/26 10:32:25 hawk
+- language pack for Icedove
+
================================================================
More information about the pld-cvs-commit
mailing list