[packages/mozilla-addon-gnome-keyring] add missing hook to register extension in an app

glen glen at pld-linux.org
Sun Dec 14 17:42:26 CET 2014


commit 73d5166184b587534d16ca3013d3a1f417fb0ba8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Dec 14 18:42:21 2014 +0200

    add missing hook to register extension in an app

 mozilla-addon-gnome-keyring.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/mozilla-addon-gnome-keyring.spec b/mozilla-addon-gnome-keyring.spec
index 0f640db..3262390 100644
--- a/mozilla-addon-gnome-keyring.spec
+++ b/mozilla-addon-gnome-keyring.spec
@@ -2,7 +2,7 @@
 Summary:	Extension that enables Gnome Keyring integration
 Name:		mozilla-addon-%{extension}
 Version:	0.6.11
-Release:	4
+Release:	5
 License:	MPL v1.1 or GPL v2+ or LGPL v2.1+
 Group:		X11/Applications/Networking
 Source0:	https://github.com/infinity0/mozilla-gnome-keyring/archive/%{version}/%{name}-%{version}.tar.gz
@@ -66,6 +66,15 @@ cp -a xpi/* $RPM_BUILD_ROOT%{extensionsdir}/%{extension_id}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerin -- icedove
+test -L %{_libdir}/icedove/extensions/%{extension_id} || \
+	ln -sf %{extensionsdir}/%{extension_id} %{_libdir}/icedove/extensions/%{extension_id}
+
+%triggerun -- icedove
+if [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L %{_libdir}/icedove/extensions/%{extension_id} ]; then
+	rm -f %{_libdir}/icedove/extensions/%{extension_id}
+fi
+
 %files
 %defattr(644,root,root,755)
 %dir %{extensionsdir}/%{extension_id}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mozilla-addon-gnome-keyring.git/commitdiff/73d5166184b587534d16ca3013d3a1f417fb0ba8



More information about the pld-cvs-commit mailing list