Remove the vendor prefix from the desktop file

epel9
Kalev Lember 12 years ago
parent 9127502e56
commit 53861967f5

@ -1,25 +0,0 @@
From bff0923c93d6a191d549bd2273c35f2ed4c1dd6a Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 16 Oct 2012 18:02:37 +0200
Subject: [PATCH] Change desktop filename to Fedora's name
---
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 2ecd316..fb9ab4e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -628,7 +628,7 @@ static void
fr_application_init (FrApplication *self)
{
#ifdef GDK_WINDOWING_X11
- egg_set_desktop_file (APPLICATIONS_DIR "/file-roller.desktop");
+ egg_set_desktop_file (APPLICATIONS_DIR "/gnome-file-roller.desktop");
#else
/* manually set name and icon */
g_set_application_name (_("File Roller"));
--
1.7.12.1

@ -24,9 +24,6 @@ BuildRequires: libarchive-devel
Requires(pre): GConf2
# Because we prefix the .desktop filename
Patch0: 0001-Change-desktop-filename-to-Fedora-s-name.patch
%description
File Roller is an application for creating and viewing archives files,
such as tar or zip files.
@ -44,7 +41,6 @@ or directories.
%prep
%setup -q
%patch0 -p1 -b .desktop
%build
%configure \
@ -59,17 +55,14 @@ make LIBTOOL=/usr/bin/libtool
export tagname=CC
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install --vendor gnome --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--remove-only-show-in=GNOME \
$RPM_BUILD_ROOT%{_datadir}/applications/*
rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
%find_lang %{name} --with-gnome
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/file-roller.desktop
%post
update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
@ -93,7 +86,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%doc README COPYING NEWS AUTHORS
%{_bindir}/file-roller
%{_datadir}/file-roller
%{_datadir}/applications/gnome-file-roller.desktop
%{_datadir}/applications/file-roller.desktop
%{_libexecdir}/file-roller
%{_datadir}/dbus-1/services/org.gnome.FileRoller.service
%{_datadir}/icons/hicolor/*/apps/file-roller.png
@ -107,6 +100,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%changelog
* Wed Feb 06 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.3-1
- Update to 3.7.3
- Remove the vendor prefix from the desktop file
* Thu Jan 17 2013 Tomas Bzatek <tbzatek@redhat.com> - 3.6.3-2
- Rebuilt for new libarchive

Loading…
Cancel
Save