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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:42:32 UTC 2015


>From 7fab63fe2c1e0553c6c386854ee949d78ae7ad7b Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:32:58 +0000
Subject: Add an AppData file for the software center


diff --git a/gnome-nettool.spec b/gnome-nettool.spec
index 149cb04..5576323 100644
--- a/gnome-nettool.spec
+++ b/gnome-nettool.spec
@@ -3,7 +3,7 @@
 
 Name:           gnome-nettool
 Version:        3.8.1
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Network information tool for GNOME
 
 License:        GPLv2+ and GFDL
@@ -41,6 +41,45 @@ make %{?_smp_mflags}
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=736831
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">gnome-nettool.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Perform advanced networking analysis</summary>
+  <description>
+    <p>
+      Network Tools is a utility to perform advanced networking analysis
+      operations.
+      It features a range of networking tools that are typically done on
+      the command line, but allows you to perform them with a graphical
+      interface.
+      With Network Tools, you can perform the following: ping, netstat,
+      traceroute, port scans, lookup, finger and whois.
+    </p>
+  </description>
+  <url type="homepage">http://projects.gnome.org/gnome-network/</url>
+  <screenshots>
+    <screenshot type="default">https://projects.gnome.org/gnome-network/screenshots/info_info.jpg</screenshot>
+    <screenshot>https://projects.gnome.org/gnome-network/screenshots/info_netstat.jpg</screenshot>
+    <screenshot>https://projects.gnome.org/gnome-network/screenshots/info_lookup.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang gnome-nettool --with-gnome
 
 
@@ -66,6 +105,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %files -f gnome-nettool.lang
 %doc AUTHORS COPYING NEWS README
 %{_bindir}/gnome-nettool
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/gnome-nettool.desktop
 %{_datadir}/glib-2.0/schemas/org.gnome.gnome-nettool.gschema.xml
 %{_datadir}/gnome-nettool/
@@ -74,6 +114,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.8.1-6
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.8.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnome-nettool.git/commit/?h=master&id=7fab63fe2c1e0553c6c386854ee949d78ae7ad7b


More information about the scm-commits mailing list