rhughes pushed to mtpaint (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:52:19 UTC 2015
>From 987aff48a6cb0023f54576412c11df1a2298106d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:38:56 +0000
Subject: Add an AppData file for the software center
diff --git a/mtpaint.spec b/mtpaint.spec
index 9b38153..563c9be 100644
--- a/mtpaint.spec
+++ b/mtpaint.spec
@@ -5,7 +5,7 @@
Summary: Painting program for creating icons and pixel-based artwork
Name: mtpaint
Version: 3.40
-Release: 16%{?dist}
+Release: 17%{?dist}
License: GPLv3+
Group: Applications/Multimedia
URL: http://mtpaint.sourceforge.net/
@@ -92,6 +92,39 @@ desktop-file-install --delete-original \
%{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
+# 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> -->
+<!--
+EmailAddress: mtpaint-devel at lists.sourceforge.net
+SentUpstream: 2014-09-22
+-->
+<application>
+ <id type="desktop">mtpaint.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Create pixel art</summary>
+ <description>
+ <p>
+ MTPaint is an application for creating images, with a specific focus on pixel art. It features a wide range
+ of tools to help you create pixel art, including: a pixel-perfect grid, tools to make pixel gradients with
+ the use of dithering, pixel brushes, and pixel line and shape tools.
+ </p>
+ </description>
+ <url type="homepage">http://mtpaint.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mtpaint/a.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%clean
%{__rm} -rf %{buildroot}
@@ -120,6 +153,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc COPYING NEWS README
%{_mandir}/man1/%{name}*
%{_bindir}/%{name}
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png
@@ -128,6 +162,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc %{name}_handbook-%{docver}/COPYING %{name}_handbook-%{docver}/docs/*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.40-17
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.40-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/mtpaint.git/commit/?h=master&id=987aff48a6cb0023f54576412c11df1a2298106d
More information about the scm-commits
mailing list