equal
deleted
inserted
replaced
436 %endif |
436 %endif |
437 |
437 |
438 %post |
438 %post |
439 /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ |
439 /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ |
440 xulrunner %{_libdir}/xulrunner-%{version_internal}/xulrunner %{uaweight} || : |
440 xulrunner %{_libdir}/xulrunner-%{version_internal}/xulrunner %{uaweight} || : |
441 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
441 %{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 |
442 exit 0 |
442 exit 0 |
443 |
443 |
444 %posttrans |
444 %posttrans |
445 # needed for updates which transition directory to symlink |
445 # needed for updates which transition directory to symlink |
446 %if 0%{?ga_version:1} |
446 %if 0%{?ga_version:1} |
453 |
453 |
454 %preun |
454 %preun |
455 if [ "$1" = "0" ]; then # deinstallation |
455 if [ "$1" = "0" ]; then # deinstallation |
456 # that's not quite nice since old versions should be removed on update as well |
456 # that's not quite nice since old versions should be removed on update as well |
457 # but that's problematic for updates w/o raising the version number |
457 # but that's problematic for updates w/o raising the version number |
458 /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{version_internal}/xulrunner |
458 /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner |
459 fi |
459 fi |
460 rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* |
460 rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* |
461 exit 0 |
461 exit 0 |
462 |
462 |
463 %triggerin -- myspell-dictionary |
463 %triggerin -- myspell-dictionary |