[packages/mozilla-firefox] - resync extensions dir with iceweasel.spec
qboosh
qboosh at pld-linux.org
Sun May 11 11:29:38 CEST 2014
commit 8e79a8c360a4834c5918ceaa3cea145ba3cebec9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 11 11:32:05 2014 +0200
- resync extensions dir with iceweasel.spec
mozilla-firefox.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/mozilla-firefox.spec b/mozilla-firefox.spec
index 88739c2..be34536 100644
--- a/mozilla-firefox.spec
+++ b/mozilla-firefox.spec
@@ -284,6 +284,7 @@ ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
# move arch independant ones to datadir
mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/chrome
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/extensions $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/extensions
mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/icons
mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/searchplugins
%if %{without xulrunner}
@@ -295,6 +296,7 @@ mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/defaults $RPM_BUILD_ROOT%{_datadir}
ln -s ../../../share/%{name}/browser/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome
ln -s ../../../share/%{name}/browser/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/defaults
+ln -s ../../../share/%{name}/browser/extensions $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/extensions
ln -s ../../../share/%{name}/browser/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons
ln -s ../../../share/%{name}/browser/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/searchplugins
@@ -348,6 +350,10 @@ chmod 755 $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate
rm -rf $RPM_BUILD_ROOT
%pretrans
+if [ -d %{_libdir}/%{name}/extensions ] && [ ! -L %{_libdir}/%{name}/browser/extensions ]; then
+ install -d %{_datadir}/%{name}/browser
+ mv -v %{_libdir}/%{name}/extensions %{_datadir}/%{name}/browser/extensions
+fi
if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
fi
@@ -381,17 +387,18 @@ fi
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/browser
%dir %{_libdir}/%{name}/browser/components
-%dir %{_libdir}/%{name}/browser/extensions
%dir %{_libdir}/%{name}/browser/plugins
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/browser
+%dir %{_datadir}/%{name}/browser/extensions
%{_datadir}/%{name}/browser/chrome
%{_datadir}/%{name}/browser/defaults
%{_datadir}/%{name}/browser/icons
%{_datadir}/%{name}/browser/searchplugins
# symlinks
+%{_libdir}/%{name}/browser/extensions
%{_libdir}/%{name}/browser/chrome
%{_libdir}/%{name}/browser/icons
%{_libdir}/%{name}/browser/searchplugins
@@ -409,7 +416,7 @@ fi
%{_libdir}/%{name}/browser/components/components.manifest
%attr(755,root,root) %{_libdir}/%{name}/browser/components/libbrowsercomps.so
# the signature of the default theme
-%{_libdir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
+%{_datadir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
%{_libdir}/%{name}/browser/omni.ja
%{_libdir}/%{name}/webapprt
%attr(755,root,root) %{_libdir}/%{name}/webapprt-stub
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mozilla-firefox.git/commitdiff/8e79a8c360a4834c5918ceaa3cea145ba3cebec9
More information about the pld-cvs-commit
mailing list