[gnome-sound-recorder] Add Audio to desktop file categories

David King amigadave at fedoraproject.org
Wed Jul 16 08:03:04 UTC 2014


commit 1e169e217e219605bf752892592c4bbce07cbf66
Author: David King <amigadave at amigadave.com>
Date:   Wed Jul 16 08:56:27 2014 +0100

    Add Audio to desktop file categories
    
    Tidy spec file.

 gnome-sound-recorder-3.12.2-desktop-category.patch |   23 ++++++++
 gnome-sound-recorder.spec                          |   54 +++++++++++---------
 2 files changed, 53 insertions(+), 24 deletions(-)
---
diff --git a/gnome-sound-recorder-3.12.2-desktop-category.patch b/gnome-sound-recorder-3.12.2-desktop-category.patch
new file mode 100644
index 0000000..ab5bf83
--- /dev/null
+++ b/gnome-sound-recorder-3.12.2-desktop-category.patch
@@ -0,0 +1,23 @@
+From 7447297a8233b82dd97118d081e4cddf275f2a16 Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Wed, 21 May 2014 13:28:23 +0100
+Subject: Add 'Audio' to the desktop file categories
+
+This allows the application to show up in GNOME Software without an AppData file.
+
+diff --git a/data/org.gnome.SoundRecorder.desktop.in.in b/data/org.gnome.SoundRecorder.desktop.in.in
+index 3e53b10..c36916e 100644
+--- a/data/org.gnome.SoundRecorder.desktop.in.in
++++ b/data/org.gnome.SoundRecorder.desktop.in.in
+@@ -3,7 +3,7 @@ Type=Application
+ _Name=Sound Recorder
+ _Comment=Record sound via the microphone and play it back
+ Icon=gnome-sound-recorder
+-Categories=GNOME;GTK;
++Categories=GNOME;GTK;Audio;AudioVideo;
+ _Keywords=Audio;Application;Record;
+ Exec=gnome-sound-recorder
+ StartupNotify=true
+-- 
+cgit v0.10.1
+
diff --git a/gnome-sound-recorder.spec b/gnome-sound-recorder.spec
index 94ea684..3328949 100644
--- a/gnome-sound-recorder.spec
+++ b/gnome-sound-recorder.spec
@@ -1,38 +1,41 @@
-Name:		gnome-sound-recorder
-Version:	3.12.2
-Release:	2%{?dist}
-Summary:	Make simple recordings from your desktop
+Name:           gnome-sound-recorder
+Version:        3.12.2
+Release:        3%{?dist}
+Summary:        Make simple recordings from your desktop
 
-Group:		Applications/Multimedia
+Group:          Applications/Multimedia
 # GNOME Sound Recorder itself is GPLv2+, but the bundled libgd is LGPLv2+
-License:	GPLv2+ and LGPLv2+
-URL:		https://wiki.gnome.org/Design/Apps/SoundRecorder
-Source0:	https://download.gnome.org/sources/%{name}/3.12/%{name}-%{version}.tar.xz
-
-BuildRequires:	desktop-file-utils
-BuildRequires:	intltool
-BuildRequires:	/usr/bin/gjs
-BuildRequires:	pkgconfig(gobject-introspection-1.0)
-BuildRequires:	pkgconfig(gtk+-3.0)
-Requires:	/usr/bin/gjs
-Requires:	gstreamer1
-Requires:	gstreamer1-plugins-base
+License:        GPLv2+ and LGPLv2+
+URL:            https://wiki.gnome.org/Design/Apps/SoundRecorder
+Source0:        https://download.gnome.org/sources/%{name}/3.12/%{name}-%{version}.tar.xz
+# Applied upstream in gnome-3-12 branch
+Patch0:         gnome-sound-recorder-3.12.2-desktop-category.patch
+
+BuildRequires:  desktop-file-utils
+BuildRequires:  intltool
+BuildRequires:  /usr/bin/gjs
+BuildRequires:  pkgconfig(gobject-introspection-1.0)
+BuildRequires:  pkgconfig(gtk+-3.0)
+Requires:       /usr/bin/gjs
+Requires:       gstreamer1
+Requires:       gstreamer1-plugins-base
 
 # libgd is not meant to be installed as a system-wide shared library.
 # It is just a way for GNOME applications to share widgets and other common
 # code on an ad-hoc basis.
-Provides:	bundled(libgd)
+Provides:       bundled(libgd)
 
 # Installs /usr/bin/gnome-sound-recorder, as well as a GStreamer properties
 # tool, so a Provides is not appropriate. Retired in F21.
-Obsoletes:	gnome-media < 3.4.0-7
-Obsoletes:	gnome-media-apps < 3.4.0-7
+Obsoletes:      gnome-media < 3.4.0-7
+Obsoletes:      gnome-media-apps < 3.4.0-7
 
 %description
 Make simple recordings from your desktop.
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
@@ -41,8 +44,8 @@ make V=1 %{?_smp_mflags}
 
 
 %install
-make install DESTDIR=%{buildroot}
-find %{buildroot} -name '*.la' -exec rm -f {} +
+make DESTDIR=%{buildroot} INSTALL="install -p" install
+find %{buildroot} -name '*.la' -delete
 desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.SoundRecorder.desktop
 %find_lang %{name}
 
@@ -65,15 +68,18 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files -f %{name}.lang
 %doc AUTHORS COPYING README NEWS
-%{_bindir}/gnome-sound-recorder
+%{_bindir}/%{name}
 %{_datadir}/applications/org.gnome.SoundRecorder.desktop
 %{_datadir}/glib-2.0/schemas/*
 %{_datadir}/%{name}/
-%{_datadir}/icons/hicolor/*/apps/gnome-sound-recorder.png
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_libdir}/%{name}/
 
 
 %changelog
+* Wed Jul 16 2014 David King <amigadave at amigadave.com.> - 3.12.2-3
+- Add Audio to desktop file categories
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.12.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list