Add triggerin script to remove old alternatives
This commit is contained in:
parent
f3bc808c5b
commit
6eb52d6cf8
@ -5,7 +5,7 @@
|
|||||||
Summary: Network traffic analyzer
|
Summary: Network traffic analyzer
|
||||||
Name: wireshark
|
Name: wireshark
|
||||||
Version: 2.2.6
|
Version: 2.2.6
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Url: http://www.wireshark.org/
|
Url: http://www.wireshark.org/
|
||||||
@ -280,7 +280,7 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
||||||
gtk-update-icon-cache -t %{_datadir}/icons/hicolor &>/dev/null || :
|
gtk-update-icon-cache -t %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
|
/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
|
||||||
%{name}-gui %{_bindir}/wireshark-gtk 10
|
%{name} %{_bindir}/wireshark-gtk 10
|
||||||
|
|
||||||
%post qt
|
%post qt
|
||||||
update-desktop-database &> /dev/null ||:
|
update-desktop-database &> /dev/null ||:
|
||||||
@ -288,7 +288,12 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
||||||
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
||||||
/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
|
/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
|
||||||
%{name}-gui %{_bindir}/wireshark-qt 50
|
%{name} %{_bindir}/wireshark-qt 50
|
||||||
|
|
||||||
|
%triggerin -- wireshark < 2.2.6-4
|
||||||
|
/usr/sbin/update-alternatives --remove-all %{name} &> /dev/null || :
|
||||||
|
# This one was used as a workaround during f26 devel phase
|
||||||
|
/usr/sbin/update-alternatives --remove-all %{name}-gui &> /dev/null || :
|
||||||
|
|
||||||
%postun cli -p /sbin/ldconfig
|
%postun cli -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -304,13 +309,13 @@ if [ $1 -eq 0 ] ; then
|
|||||||
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
||||||
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
||||||
|
|
||||||
/usr/sbin/update-alternatives --remove %{name}-gui %{_bindir}/wireshark-gtk
|
/usr/sbin/update-alternatives --remove %{name} %{_bindir}/wireshark-gtk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun qt
|
%postun qt
|
||||||
update-desktop-database &> /dev/null || :
|
update-desktop-database &> /dev/null || :
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/usr/sbin/update-alternatives --remove %{name}-gui %{_bindir}/wireshark-qt
|
/usr/sbin/update-alternatives --remove %{name} %{_bindir}/wireshark-qt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans cli
|
%posttrans cli
|
||||||
|
Loading…
Reference in New Issue
Block a user