132 Source8: firefox-mimeinfo.xml |
132 Source8: firefox-mimeinfo.xml |
133 Source9: firefox.js |
133 Source9: firefox.js |
134 Source10: compare-locales.tar.xz |
134 Source10: compare-locales.tar.xz |
135 Source11: firefox.1 |
135 Source11: firefox.1 |
136 Source12: mozilla-get-app-id |
136 Source12: mozilla-get-app-id |
137 Source13: add-plugins.sh.in |
137 Source13: spellcheck.js |
138 Source14: create-tar.sh |
138 Source14: create-tar.sh |
139 Source15: firefox-appdata.xml |
139 Source15: firefox-appdata.xml |
140 # Gecko/Toolkit |
140 # Gecko/Toolkit |
141 Patch1: toolkit-download-folder.patch |
141 Patch1: toolkit-download-folder.patch |
142 Patch2: mozilla-nongnome-proxies.patch |
142 Patch2: mozilla-nongnome-proxies.patch |
389 mkdir -p %{buildroot}%{progdir} |
389 mkdir -p %{buildroot}%{progdir} |
390 cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* %{buildroot}%{progdir} |
390 cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* %{buildroot}%{progdir} |
391 mkdir -p %{buildroot}%{progdir}/distribution/extensions |
391 mkdir -p %{buildroot}%{progdir}/distribution/extensions |
392 mkdir -p %{buildroot}%{progdir}/browser/searchplugins |
392 mkdir -p %{buildroot}%{progdir}/browser/searchplugins |
393 mkdir -p %{buildroot}%{progdir}/browser/defaults/preferences/ |
393 mkdir -p %{buildroot}%{progdir}/browser/defaults/preferences/ |
394 # install kde.js |
394 # install gre prefs |
|
395 install -m 644 %{SOURCE13} %{buildroot}%{progdir}/defaults/pref/ |
|
396 # install browser prefs |
395 install -m 644 %{SOURCE6} %{buildroot}%{progdir}/browser/defaults/preferences/kde.js |
397 install -m 644 %{SOURCE6} %{buildroot}%{progdir}/browser/defaults/preferences/kde.js |
396 install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js |
398 install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js |
397 # install add-plugins.sh |
|
398 sed "s:%%PROGDIR:%{progdir}:g" \ |
|
399 %{SOURCE13} > %{buildroot}%{progdir}/add-plugins.sh |
|
400 chmod 755 %{buildroot}%{progdir}/add-plugins.sh |
|
401 # install additional locales |
399 # install additional locales |
402 %if %localize |
400 %if %localize |
403 rm -f %{_tmppath}/translations.* |
401 rm -f %{_tmppath}/translations.* |
404 touch %{_tmppath}/translations.{common,other} |
402 touch %{_tmppath}/translations.{common,other} |
405 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do |
403 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do |
569 fi |
566 fi |
570 if [ -f usr/bin/update-desktop-database ] ; then |
567 if [ -f usr/bin/update-desktop-database ] ; then |
571 usr/bin/update-desktop-database > /dev/null || : |
568 usr/bin/update-desktop-database > /dev/null || : |
572 fi |
569 fi |
573 %endif |
570 %endif |
574 exit 0 |
|
575 |
|
576 %posttrans |
|
577 [ -e %{progdir}/add-plugins.sh ] && \ |
|
578 %{progdir}/add-plugins.sh > /dev/null 2>&1 |
|
579 exit 0 |
|
580 |
|
581 %preun |
|
582 rm -f %{progdir}/dictionaries/* |
|
583 exit 0 |
571 exit 0 |
584 |
572 |
585 %files |
573 %files |
586 %defattr(-,root,root) |
574 %defattr(-,root,root) |
587 %dir %{progdir} |
575 %dir %{progdir} |
604 %{progdir}/dictionaries/ |
592 %{progdir}/dictionaries/ |
605 %{progdir}/webapprt/ |
593 %{progdir}/webapprt/ |
606 %attr(755,root,root) %{progdir}/%{progname}.sh |
594 %attr(755,root,root) %{progdir}/%{progname}.sh |
607 %{progdir}/firefox |
595 %{progdir}/firefox |
608 %{progdir}/firefox-bin |
596 %{progdir}/firefox-bin |
609 %{progdir}/add-plugins.sh |
|
610 %{progdir}/application.ini |
597 %{progdir}/application.ini |
611 %{progdir}/dependentlibs.list |
598 %{progdir}/dependentlibs.list |
612 %{progdir}/*.so |
599 %{progdir}/*.so |
613 %{progdir}/mozilla-xremote-client |
600 %{progdir}/mozilla-xremote-client |
614 %{progdir}/omni.ja |
601 %{progdir}/omni.ja |