Don't include wireshark-gtk.desktop in RPMs.
The RPMs use 'alternatives' to determine which GUI is used so it doesn't make sense to have 2 desktop entries: one for 'wireshark' (Qt or Gtk GUI, depending on configuration) and one for 'wireshark-gtk' (the Gtk GUI). (Maybe it makes sense to just not use 'alternatives' and allow the user to pick which GUI is used via the menu system. But then if they wanted to run the Gtk+ GUI from the command line they'd need to remember to run 'wireshark-gtk' even if that's the only GUI installed...) Change-Id: I9d3fe13bb01eab87caad4ad21c6571ef6288b110 Reviewed-on: https://code.wireshark.org/review/11780 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
This commit is contained in:
parent
2773596970
commit
fc51af45e6
|
@ -395,6 +395,10 @@ fi
|
|||
%{_libdir}/wireshark
|
||||
# Don't pick up the wireshark (GUI) man page
|
||||
%exclude %{_mandir}/man1/wireshark.*
|
||||
# Our RPMs use 'alternatives' to choose the Wireshark so it doesn't make sense
|
||||
# to have 2 desktop entries: one for 'wireshark' (Qt or Gtk GUI, depending on
|
||||
# configuration) and one for 'wireshark-gtk' (the Gtk GUI).
|
||||
%exclude %{_datadir}/applications/wireshark-gtk.desktop
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man4/*
|
||||
%{_datadir}/wireshark
|
||||
|
@ -406,7 +410,6 @@ fi
|
|||
%files qt
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/applications/wireshark.desktop
|
||||
%{_datadir}/applications/wireshark-gtk.desktop
|
||||
%{_datadir}/appdata/wireshark.appdata.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
%{_datadir}/icons/hicolor/*/mimetypes/*
|
||||
|
@ -420,7 +423,6 @@ fi
|
|||
%files gtk
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/applications/wireshark.desktop
|
||||
%{_datadir}/applications/wireshark-gtk.desktop
|
||||
%{_datadir}/appdata/wireshark.appdata.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
%{_datadir}/icons/hicolor/*/mimetypes/*
|
||||
|
|
Loading…
Reference in New Issue