32 |
|
|
33 |
%define _use_syshunspell 1 |
%define _use_syshunspell 1 |
34 |
|
|
35 |
%define release %mkrel 4 |
%define release %mkrel 5 |
36 |
|
|
37 |
%define update_channel %{extra}%major |
%define update_channel %{extra}%major |
38 |
|
|
130 |
Requires: %{_lib}notify4 |
Requires: %{_lib}notify4 |
131 |
Requires: %{_lib}gstreamer0.10_0 |
Requires: %{_lib}gstreamer0.10_0 |
132 |
Requires: %{_lib}gstreamer-plugins-base0.10_0 |
Requires: %{_lib}gstreamer-plugins-base0.10_0 |
133 |
|
# make sure our default bookmarks are present |
134 |
|
Requires: desktop-common-data |
135 |
Suggests: %{_lib}canberra0 |
Suggests: %{_lib}canberra0 |
136 |
Suggests: %{_lib}cups2 |
Suggests: %{_lib}cups2 |
137 |
Obsoletes: firefox-ext-weave-sync |
Obsoletes: firefox-ext-weave-sync |
163 |
|
|
164 |
%prep |
%prep |
165 |
%if %{?extra} |
%if %{?extra} |
166 |
%setup -qn mozilla-%update_channel |
%setup -q -n mozilla-%update_channel |
167 |
%else |
%else |
168 |
%setup -qn mozilla-release |
setup -q -n mozilla-release |
169 |
%endif |
%endif |
170 |
%patch1 -p1 -b .lang |
%patch1 -p1 -b .lang |
171 |
%patch2 -p1 -b .vendor |
%patch2 -p1 -b .vendor |
265 |
pushd %{buildroot}%{_bindir} |
pushd %{buildroot}%{_bindir} |
266 |
ln -sf firefox mozilla-firefox |
ln -sf firefox mozilla-firefox |
267 |
popd |
popd |
268 |
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/ |
mkdir -p %{buildroot}%{mozillalibdir}/browser/defaults/preferences/ |
269 |
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js |
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/browser/defaults/preferences/kde.js |
270 |
|
|
271 |
# Create and own %_libdir/mozilla/plugins & firefox extensions directories |
# Create and own %_libdir/mozilla/plugins & firefox extensions directories |
272 |
%{__mkdir_p} %{buildroot}%{pluginsdir} |
%{__mkdir_p} %{buildroot}%{pluginsdir} |
294 |
rm -f %{buildroot}%{mozillalibdir}/precomplete |
rm -f %{buildroot}%{mozillalibdir}/precomplete |
295 |
|
|
296 |
# this file is only used when creating a new user profile |
# this file is only used when creating a new user profile |
297 |
install -D -m644 browser/app/profile/prefs.js %{buildroot}%{mozillalibdir}/defaults/profile/prefs.js |
install -D -m644 browser/app/profile/prefs.js %{buildroot}%{mozillalibdir}/browser/defaults/profile/prefs.js |
298 |
cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/profile/prefs.js |
cat << EOF >> %{buildroot}%{mozillalibdir}/browser/defaults/profile/prefs.js |
299 |
user_pref("browser.EULA.override", true); |
user_pref("browser.EULA.override", true); |
300 |
user_pref("browser.shell.checkDefaultBrowser", false); |
user_pref("browser.shell.checkDefaultBrowser", false); |
301 |
user_pref("browser.startup.homepage", "file:///usr/share/indexhtml/index.html"); |
user_pref("browser.startup.homepage", "file:///usr/share/indexhtml/index.html"); |
306 |
EOF |
EOF |
307 |
|
|
308 |
# display icon for Firefox button |
# display icon for Firefox button |
309 |
%{__mkdir_p} %{buildroot}%{mozillalibdir}/defaults/profile/chrome |
%{__mkdir_p} %{buildroot}%{mozillalibdir}/browser/defaults/profile/chrome |
310 |
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css |
cat << EOF > %{buildroot}%{mozillalibdir}/browser/defaults/profile/chrome/userChrome.css |
311 |
#appmenu-toolbar-button { |
#appmenu-toolbar-button { |
312 |
list-style-image: url("chrome://branding/content/icon16.png"); |
list-style-image: url("chrome://branding/content/icon16.png"); |
313 |
} |
} |
323 |
# documentation: http://kb.mozillazine.org/About:config_entries#Extensions. |
# documentation: http://kb.mozillazine.org/About:config_entries#Extensions. |
324 |
# or in toolkit/mozapps/extensions/AddonManager.jsm |
# or in toolkit/mozapps/extensions/AddonManager.jsm |
325 |
# we also need to disable the "disable addon selection dialog" |
# we also need to disable the "disable addon selection dialog" |
326 |
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/preferences/mga.js |
# (doktor5000) - path has changed since FF 21 |
327 |
|
# http://mike.kaply.com/2013/04/24/major-changes-coming-in-firefox-21/ |
328 |
|
cat << EOF > %{buildroot}%{mozillalibdir}/browser/defaults/preferences/mga.js |
329 |
pref("general.useragent.locale", "chrome://global/locale/intl.properties"); |
pref("general.useragent.locale", "chrome://global/locale/intl.properties"); |
330 |
pref("extensions.autoDisableScopes", 0); |
pref("extensions.autoDisableScopes", 0); |
331 |
pref("extensions.shownSelectionUI", true); |
pref("extensions.shownSelectionUI", true); |
338 |
ln -s %{_datadir}/hunspell %{buildroot}%{mozillalibdir}/dictionaries |
ln -s %{_datadir}/hunspell %{buildroot}%{mozillalibdir}/dictionaries |
339 |
|
|
340 |
# (lm) touch and %ghost bookmarks.html to a proper uninstall |
# (lm) touch and %ghost bookmarks.html to a proper uninstall |
341 |
touch %{buildroot}%{mozillalibdir}/defaults/profile/bookmarks.html |
touch %{buildroot}%{mozillalibdir}/browser/defaults/profile/bookmarks.html |
342 |
|
|
343 |
%find_lang %{name} |
%find_lang %{name} |
344 |
|
|
367 |
*desktop) bookmark="mozilla-one.html";; |
*desktop) bookmark="mozilla-one.html";; |
368 |
*) bookmark="mozilla-download.html";; |
*) bookmark="mozilla-download.html";; |
369 |
esac |
esac |
370 |
ln -s -f ../../../../share/mga/bookmarks/mozilla/$bookmark %{mozillalibdir}/defaults/profile/bookmarks.html |
ln -s -f %_prefix/share/mga/bookmarks/mozilla/$bookmark %{mozillalibdir}/browser/defaults/profile/bookmarks.html |
371 |
fi |
fi |
372 |
|
|
373 |
%files -f %{name}.lang |
%files -f %{name}.lang |
379 |
%{_liconsdir}/%{name}.png |
%{_liconsdir}/%{name}.png |
380 |
%{_datadir}/applications/*.desktop |
%{_datadir}/applications/*.desktop |
381 |
%{_libdir}/%{name}-%{version}* |
%{_libdir}/%{name}-%{version}* |
382 |
%ghost %{mozillalibdir}/defaults/profile/bookmarks.html |
%ghost %{mozillalibdir}/browser/defaults/profile/bookmarks.html |
383 |
%dir %{_libdir}/mozilla |
%dir %{_libdir}/mozilla |
384 |
%dir %{pluginsdir} |
%dir %{pluginsdir} |
385 |
%dir %{_libdir}/mozilla/extensions/%{firefox_appid} |
%dir %{_libdir}/mozilla/extensions/%{firefox_appid} |