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

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


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


diff --git a/gnome-phone-manager.spec b/gnome-phone-manager.spec
index 718e216..b29c75d 100644
--- a/gnome-phone-manager.spec
+++ b/gnome-phone-manager.spec
@@ -1,7 +1,7 @@
 Name:		gnome-phone-manager
 Summary:	Gnome Phone Manager
 Version: 	0.69
-Release: 	9%{?dist}
+Release: 	10%{?dist}
 License: 	GPLv2+
 Group: 		Applications/System
 Source:		http://ftp.gnome.org/pub/GNOME/sources/gnome-phone-manager/%{version}/%{name}-%{version}.tar.xz
@@ -69,6 +69,40 @@ make DESTDIR=$RPM_BUILD_ROOT install
 # This should be in empathy instead
 install -m0644 -D telepathy/sms.profile $RPM_BUILD_ROOT%{_datadir}/mission-control/profiles/sms.profile
 
+# 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=730849
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">gnome-phone-manager.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Control your mobile phone from your desktop</summary>
+  <description>
+    <p>
+      Phone Manager allows you to control your mobile phone. It uses the
+      gnokii backend that typically works with older Nokia devices. Phone
+      manager allows you to send SMS messages, view the address book on your
+      phone, and receive notifications on the desktop when a new SMS arrives.
+    </p>
+  </description>
+  <url type="homepage">https://live.gnome.org/PhoneManager/</url>
+  <screenshots>
+    <screenshot type="default">https://wiki.gnome.org/PhoneManager?action=AttachFile&amp;do=get&amp;target=prefs-2.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 rm $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/libphonemgr.a
 rm $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/libphonemgr.la
 
@@ -106,6 +140,7 @@ fi
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
 %{_sysconfdir}/gconf/schemas/gnome-phone-manager.schemas
 %{_bindir}/gnome-phone-manager
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/gnome-phone-manager/
 %{_mandir}/man1/gnome-phone-manager.1.gz
@@ -118,6 +153,9 @@ fi
 %{_datadir}/mission-control/profiles/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.69-10
+- Add an AppData file for the software center
+
 * Tue Feb 17 2015 Milan Crha <mcrha at redhat.com> 0.69-9
 - Rebuild against newer evolution-data-server
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnome-phone-manager.git/commit/?h=master&id=b20d9a63bb363a439ab2786ce7bcf4bdef4b087a


More information about the scm-commits mailing list