rhughes pushed to inkscape (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:13 UTC 2015
>From 21e006f4f87533eeb285d22d4e7b8617e87038fd Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:39 +0000
Subject: Add an AppData file for the software center
diff --git a/inkscape.spec b/inkscape.spec
index 743e5a7..be96033 100644
--- a/inkscape.spec
+++ b/inkscape.spec
@@ -1,6 +1,6 @@
Name: inkscape
Version: 0.91
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Vector-based drawing program using SVG
Group: Applications/Productivity
@@ -121,6 +121,48 @@ desktop-file-install --vendor="%{?desktop_vendor}" --delete-original \
# No skencil anymore
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/sk2svg.sh
+# 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: http://inkscape.13.x6.nabble.com/Inkscape-and-AppData-td4967842.html
+SentUpstream: 2013-09-06
+-->
+<application>
+ <id type="desktop">inkscape.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ An Open Source vector graphics editor, with capabilities similar to Illustrator,
+ CorelDraw, or Xara X, using the W3C standard Scalable Vector Graphics (SVG) file
+ format.
+ </p>
+ <p>
+ Inkscape supports many advanced SVG features (markers, clones, alpha blending,
+ etc.) and great care is taken in designing a streamlined interface. It is very
+ easy to edit nodes, perform complex path operations, trace bitmaps and much more.
+ We also aim to maintain a thriving user and developer community by using open,
+ community-oriented development.
+ </p>
+ </description>
+ <url type="homepage">http://inkscape.org/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/inkscape/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}
@@ -168,6 +210,7 @@ fi
%{_datadir}/inkscape/symbols
%{_datadir}/inkscape/templates
%{_datadir}/inkscape/ui
+%{_datadir}/appdata/*inkscape.appdata.xml
%{_datadir}/applications/*inkscape.desktop
%{_datadir}/icons/hicolor/*/*/inkscape*
%{_mandir}/*/*gz
@@ -190,6 +233,9 @@ fi
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.91-6
+- Add an AppData file for the software center
+
* Fri Mar 06 2015 Jon Ciesla <limburgher at gmail.com> - 0.91-5
- ImageMagick rebuild.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/inkscape.git/commit/?h=master&id=21e006f4f87533eeb285d22d4e7b8617e87038fd
More information about the scm-commits
mailing list