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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:00:47 UTC 2015


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


diff --git a/tagtool.spec b/tagtool.spec
index d6221f3..63773b7 100644
--- a/tagtool.spec
+++ b/tagtool.spec
@@ -1,6 +1,6 @@
 Name:		tagtool
 Version:	0.12.3
-Release:	19%{?dist}
+Release:	20%{?dist}
 Summary:	Ogg Vorbis and MP3 tag manager
 
 Group:		Applications/Multimedia
@@ -53,7 +53,62 @@ desktop-file-install --delete-original	\
 	--add-category Application							\
 	$RPM_BUILD_ROOT%{_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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://github.com/tagtool/tagtool/issues/7
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">tagtool.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Audio Tag Tool</name>
+  <summary>Ogg Vorbis and MP3 tag manager</summary>
+  <description>
+    <p>
+      Audio Tag Tool is a program to manage the information fields in MP3 and
+      Ogg Vorbis files (commonly called 'tags').  It is available under the GNU
+      General Public Licence (GPL).  Please send me any comments or bugs you
+      find.
+    </p>
+    <p>
+      Tag Tool can be used to edit tags one by one, but the most useful
+      features are the ability to easily tag or rename hundreds of files at
+      once, in any desired format.
+    </p>
+    <p>
+      The interface is arranged into two sections, with the list of available
+      files on the left and a set of tabs on the right. Each tab corresponds to
+      one of the main operations Audio Tag Tool can do:
+    </p>
+    <ul>
+      <li>Lets you edit the tags individually</li>
+      <li>You can set the tags of multiple files at once</li>
+      <li>The tag fields can be set to a fixed value, filled in from the file's name, or left alone</li>
+      <li>Allows you to remove the tags from multiple files at once</li>
+      <li>For MP3 files it lets you choose to remove only ID3v1 or ID3v2 tags</li>
+      <li>You can rename multiple files at once and/or organize them into directories</li>
+      <li>Generates playlists. Playlists can be sorted by file name or by any tag field</li>
+    </ul>
+    <p>
+    The mass tag and mass rename features can handle filenames in any
+    format thanks to an easily configurable format template.
+    </p>
+  </description>
+  <!-- No screenshots :( -->
+  <url type="homepage">https://github.com/tagtool/tagtool</url>
+  <updatecontact>ms at ansta.lt</updatecontact>
+</application>
+EOF
 
 %post
 update-desktop-database &> /dev/null ||:
@@ -74,6 +129,7 @@ fi
 %files -f %{name}.lang
 %doc AUTHORS BUGS COPYING ChangeLog NEWS README
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/48x48/apps/TagTool.png
@@ -81,6 +137,9 @@ fi
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.12.3-20
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.3-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list