rhughes pushed to mandelbulber (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:50:18 UTC 2015
>From 93eb049d58b95a450041bd9621fcdc88c6ff0306 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:38:02 +0000
Subject: Add an AppData file for the software center
diff --git a/mandelbulber.spec b/mandelbulber.spec
index 5b08dfa..c047ae7 100644
--- a/mandelbulber.spec
+++ b/mandelbulber.spec
@@ -1,6 +1,6 @@
Name: mandelbulber
Version: 1.21
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Advanced 3D fractal generator
License: GPLv3
URL: http://www.mandelbulber.com/
@@ -55,13 +55,57 @@ install -pDm755 makefiles/%{name} %{buildroot}%{_bindir}/%{name}
# Install the desktop file.
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: buddhi1980 at gmail.com
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">mandelbulber.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>View 3D Mandelbrot fractals</summary>
+ <description>
+ <p>
+ Mandelbulber is an application for generating, rendering and viewing
+ 3D Mandelbrot fractals.
+ It supports the generation of many different 3D Fractals, including
+ Mandelbulb, Menger Sponge, BulbBox, Quaternion and Hypercomplex fractal
+ systems.
+ It has an extensive user interface for tweaking the variables of your
+ fractals, and then renders your fractal in a seperate window where you can
+ pan and zoom in on your mathmatical creation.
+ Mandelbulber also has the ability to specify a camera, camerapath and
+ keyframes to render a fly-through style video of your fractal creation.
+ </p>
+ </description>
+ <url type="homepage">http://www.mandelbulber.com/</url>
+ <screenshots>
+ <screenshot type="default">http://www.mandelbulber.com/main_theme/random/screenshot_HR.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+
%files
%doc COPYING LICENSE_1_0.txt NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.21-4
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.21-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/mandelbulber.git/commit/?h=master&id=93eb049d58b95a450041bd9621fcdc88c6ff0306
More information about the scm-commits
mailing list