From a0604eb5eb8e0fa8d6c85dc86aa7046a69e3690b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 16:32:46 +0000 Subject: [PATCH] Add an AppData file for the software center --- gnome-disk-utility.spec | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) 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 < + + + + gnome-disks.desktop + CC0-1.0 + +

+ Disks provides a way to inspect, format, partition and configure disks and block devices. +

+

+ 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. +

+
+ + http://people.freedesktop.org/~david/gnome-disks-mdraid-20120920-1.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-disks/a.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-disks/b.png + + https://wiki.gnome.org/Design/Apps/Disks + zeuthen@gmail.com +
+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 - 3.16.0-2 +- Add an AppData file for the software center + * Mon Mar 23 2015 Kalev Lember - 3.16.0-1 - Update to 3.16.0