diff --git a/gnome-bluetooth-0.7.0-path.patch b/gnome-bluetooth-0.7.0-path.patch new file mode 100644 index 0000000..6f096f7 --- /dev/null +++ b/gnome-bluetooth-0.7.0-path.patch @@ -0,0 +1,11 @@ +--- gnome-bluetooth-0.7.0/python/manager.py.path 2006-02-16 18:48:02.000000000 +0100 ++++ gnome-bluetooth-0.7.0/python/manager.py 2006-02-16 18:48:25.000000000 +0100 +@@ -265,7 +265,7 @@ + dialog.show () + + def image_file (self, fname): +- for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps"]: ++ for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps", "/usr/share/pixmaps"]: + if os.path.isfile (os.path.join (d, fname)): + return os.path.join (d, fname) + return None diff --git a/gnome-bluetooth.spec b/gnome-bluetooth.spec index 459e55a..b916623 100644 --- a/gnome-bluetooth.spec +++ b/gnome-bluetooth.spec @@ -18,6 +18,7 @@ Requires: %{name}-libs = %{version}-%{release} ExcludeArch: s390 s390x Patch1: gnome-bluetooth-0.7.0-pydir.patch +Patch2: gnome-bluetooth-0.7.0-path.patch %description This package contains a Bonobo server to control Bluetooth devices, @@ -49,11 +50,15 @@ rm -rf $RPM_BUILD_ROOT %setup -q %patch1 -p1 -b .pydir +%patch2 -p1 -b .path aclocal automake -a autoconf +perl -pi -e 's|^Icon=.*|Icon=%{_datadir}/pixmaps/blueradio-48.png|g' \ + */*.desktop.in + %build %configure