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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:03:55 UTC 2015


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


diff --git a/wings.spec b/wings.spec
index 30f83a0..7a7a02c 100644
--- a/wings.spec
+++ b/wings.spec
@@ -12,7 +12,7 @@
 
 Name:           wings
 Version:        1.5.3
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        3D Subdivision Modeler
 
 Group:          Applications/Multimedia
@@ -120,10 +120,53 @@ desktop-file-install  \
     --dir $RPM_BUILD_ROOT%{_datadir}/applications \
     wings.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 Chris Roberts <croberts at croberts.org -->
+<!--
+BugReportURL: http://www.wings3d.com/forum/showthread.php?tid=727
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">wings.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>An advanced subdivision modeler</summary>
+  <description>
+  <p>
+    Wings 3D is an advanced subdivision modeler that is both powerful and easy to use.
+    Wings has a simple interface.
+    Right-click menus give you easy access to common commands.
+    These menus are context sensitive, so depending on your selection, a
+    different menu pops up.
+  </p>
+  <p>
+    Wings has a many standard mesh modeling and selection tools such as Move,
+    Scale, Rotate, Extrude, Bevel, Bridge, Cut, and Weld.
+    Wings also features advance modelling tools such as: Sweep, Plane Cut,
+    Circularise, Intersect, Bend, Shear, and Inset, Magnets and Magnet Masking,
+    Virtual Mirror for symmetrical modeling, Tweak and Sculpt, Edge Loop and
+    Edge Ring selection and navigation tools and Smooth Preview.
+  </p>
+  </description>
+  <url type="homepage">http://www.wings3d.com</url>
+  <screenshots>
+    <screenshot type="default">http://www.wings3d.com/wp-content/uploads/SS04.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %files
 %{_bindir}/wings
 %{_libdir}/erlang/lib/%{name}-%{version}
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*
 %{_datadir}/pixmaps/*
 %doc AUTHORS NOTES-1.0 NOTES-1.1 NOTES-1.2 NOTES-1.3 NOTES-1.4 NOTES-1.4.1 NOTES-1.5 OLD-NOTES README README.jp license.terms
@@ -134,6 +177,9 @@ desktop-file-install  \
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.5.3-3
+- Add an AppData file for the software center
+
 * Tue Nov 04 2014 Peter Lemenkov <lemenkov at gmail.com> - 1.5.3-2
 - Rebuild with Erlang 17.3.3
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list