From 22b5a493e136f1c054f019d678cf4a9353e3afa7 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 2015 16:46:20 +0000 Subject: Add an AppData file for the software center --- diff --git a/wireshark.spec b/wireshark.spec index 52b5d90..18fa025 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -21,7 +21,7 @@ Summary: Network traffic analyzer Name: wireshark Version: 1.12.4 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ Group: Applications/Internet Source0: http://wireshark.org/download/src/%{name}-%{version}.tar.bz2 @@ -265,6 +265,44 @@ install -m 644 wsutil/*.h "${IDIR}/wsutil" install -m 644 ws_symbol_export.h "${IDIR}/" install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/udev/rules.d/ +# Register as an application to be visible in the software center +# +# NOTE: It would be *awesome* if this file was maintained by the upstream +# project, translated and installed into the right place during `make install`. +# +# See http://www.freedesktop.org/software/appstream/docs/ for more details. +# +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < + + + + wireshark.desktop + CC0-1.0 + +

+ Wireshark is an essential tool to capture and analyze the packets + arriving or leaving the network interface. + It is almost a GUI equivalent of the classic unix tool tcpdump. +

+

+ Wireshark has a easy to use GUI to capture the packets matching the + filter, on the mentioned interface and save them for later analysis. +

+
+ http://www.wireshark.org + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/wireshark/a.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/wireshark/b.png + + http://www.wireshark.org/lists/ +
+EOF + # Remove .la files rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la @@ -341,6 +379,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files gnome +%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/wireshark.desktop %{_datadir}/icons/hicolor/16x16/apps/wireshark.png %{_datadir}/icons/hicolor/24x24/apps/wireshark.png @@ -372,6 +411,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %{_datadir}/aclocal/* %changelog +* Thu Mar 26 2015 Richard Hughes - 1.12.4-2 +- Add an AppData file for the software center + * Thu Mar 5 2015 Peter Hatina - 1.12.4-1 - Ver. 1.12.4