[audacious/f15] Rename also the built-in desktop file path.
Michael Schwendt
mschwendt at fedoraproject.org
Fri Jun 24 13:58:19 UTC 2011
commit f3deb3e3c03f9413a0b15754f871c8b507437f02
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date: Fri Jun 24 15:58:00 2011 +0200
Rename also the built-in desktop file path.
audacious.spec | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/audacious.spec b/audacious.spec
index a50dc66..d294201 100644
--- a/audacious.spec
+++ b/audacious.spec
@@ -6,7 +6,7 @@
Name: audacious
Version: 2.5.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv3
Summary: Advanced audio player
@@ -102,6 +102,11 @@ api_min=$(grep '[ ]*#define[ ]*_AUD_PLUGIN_VERSION_MIN' src/audacious/plugin.h |
sed -i '\,^.SILENT:,d' buildsys.mk.in
+mv audacious.desktop audacious2.desktop
+for f in configure Makefile src/audacious/Makefile ; do
+ sed -i 's!audacious.desktop!audacious2.desktop!g' ${f}
+done
+
%build
%configure \
@@ -134,8 +139,7 @@ desktop-file-install \
--remove-mime-type audio/x-musepack \
--remove-mime-type audio/prs.sid \
--remove-mime-type audio/midi \
- $RPM_BUILD_ROOT%{_datadir}/applications/audacious.desktop
-mv $RPM_BUILD_ROOT%{_datadir}/applications/audacious.desktop $RPM_BUILD_ROOT%{_datadir}/applications/audacious2.desktop
+ $RPM_BUILD_ROOT%{_datadir}/applications/audacious2.desktop
%clean
@@ -170,7 +174,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/audtool
%{_datadir}/audacious/
%{_mandir}/man[^3]/*
-%{_datadir}/applications/*.desktop
+%{_datadir}/applications/audacious2.desktop
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
@@ -192,6 +196,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Fri Jun 24 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 2.5.2-2
+- Rename also the built-in desktop file path.
+
* Tue Jun 21 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 2.5.2-1
- Move audacious(plugin-api) Provides to the audacious-libs package.
- Update to 2.5.2.
More information about the scm-commits
mailing list