rhughes pushed to ardour (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:16:06 UTC 2015
>From aab7e821fb0d457c569d0d95c8dc62e40ff5c34e Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:04:36 +0000
Subject: Add an AppData file for the software center
diff --git a/ardour.spec b/ardour.spec
index e8d17b8..97a561f 100644
--- a/ardour.spec
+++ b/ardour.spec
@@ -1,7 +1,7 @@
Summary: Multichannel Digital Audio Workstation
Name: ardour
Version: 2.8.16
-Release: 13%{?dist}
+Release: 14%{?dist}
# No more direct links. Download from
# http://ardour.org/download
Source: ardour-%{version}.tar.bz2
@@ -117,6 +117,47 @@ scons PREFIX=%{_prefix} LIBDIR=%{_lib} SYSLIBS=1 \
%install
scons DESTDIR=$RPM_BUILD_ROOT install
+# 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/ardour2.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: http://tracker.ardour.org/view.php?id=5940
+SentUpstream: 2014-05-28
+-->
+<application>
+ <id type="desktop">ardour2.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Digital Audio Workstation</summary>
+ <description>
+ <p>
+ Ardour is a digital audio workstation that permits you to record and
+ create music.
+ Ardour supports multi-track recording, and allows you to use plug-ins to
+ create music in a virtual studio.
+ </p>
+ <p>
+ Ardour is intended to be a one-stop complete solution for your digital
+ audio needs.
+ </p>
+ </description>
+ <url type="homepage">http://ardour.org</url>
+ <screenshots>
+ <screenshot type="default">http://ardour.org/images/lsdedits.png</screenshot>
+ <screenshot>http://ardour.org/images/eno.png</screenshot>
+ <screenshot>http://ardour.org/images/lsd-mixer.jpg</screenshot>
+ </screenshots>
+ <updatecontact>ardour-users at lists.ardour.org</updatecontact>
+</application>
+EOF
+
# Replace ardour2 with a script
install -dm 755 $RPM_BUILD_ROOT%{_libexecdir}
mv $RPM_BUILD_ROOT%{_bindir}/ardour2 $RPM_BUILD_ROOT%{_libexecdir}
@@ -181,6 +222,7 @@ fi
%{_libdir}/ardour2/
%{_datadir}/ardour2/
%{_datadir}/icons/hicolor/*/apps/ardour2.png
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/ardour2.desktop
%{_datadir}/mime/packages/ardour2.xml
%{_mandir}/man1/ardour.1*
@@ -189,6 +231,9 @@ fi
%{_mandir}/ru/man1/ardour.1*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.8.16-14
+- Add an AppData file for the software center
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 2.8.16-13
- Rebuild for boost 1.57.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ardour.git/commit/?h=master&id=aab7e821fb0d457c569d0d95c8dc62e40ff5c34e
More information about the scm-commits
mailing list