rhughes pushed to k3d (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:24 UTC 2015
>From 4356fd0b4ed0d3e0136288639027fb668a3e33bf Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:52 +0000
Subject: Add an AppData file for the software center
diff --git a/k3d.spec b/k3d.spec
index a1cc471..b0ee2f9 100644
--- a/k3d.spec
+++ b/k3d.spec
@@ -1,6 +1,6 @@
Name: k3d
Version: 0.8.0.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A 3D Modeling, Animation and Rendering System
Group: Applications/Multimedia
@@ -128,6 +128,44 @@ desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
+# 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> -->
+<!--
+EmailAddress: k3d-development at lists.sourceforge.net
+SentUpstream: 2014-05-22
+-->
+<application>
+ <id type="desktop">k3d.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <description>
+ <p>
+ K-3D is free-as-in-freedom 3D modeling and animation software.
+ It combines flexible plugins with a visualization pipeline
+ architecture, making K-3D a versatile and powerful tool for artists.
+ </p>
+ <p>
+ K-3D's interface uses your platform's look-and-feel, and it's
+ consistent with the applications you already know.
+ New artists will find K-3D easy to understand, and professionals
+ feel right at home. K-3D is intuitive, consistent, and discoverable.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">http://www.k-3d.org/k3d_wiki/images/c/c2/Happy_buddha.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://www.k-3d.org/</url>
+</application>
+EOF
%check
# FIXME: This doesn't work.
@@ -171,6 +209,7 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%{_datadir}/k3d/guide
%{_datadir}/k3d/qtui
%{_mandir}/man1/k3d*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%files devel
@@ -181,6 +220,9 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.8.0.3-3
+- Add an AppData file for the software center
+
* Thu Mar 12 2015 Ralf Corsépius <corsepiu at fedoraproject.org> - 0.8.0.3-2
- Rebuild for GCC-5.0 C++-breakage.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/k3d.git/commit/?h=master&id=4356fd0b4ed0d3e0136288639027fb668a3e33bf
More information about the scm-commits
mailing list