File project.diff of Package gnome-bluetooth

--- gnome-bluetooth.changes.orig
+++ gnome-bluetooth.changes
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Fri Nov 26 07:12:09 UTC 2010 - glin@novell.com
+
+- Add gnome-bluetooth-meegoise.patch to rename moblin as meego
+- Remove duplicated %suse_update_desktop_file
+- Add missing BuildRequires
+
+-------------------------------------------------------------------
 Fri Oct  1 18:08:32 CEST 2010 - vuntz@opensuse.org
 
 - Add gnome-bluetooth-fix-introspection-build.patch, which
@@ -34,6 +41,12 @@ Mon Sep 13 18:00:37 CEST 2010 - vuntz@op
   + Fix crasher when Bluetooth nautilus-sendto plugin is loaded
 
 -------------------------------------------------------------------
+Tue Sep 07 20:26:04 UTC 2010 - awafaa@opensuse.org
+
+- Enable MeeGo and add upstream MeeGo patch showin.patch
+- Add 61-gnome-bluetooth-rfkill.rules as per upstream MeeGo
+
+-------------------------------------------------------------------
 Mon Sep  6 14:09:30 CEST 2010 - vuntz@opensuse.org
 
 - Do not add a GenericName to bluetooth-applet.desktop: it's an
--- gnome-bluetooth.spec.orig
+++ gnome-bluetooth.spec
@@ -24,11 +24,16 @@ License:        GPLv2+
 Summary:        GNOME Bluetooth graphical utilities
 Url:            http://live.gnome.org/GnomeBluetooth
 Group:          System/GUI/GNOME
-Source:         http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2
+Source0:         http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2
+Source1:	61-gnome-bluetooth-rfkill.rules
 # PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
 Patch0:         lxde-support.patch
 # PATCH-FIX-UPSTREAM gnome-bluetooth-fix-introspection-build.patch bgo#630024 vuntz@opensuse.org -- Fix build with recent gobject-introspection
 Patch1:         gnome-bluetooth-fix-introspection-build.patch
+# PATCH-FIX-UPSTREAM - showin.patch. Taken from upstream MeeGo
+Patch2:		showin.patch
+# PATCH-FIX-UPSTREAM - gnome-bluetooth-meegoise.patch glin@novell.com Rename moblin to meego
+Patch3:         gnome-bluetooth-meegoise.patch
 BuildRequires:  fdupes
 # Needed for geoclue plugin
 BuildRequires:  gconf2-devel
@@ -42,6 +47,7 @@ BuildRequires:  libunique-devel
 BuildRequires:  nautilus-sendto-devel
 BuildRequires:  translation-update-upstream
 BuildRequires:  update-desktop-files
+BuildRequires:  udev
 Requires:       %{name}-lang = %{version}
 # Require bluez (mandatory, as per readme, bnc#622946)
 Requires:       bluez >= 4.36
@@ -107,12 +113,25 @@ Supplements:    packageand{%{name}:nauti
 This package provides the functionality to the Nautilus file browser to
 send files over bluetooth.
 
+%package meego
+Summary: MeeGo Bluetooth applet
+Group: Applications/Communication
+BuildRequires: mutter-meego-devel
+Requires: mutter-meego
+Requires: %{name} = %{version}-%{release}
+Requires: gnome-vfs-obexftp
+
+%description meego
+This package contains a bluetooth applet for MeeGo built using gnome-bluetooth widgets
+
 %lang_package
 %prep
 %setup -q
 translation-update-upstream
 %patch0 -p1
 %patch1 -p1
+#%patch2 -p1 -b .showin
+%patch3 -p1
 
 %build
 NOCONFIGURE=1 gnome-autogen.sh
@@ -120,7 +139,9 @@ NOCONFIGURE=1 gnome-autogen.sh
 		--disable-icon-update \
 		--disable-scrollkeeper \
 		--disable-desktop-update \
-                --enable-introspection
+                --enable-introspection \
+		--enable-meego
+
 %__make %{?_smp_mflags}
 
 %install
@@ -129,8 +150,11 @@ NOCONFIGURE=1 gnome-autogen.sh
 %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
 %endif
 find %{buildroot} -type f -name "*.la" -delete -print
-%suse_update_desktop_file bluetooth-properties
-%suse_update_desktop_file bluetooth-applet
+%suse_update_desktop_file -G "Configure Bluetooth settings" -N "Bluetooth Properties" bluetooth-properties
+%suse_update_desktop_file -G "Bluetooth Manager applet" bluetooth-applet
+install -m0644 -D %{SOURCE1} %{buildroot}/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
+# Avoid hardlink
+%{__rm} -f %{buildroot}%{_sysconfdir}/xdg/autostart/bluetooth-panel.desktop
 %find_lang %{name}2
 %find_lang %{name} %{name}2.lang
 %fdupes %{buildroot}
@@ -154,6 +178,12 @@ rm -rf %{buildroot}
 
 %postun -n libgnome-bluetooth8 -p /sbin/ldconfig
 
+%post meego
+ln -sf %{_datadir}/mutter-meego/panels/bluetooth-panel.desktop %{_sysconfdir}/xdg/autostart/bluetooth-panel.desktop
+
+%postun meego
+rm -f %{_sysconfdir}/xdg/autostart/bluetooth-panel.desktop
+
 %files
 %defattr(-, root, root)
 %doc AUTHORS COPYING ChangeLog NEWS README
@@ -170,6 +200,7 @@ rm -rf %{buildroot}
 %dir %{_libdir}/gnome-bluetooth/plugins
 # Exclude files which are in another package
 %exclude %{_libdir}/gnome-bluetooth/plugins/libgbtgeoclue.so
+/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
 
 %files lang -f %{name}2.lang
 
@@ -196,4 +227,13 @@ rm -rf %{buildroot}
 %{_datadir}/glib-2.0/schemas/org.gnome.Bluetooth.nst.gschema.xml
 %{_libdir}/nautilus-sendto/plugins/libnstbluetooth.so
 
+%files meego
+%defattr(-,root,root,-)
+%{_libexecdir}/bluetooth-panel
+%{_datadir}/gnome-bluetooth/theme/
+%{_datadir}/gnome-bluetooth/moblin-icons/
+%{_datadir}/gnome-bluetooth/pin.ui
+%{_datadir}/dbus-1/services/com.meego.UX.Shell.Panels.bluetooth.service
+%{_datadir}/mutter-meego/panels/bluetooth-panel.desktop
+
 %changelog
openSUSE Build Service is sponsored by