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

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


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


diff --git a/gnome-disk-utility.spec b/gnome-disk-utility.spec
index c1d0066..89aa776 100644
--- a/gnome-disk-utility.spec
+++ b/gnome-disk-utility.spec
@@ -5,7 +5,7 @@
 
 Name:          gnome-disk-utility
 Version:       3.16.0
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Disks
 
 Group:         Applications/System
@@ -64,6 +64,41 @@ make DESTDIR=%{buildroot} INSTALL="install -p" install
 rm -f %{buildroot}%{_libdir}/gnome-settings-daemon-3.0/*.la
 rm -f %{buildroot}%{_libdir}/gnome-settings-daemon-3.0/*.a
 
+# 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/gnome-disks.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=722688
+-->
+<application>
+  <id type="desktop">gnome-disks.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Disks provides a way to inspect, format, partition and configure disks and block devices.
+    </p>
+    <p>
+      Using Disks, you can view SMART data, manage RAID devices and benchmark physical disks.
+      Tasks are executed in the background, even after the application has been closed by the user.
+    </p>
+  </description>
+  <screenshots>
+  <screenshot type="default">http://people.freedesktop.org/~david/gnome-disks-mdraid-20120920-1.png</screenshot>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-disks/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-disks/b.png</screenshot>
+  </screenshots>
+  <url type="homepage">https://wiki.gnome.org/Design/Apps/Disks</url>
+  <updatecontact>zeuthen at gmail.com</updatecontact>
+</application>
+EOF
 
 %check
 desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
@@ -98,6 +133,7 @@ done
 %doc AUTHORS COPYING NEWS README
 %{_bindir}/gnome-disks
 %{_bindir}/gnome-disk-image-mounter
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/gnome-disks.desktop
 %{_datadir}/applications/gnome-disk-image-mounter.desktop
 %{_datadir}/applications/gnome-disk-image-writer.desktop
@@ -111,6 +147,9 @@ done
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.16.0-2
+- Add an AppData file for the software center
+
 * Mon Mar 23 2015 Kalev Lember <kalevlember at gmail.com> - 3.16.0-1
 - Update to 3.16.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnome-disk-utility.git/commit/?h=master&id=a0604eb5eb8e0fa8d6c85dc86aa7046a69e3690b


More information about the scm-commits mailing list