packages: mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec - add xpti.d...
glen
glen at pld-linux.org
Mon Aug 16 22:21:04 CEST 2010
Author: glen Date: Mon Aug 16 20:21:04 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- add xpti.dat and compreg.dat ghosts
---- Files affected:
packages/mozilla-thunderbird-bin:
mozilla-thunderbird-bin.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: packages/mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec
diff -u packages/mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec:1.8 packages/mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec:1.9
--- packages/mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec:1.8 Mon Aug 16 18:42:18 2010
+++ packages/mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec Mon Aug 16 22:20:58 2010
@@ -3,7 +3,7 @@
Summary(pl.UTF-8): Mozilla Thunderbird - klient poczty
Name: mozilla-thunderbird-bin
Version: 3.1.2
-Release: 0.4
+Release: 0.7
License: MPL 1.1 or GPL v2+ or LGPL v2.1+
Group: X11/Applications/Networking
Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/en-US/thunderbird-%{version}.tar.bz2
@@ -11,6 +11,7 @@
Source1: %{name}.desktop
Source2: %{name}.sh
URL: http://www.mozilla.org/projects/thunderbird/
+Requires: mktemp
Requires: myspell-common
Requires: sqlite3 >= 3.6.22-2
ExclusiveArch: i686 athlon
@@ -21,7 +22,7 @@
%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so
%define nspr_caps libnspr4.so libplc4.so libplds4.so
-%define moz_caps libgtkembedmoz.so libmozjs.so libxpcom.so libxul.so
+%define moz_caps libgtkembedmoz.so libmozjs.so libxpcom.so libxul.so libxpcom_core.so
%define sqlite_caps libsqlite3.so
%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpcom_core.so libxpistub.so
@@ -52,6 +53,10 @@
cp -a thunderbird/chrome/icons/default/default48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+# files created by register
+touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
+touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
+
# use system dict
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
@@ -92,6 +97,19 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+# it attempts to register crashreport in $HOME/.thunderbird
+# make temporary $HOME to avoid polluting home of user installing this package
+# via sudo.
+export HOME=$(mktemp -d)
+# also TMPDIR could be pointing to sudo user's homedir
+unset TMPDIR TMP || :
+
+umask 022
+%{_libdir}/%{name}/thunderbird -register
+
+rm -rf $HOME
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/%{name}
@@ -137,6 +155,10 @@
%{_pixmapsdir}/*.png
%{_desktopdir}/*.desktop
+# files created by register
+%ghost %{_libdir}/%{name}/components/compreg.dat
+%ghost %{_libdir}/%{name}/components/xpti.dat
+
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/chrome
%{_datadir}/%{name}/defaults
@@ -152,6 +174,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2010/08/16 20:20:58 glen
+- add xpti.dat and compreg.dat ghosts
+
Revision 1.8 2010/08/16 16:42:18 glen
- throbber belongs to updater
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mozilla-thunderbird-bin/mozilla-thunderbird-bin.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list