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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:51:56 UTC 2015


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


diff --git a/monodevelop.spec b/monodevelop.spec
index 9928b56..466c1af 100644
--- a/monodevelop.spec
+++ b/monodevelop.spec
@@ -6,7 +6,7 @@
 
 Name:           monodevelop
 Version:        2.8.8.4
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        A full-featured IDE for Mono and Gtk#
 
 Group:          Development/Tools
@@ -87,6 +87,47 @@ desktop-file-install \
 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
 test "%{_libdir}" = "%{_prefix}/lib" || mv $RPM_BUILD_ROOT/%{_prefix}/lib/pkgconfig/* $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
 
+# 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://bugzilla.xamarin.com/show_bug.cgi?id=23288
+SentUpstream: 2014-09-23
+-->
+<application>
+  <id type="desktop">monodevelop.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      MonoDevelop is a cross-platform IDE primarily designed for C# and other
+      .NET languages.
+      MonoDevelop enables developers to quickly write desktop and ASP.NET Web
+      applications on Linux, Windows and Mac OSX.
+    </p>
+    <p>
+      MonoDevelop makes it easy for developers to port .NET applications created
+      with Visual Studio to Linux and Mac OSX maintaining a single code base for
+      all platforms.
+    </p>
+  </description>
+  <url type="homepage">http://monodevelop.com/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/monodevelop/a.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
+
 %find_lang %{name}
 
 %post
@@ -113,6 +154,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 %{_bindir}/m*
 %{_prefix}/lib/monodevelop
 %{_mandir}/man1/m*
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/hicolor/*/*/*
 %{_datadir}/mime/packages/monodevelop.xml
@@ -122,6 +164,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 %{_libdir}/pkgconfig/monodevelop*.pc
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.8.8.4-9
+- Add an AppData file for the software center
+
 * Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 2.8.8.4-8
 - update mime scriptlets
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/monodevelop.git/commit/?h=master&id=7502de1be7f4a1a1749b0def7e94ccb23bcf1528


More information about the scm-commits mailing list