[gmusicbrowser] add appdata
Remi Collet
remi at fedoraproject.org
Sat Aug 2 07:55:39 UTC 2014
commit 6d455a5b95c413759317948e3f25bd0001b9c814
Author: Remi Collet <remi at fedoraproject.org>
Date: Sat Aug 2 09:55:28 2014 +0200
add appdata
gmusicbrowser-appdata.patch | 105 +++++++++++++++++++++++++++++++++++++++++++
gmusicbrowser.spec | 29 +++++++++++-
2 files changed, 133 insertions(+), 1 deletions(-)
---
diff --git a/gmusicbrowser-appdata.patch b/gmusicbrowser-appdata.patch
new file mode 100644
index 0000000..3600a3b
--- /dev/null
+++ b/gmusicbrowser-appdata.patch
@@ -0,0 +1,105 @@
+From 72b9937c363f715b93e1a36376ecaec5e963ca6f Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Sat, 2 Aug 2014 09:23:16 +0200
+Subject: [PATCH 1/2] add appdata
+
+---
+ Makefile | 1 +
+ gmusicbrowser.appdata.xml | 47 +++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 48 insertions(+)
+ create mode 100644 gmusicbrowser.appdata.xml
+
+diff --git a/Makefile b/Makefile
+index f219f85..fb01e98 100644
+--- a/Makefile
++++ b/Makefile
+@@ -79,6 +79,7 @@ install: all
+ install -pm 644 pix/tango/* "$(datadir)/gmusicbrowser/pix/tango/"
+ install -pm 644 pix/oxygen/* "$(datadir)/gmusicbrowser/pix/oxygen/"
+ install -pDm 644 gmusicbrowser.desktop "$(datadir)/applications/gmusicbrowser.desktop"
++ install -pDm 644 gmusicbrowser.appdata.xml "$(datadir)/appdata/gmusicbrowser.appdata.xml
+ install -pDm 644 gmusicbrowser.menu "$(menudir)/gmusicbrowser"
+ install -pDm 644 pix/gmusicbrowser32x32.png "$(iconsdir)/gmusicbrowser.png"
+ install -pDm 644 pix/gmusicbrowser.png "$(liconsdir)/gmusicbrowser.png"
+diff --git a/gmusicbrowser.appdata.xml b/gmusicbrowser.appdata.xml
+new file mode 100644
+index 0000000..5e71f69
+--- /dev/null
++++ b/gmusicbrowser.appdata.xml
+@@ -0,0 +1,47 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<!-- Copyright 2014 by Quentin Sculo -->
++<application>
++ <id type="desktop">gmusicbrowser.desktop</id>
++ <licence>GPL-3.0</licence>
++ <name>gmusicbrowser</name>
++ <name xml:lang="fr">gmusicbrowser</name>
++ <summary>Jukebox for large collections of mp3/ogg/flac/mpc files</summary>
++ <summary xml:lang="fr">Jukebox pour de grandes collections de mp3/ogg/flac/mpc</summary>
++ <description>
++ <p>Jukebox for large collections of mp3/ogg/flac/mpc files.
++ Uses gstreamer, mpg123/ogg123 or mplayer for playback.</p>
++ <p>Main features:</p>
++ <ul>
++ <li>customizable window layouts</li>
++ <li>artist/album lock: easily restrict playlist to current artist/album</li>
++ <li>easy access to related songs (same artist/album/title)</li>
++ <li>simple mass-tagging and mass-renaming</li>
++ <li>support multiple genres for each song</li>
++ <li>customizable labels can be set for each song</li>
++ <li>filters with unlimited nesting of conditions</li>
++ <li>customizable weighted random mode</li>
++ </ul>
++
++ <p xml:lang="fr">Jukebox pour de grandes collections de mp3/ogg/flac/mpc.
++ Il peut utiliser gstreamer, mpg123/ogg123 ou mplayer pour la lecture.</p>
++ <p xml:lang="fr">Principales fonctionalités :</p>
++ <ul xml:lang="fr">
++ <li xml:lang="fr">disposition des fenêtres personnalisable</li>
++ <li xml:lang="fr">verrouillage artiste/album : limiter simplement la lecture à l'artiste/album courant</li>
++ <li xml:lang="fr">accès rapide aux chansons liées (même artiste/album/titre)</li>
++ <li xml:lang="fr">étiquetter ou renommer en masse simplement</li>
++ <li xml:lang="fr">support de genres multiples pour chaque chanson</li>
++ <li xml:lang="fr">étiquettes personnalisables pour chaque chanson</li>
++ <li xml:lang="fr">filter avec conditions imbriqués illimitées</li>
++ <li xml:lang="fr">mode aléatoire pondéré configurable.</li>
++ </ul>
++ </description>
++ <url type="homepage">http://gmusicbrowser.org/</url>
++ <screenshots>
++ <screenshot type="default">http://gmusicbrowser.org/screenshots/songtree_example.png</screenshot>
++ <screenshot>http://gmusicbrowser.org/screenshots/SearchAndQueue.png</screenshot>
++ <screenshot>http://gmusicbrowser.org/screenshots/itunelike.png</screenshot>
++ <screenshot>http://gmusicbrowser.org/screenshots/QueueLibraryContext.png</screenshot>
++ </screenshots>
++ <updatecontact>squentin at free.fr</updatecontact>
++</application>
+--
+2.0.3
+
+
+From 5a340a12a9500d35ac3bd513d18f0eec32c5cf29 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Sat, 2 Aug 2014 09:52:23 +0200
+Subject: [PATCH 2/2] typo
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index fb01e98..226401b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -79,7 +79,7 @@ install: all
+ install -pm 644 pix/tango/* "$(datadir)/gmusicbrowser/pix/tango/"
+ install -pm 644 pix/oxygen/* "$(datadir)/gmusicbrowser/pix/oxygen/"
+ install -pDm 644 gmusicbrowser.desktop "$(datadir)/applications/gmusicbrowser.desktop"
+- install -pDm 644 gmusicbrowser.appdata.xml "$(datadir)/appdata/gmusicbrowser.appdata.xml
++ install -pDm 644 gmusicbrowser.appdata.xml "$(datadir)/appdata/gmusicbrowser.appdata.xml"
+ install -pDm 644 gmusicbrowser.menu "$(menudir)/gmusicbrowser"
+ install -pDm 644 pix/gmusicbrowser32x32.png "$(iconsdir)/gmusicbrowser.png"
+ install -pDm 644 pix/gmusicbrowser.png "$(liconsdir)/gmusicbrowser.png"
+--
+2.0.3
+
diff --git a/gmusicbrowser.spec b/gmusicbrowser.spec
index 7809983..f3f1ef1 100644
--- a/gmusicbrowser.spec
+++ b/gmusicbrowser.spec
@@ -6,20 +6,33 @@
#
# Please, preserve the changelog entries
#
+
+%if 0%{?fedora} > 19
+%global with_appdata 1
+%else
+%global with_appdata 0
+%endif
+
Name: gmusicbrowser
Summary: Jukebox for large collections of music files
Version: 1.1.12
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv3+
Group: Applications/Multimedia
URL: http://gmusicbrowser.org/
Source0: http://gmusicbrowser.org/download/%{name}-%{version}.tar.gz
+# https://github.com/squentin/gmusicbrowser/pull/92
+Patch0: %{name}-appdata.patch
+
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: desktop-file-utils
+%if %{with_appdata}
+BuildRequires: appdata-tools
+%endif
BuildRequires: perl-devel
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
@@ -99,6 +112,8 @@ Main features :
%prep
%setup -q
+%patch0 -p1 -b .appdata
+
# don't install documentation as RPM handles it
sed -e '/DOCS/d' \
-e '/docdir/d' \
@@ -122,6 +137,12 @@ desktop-file-install --vendor="" \
--dir=%{buildroot}%{_datadir}/applications/ \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
+%if %{with_appdata}
+appdata-validate --relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+%else
+rm %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+%endif
+
%find_lang %{name}
@@ -143,6 +164,9 @@ update-desktop-database &> /dev/null ||:
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
+%if %{with_appdata}
+%{_datadir}/appdata/%{name}.appdata.xml
+%endif
%{_mandir}/man1/%{name}*
%{_datadir}/icons/%{name}.png
%{_datadir}/icons/large/%{name}.png
@@ -150,6 +174,9 @@ update-desktop-database &> /dev/null ||:
%changelog
+* Sat Aug 2 2014 Remi Collet <remi at fedoraproject.org> - 1.1.12-4
+- add appdata
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list