From 0e6f572d5d3109c0e09e77d6076d4c3d31f44e05 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 2015 16:41:15 +0000 Subject: Add an AppData file for the software center --- diff --git a/pinta.spec b/pinta.spec index d80580d..30af51a 100644 --- a/pinta.spec +++ b/pinta.spec @@ -2,7 +2,7 @@ Name: pinta Version: 1.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An easy to use drawing and image editing program # the code is licensed under the MIT license while the icons are licensed as CC-BY @@ -61,6 +61,43 @@ update-desktop-database &> /dev/null ||: touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +# 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 < + + + + pinta.desktop + CC0-1.0 + Edit images and paint digitally + +

+ Pinta is a image editing, drawing and painting application with a simple + yet powerful interface. + Pinta has a wide range of drawing tools, including: freehand, rectangles, + circles and lines. + It also has over 35 effects to apply to your images, and also has the + ability to create unlimited layers to help organize your creativity. +

+
+ http://pinta-project.com/ + + http://pinta-project.com/Images/ss1-800.jpg + http://pinta-project.com/Images/ss2-800.jpg + +
+EOF + %postun update-desktop-database &> /dev/null || : @@ -76,12 +113,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %doc readme.md license-mit.txt license-pdn.txt %{_libdir}/%{name} %{_bindir}/%{name} +%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/*/%{name}.* %{_datadir}/man/man1/%{name}* %{_datadir}/pixmaps/%{name}* %changelog +* Thu Mar 26 2015 Richard Hughes - 1.5-2 +- Add an AppData file for the software center + * Mon Oct 27 2014 Andrea Musuruane 1.5-1 - Updated to v1.5 - Updated Source0 tag