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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:52:34 UTC 2015


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


diff --git a/mypaint.spec b/mypaint.spec
index aeb3598..0db14fa 100644
--- a/mypaint.spec
+++ b/mypaint.spec
@@ -2,7 +2,7 @@
 
 Name:           mypaint
 Version:        1.1.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A fast and easy graphics application for digital painters
 
 Group:          Applications/Multimedia
@@ -109,6 +109,51 @@ desktop-file-install \
   --dir=%{buildroot}%{_datadir}/applications \
    %{buildroot}%{_datadir}/applications/%{name}.desktop
 
+# 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://github.com/mypaint/mypaint/issues/66
+SentUpstream: 2014-07-30
+-->
+<application>
+  <id type="desktop">mypaint.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      MyPaint is a fast and easy open-source graphics application for digital painters.
+      It lets you focus on the art instead of the program.
+      You work on your canvas with minimum distractions, bringing up the interface
+      only when you need it.
+    </p>
+    <p>
+      MyPaint's brush engine is fast and almost infinitely configurable to simulate
+      many natural media brushes or experimental ‘unrealistic’ ones.
+      It ships with a variety of pre-made brushes by prominent artists so you don't
+      have to configure your own if you don't want to.
+    </p>
+  </description>
+  <url type="homepage">http://mypaint.intilinux.com/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mypaint/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mypaint/b.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mypaint/c.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mypaint/d.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
+
 # the SConscript is dumb and includes %%{buildroot}. Let's just strip it here.
 sed -i 's|%{buildroot}||' %{buildroot}%{_libdir}/pkgconfig/libmypaint.pc
 
@@ -155,6 +200,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %if 0%{?fedora} && 0%{?fedora} < 19
 %{_datadir}/applications/fedora-%{name}.desktop
 %else
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %endif
 %{_datadir}/icons/hicolor/*/*/*
@@ -167,6 +213,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_libdir}/pkgconfig/libmypaint.pc
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.1.0-5
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/mypaint.git/commit/?h=master&id=ca8fa935e441eaa84a059b400fd842aa05c79d66


More information about the scm-commits mailing list