[seamonkey] add seamonkey-related directories in mozilla-filesystem (#865054)
Dmitry Butskoy
buc at fedoraproject.org
Wed Oct 31 15:58:17 UTC 2012
commit 3c554253a8c87f413fbc304e9c60748918aa1369
Author: Dmitry Butskoy <Dmitry at Butskoy.name>
Date: Wed Oct 31 19:58:09 2012 +0400
add seamonkey-related directories in mozilla-filesystem (#865054)
seamonkey.spec | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/seamonkey.spec b/seamonkey.spec
index 725bf76..3c0982f 100644
--- a/seamonkey.spec
+++ b/seamonkey.spec
@@ -19,6 +19,8 @@
%define mozdir %{_libdir}/seamonkey-%{version}
%define sources_subdir comm-release
+%define seamonkey_app_id \{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a\}
+
Name: seamonkey
Summary: Web browser, e-mail, news, IRC client, HTML editor
@@ -357,13 +359,20 @@ chmod 755 $RPM_BUILD_ROOT/usr/bin/seamonkey
%{__rm} -f $RPM_BUILD_ROOT/%{mozdir}/defaults/profile/bookmarks.html
ln -s %{default_bookmarks_file} $RPM_BUILD_ROOT/%{mozdir}/defaults/profile/bookmarks.html
+# System extensions
+%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{seamonkey_app_id}
+%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{seamonkey_app_id}
+
+
%clean
%{__rm} -rf $RPM_BUILD_ROOT
+
%post
update-desktop-database %{_datadir}/applications
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
%postun
update-desktop-database %{_datadir}/applications
if [ $1 -eq 0 ] ; then
@@ -371,6 +380,7 @@ if [ $1 -eq 0 ] ; then
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
+
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
@@ -435,6 +445,9 @@ fi
%{_datadir}/applications/mozilla-%{name}.desktop
%{_datadir}/applications/mozilla-%{name}-mail.desktop
+%dir %{_datadir}/mozilla/extensions/%{seamonkey_app_id}
+%dir %{_libdir}/mozilla/extensions/%{seamonkey_app_id}
+
%if !%{?system_nss}
%{mozdir}/*.chk
%endif
@@ -448,6 +461,7 @@ fi
- fix startup warnings (error console) for omni and inspector
- fix build langpacks
- change License to MPLv2.0
+- add seamonkey-related directories in mozilla-filesystem (#865054)
* Mon Oct 26 2012 Martin Stransky <stransky at redhat.com> 2.13.2-1
- Update to 2.13.2
More information about the scm-commits
mailing list