@@ -0,0 +1,78 @@
+SUSE MOZILLA PACK MANAGEMENT CONVENTIONS
+========================================
+
+You can create additional packages extending mozilla functionality.
+
+
+Chrome packs
+------------
+If package installs any chrome (typically skins, language and country
+packs), it should follow this convention:
+
+Anything you want to add to /opt/mozilla/%{_lib}/chrome/installed-chrome.txt,
+install to /opt/mozilla/installed-chrome.d/%{name} instead.
+
+Please add to your spec file these sequences:
+%pre
+/opt/mozilla/bin/rebuild-databases.sh --pre
+%post
+/opt/mozilla/bin/rebuild-databases.sh --post
+%preun
+[ -e /opt/mozilla/bin/rebuild-databases.sh ] && \
+ /opt/mozilla/bin/rebuild-databases.sh --pre
+%postun
+[ -e /opt/mozilla/bin/rebuild-databases.sh ] && \
+ /opt/mozilla/bin/rebuild-databases.sh --post
+
+Language packs
+--------------
+Please use some flexible PreReq to make updates for subversions
+possible (e.g. mozilla >= 1.7, mozilla < 1.8).
+
+In addition to the installed-chrome.txt addition described above you
+have to add a file to /opt/mozilla/installed-chrome.d/locales
+which contains a mapping of codepages to your language-pack.
+
+An example is:
+
+de de-AT
+de_AT de-AT
+de_AT.ISO-8859-1 de-AT
+de_AT.ISO_8859-1 de-AT
+de_AT.ISO-8859-15 de-AT
+de_AT@euro de-AT
+de_AT-UTF8 de-AT
+de_BE de-AT
+de_BE.ISO-8859-1 de-AT
+de_BE.ISO_8859-1 de-AT
+de_BE.ISO-8859-15 de-AT
+de_BE@euro de-AT
+de_BE.UTF-8 de-AT
+...
+
+
+Binary packs
+------------
+If your package, does not manipulate chrome list, but need to
+update component registry (typically binary add-ons):
+
+%post
+/opt/mozilla/bin/rebuild-databases.sh --nochrome
+%postun
+/opt/mozilla/bin/rebuild-databases.sh --nochrome
+
+
+Reserved chrome /opt/mozilla/installed-chrome.d/manual
+------------------------------------------------------
+This is a reserved chrome list, which contains chrome list for
+packages, which does not follow these conventions (e. g. chromes
+installed manually by root from browser). These chromes can be deleted
+by:
+
+/opt/mozilla/bin/rebuild-databases.sh --purge
+
+Installation of all additional chromes should survive re-installation
+of mozilla.
+
+
+Don't forget to add proper version of mozilla to PreReq.
|