rhughes pushed to wireshark (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:04:19 UTC 2015


>From 22b5a493e136f1c054f019d678cf4a9353e3afa7 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 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 <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10479
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">wireshark.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      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.
+    </p>
+    <p>
+      Wireshark has a easy to use GUI to capture the packets matching the
+      filter, on the mentioned interface and save them for later analysis.
+    </p>
+  </description>
+  <url type="homepage">http://www.wireshark.org</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/wireshark/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/wireshark/b.png</screenshot>
+  </screenshots>
+  <updatecontact>http://www.wireshark.org/lists/</updatecontact>
+</application>
+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 <rhughes at redhat.com> - 1.12.4-2
+- Add an AppData file for the software center
+
 * Thu Mar  5 2015 Peter Hatina <phatina at redhat.com> - 1.12.4-1
 - Ver. 1.12.4
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/wireshark.git/commit/?h=master&id=22b5a493e136f1c054f019d678cf4a9353e3afa7


More information about the scm-commits mailing list