[audacious-plugins/f15/master] Add audio/midi MIME type to audacious-plugins-amidi package.
Michael Schwendt
mschwendt at fedoraproject.org
Thu Mar 24 23:04:18 UTC 2011
commit 9e86fb76e487be7fe5f5e988b5ebd8578ca7b347
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date: Fri Mar 25 00:04:08 2011 +0100
Add audio/midi MIME type to audacious-plugins-amidi package.
audacious-amidi.desktop | 10 ++++++++++
audacious-plugins.spec | 20 +++++++++++++++++++-
2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/audacious-amidi.desktop b/audacious-amidi.desktop
new file mode 100644
index 0000000..e72b6b7
--- /dev/null
+++ b/audacious-amidi.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Audacious
+Comment=Play MIDI music
+Exec=audacious
+Icon=audacious2
+MimeType=audio/midi;
+Categories=GTK;AudioVideo;Player;
+Terminal=false
+Type=Application
+NoDisplay=true
diff --git a/audacious-plugins.spec b/audacious-plugins.spec
index fe0bee9..c5775ab 100644
--- a/audacious-plugins.spec
+++ b/audacious-plugins.spec
@@ -10,7 +10,7 @@ Requires: audacious >= %{aud_ver}
Name: audacious-plugins
Version: 2.4.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Plugins for the Audacious audio player
Group: Applications/Multimedia
URL: http://audacious-media-player.org/
@@ -23,6 +23,7 @@ License: GPLv2 and GPLv2+ and LGPLv2+ and MIT and GPLv3
Source0: audacious-plugins-fedora-%{version}.tar.bz2
#Source0: http://distfiles.atheme.org/audacious-plugins-%{version}.tgz
Source1: audacious-sid.desktop
+Source2: audacious-amidi.desktop
# Fedora customization
Patch0: audacious-plugins-2.0.1-xmms-skindir.patch
@@ -130,6 +131,8 @@ Summary: Audacious input plugin for MIDI
Group: Applications/Multimedia
%{?aud_plugin_dep}
Requires: audacious >= %{aud_ver}, audacious-plugins >= %{aud_ver}
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
%description amidi
This package provides AMIDI-Plug, a modular MIDI music player, as an
@@ -197,6 +200,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
desktop-file-install --vendor "" \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
%{SOURCE1}
+# audacious-amidi.desktop
+desktop-file-install --vendor "" \
+ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
+ %{SOURCE2}
%check
@@ -215,6 +222,13 @@ update-desktop-database &> /dev/null || :
update-desktop-database &> /dev/null || :
+%post amidi
+update-desktop-database &> /dev/null || :
+
+%postun amidi
+update-desktop-database &> /dev/null || :
+
+
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING
@@ -253,6 +267,7 @@ update-desktop-database &> /dev/null || :
%defattr(-,root,root,-)
%{_libdir}/audacious/Input/amidi-plug.so
%{_libdir}/audacious/Input/amidi-plug/
+%{_datadir}/applications/audacious-amidi.desktop
%files sid
%defattr(-,root,root,-)
@@ -261,6 +276,9 @@ update-desktop-database &> /dev/null || :
%changelog
+* Thu Mar 24 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 2.4.4-2
+- Add audio/midi MIME type to audacious-plugins-amidi package.
+
* Wed Feb 23 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 2.4.4-1
- Update to 2.4.4 (maintenance release in stable branch, 170k diff).
- Remove the extra vfs_close() call in adplug's new binio_virtual.h class,
More information about the scm-commits
mailing list