packages: icedove-languages/icedove-languages.spec - add post banner and ma...

glen glen at pld-linux.org
Wed Dec 8 23:11:30 CET 2010


Author: glen                         Date: Wed Dec  8 22:11:30 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add post banner and macroize it

---- Files affected:
packages/icedove-languages:
   icedove-languages.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: packages/icedove-languages/icedove-languages.spec
diff -u packages/icedove-languages/icedove-languages.spec:1.26 packages/icedove-languages/icedove-languages.spec:1.27
--- packages/icedove-languages/icedove-languages.spec:1.26	Wed Dec  8 23:02:05 2010
+++ packages/icedove-languages/icedove-languages.spec	Wed Dec  8 23:11:25 2010
@@ -106,14 +106,27 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -n icedove-lang-pl
-cat << 'EOF'
-NOTE: You must also change your default useragent locale:
-  Open Icedove and go to Edit>Preferences>Advenced>General>Config Editor then
-  find "general.useragent.locale" and change value
-  to "pl-PL" then restart Icedove.
+# NOTE:
+# I wish i could use banner macro here, but it does not work with nesting well
+%define post_banner() \
+cat >&2 <<EOF\
+NOTE:\
+  To change your default useragent locale: \
+  Open Icedove and go to Edit>Preferences>Advenced>General>Config Editor then \
+  find "general.useragent.locale" and change value \
+  to "%2" then restart Icedove. \
+\
+  Or install "Quick Locale Switcher" extension \
+\
+EOF\
+%{nil}
+
+%{nil}
+%post -n icedove-lang-et
+%post_banner et et-EE
 
-EOF
+%post -n icedove-lang-pl
+%post_banner pl pl-PL
 
 %files -n icedove-lang-et
 %defattr(644,root,root,755)
@@ -133,6 +146,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2010/12/08 22:11:25  glen
+- add post banner and macroize it
+
 Revision 1.26  2010/12/08 22:02:05  glen
 - add Estonian languagepack
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/icedove-languages/icedove-languages.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list