I've been trying to get bluetooth working on KDE4, with no luck. So I decided to try and package kdebluetooth4.03 (source can be obtained here
http://www.kde-apps.org/content/show.php/kdebluetooth4?content=84761). It built with no problems however, after installing, I don't see the system tray icon. I can't get it launch. I read somewhere and I can't remember where, but kdebluetooth4 requires a recent version of bluez. So I tried building bluez 4.51 (source can be found here
http://www.bluez.org/download/), and it builds with no problems. However, I am having problems installing because when I try to install bluez4.51 it pulls in compatible-libbluez3 are a dependency and kdebluetooth4 does not work. I attached both specs files for bluez 4.51 and kdebluetooth4. I appreciate any help.
Thanks,
runx2
Bluez4.51
%define name bluez
%define version 4.51
%define release %mkrel 1
%define major 1
%define libname %mklibname %name %major
%define libnamedev %mklibname %name %major -d
Summary: Official Linux Bluetooth protocol stack
Name: %name
Version: %version
Release: %release
License: GPLv2+
Group: Communications
URL: http://bluez.sourceforge.net/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %_tmppath/%name-%version-buildroot
Packager: Runx2
Distribution: PCLinuxOS
BuildRequires: gcc
BuildRequires: libdbus-1_3
BuildRequires: glibc-devel
BuildRequires: libusb-devel
BuildRequires: flex
BuildRequires: bison
BuildRequires: librsvg2_2-devel
%description
These are the official Bluetooth communication libraries for Linux.
%package -n %libname
Summary: Official Linux Bluetooth protocol stack
Group: System/Libraries
%description -n %libname
These are the official Bluetooth communication libraries for Linux.
%package -n %libnamedev
Summary: Headers for developing programs that will use %name
Group: Development/C++
Obsoletes: %name-hciemu < %{version}
Obsoletes: %name-pin < %{version}
Obsoletes: %name-utils < %{version}
Obsoletes: %name-utils-alsa < %{version}
Obsoletes: %name-utils-cups < %{version}
Obsoletes: %name-utils-gstreamer < %{version}
Obsoletes: compatible-libbluez3 < %{version}
Obsoletes: lib%name2
Obsoletes: lib%name-devel
Obsoletes: %name < %{version}
Requires: %{libname} = %{version}
Requires: %name >= 4.51
Provides: lib%{name}-devel = %{version}
Provides: %{name}-devel = %{version}
Provides: %name = %{version}
%description -n %libnamedev
This package contains the headers that programmers will need to develop
applications which will use libraries from %{name}.
%prep
%setup -q
%build
./configure --prefix=%{_prefix}
%make
%install
%makeinstall_std
%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig
%clean
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_bindir}/ciptool
%{_bindir}/hcitool
%{_bindir}/l2ping
%{_bindir}/rfcomm
%{_bindir}/sdptool
/usr/etc/alsa/bluetooth.conf
/usr/etc/bluetooth/main.conf
/usr/etc/bluetooth/rfcomm.conf
/usr/etc/dbus-1/system.d/bluetooth.conf
/usr/etc/udev/rules.d/97-bluetooth.rules
%{_includedir}/bluetooth/*
%{_sbindir}/bluetoothd
%{_sbindir}/hciattach
%{_sbindir}/hciconfig
%{_mandir}/man1/ciptool.1.bz2
%{_mandir}/man1/hcitool.1.bz2
%{_mandir}/man1/rfcomm.1.bz2
%{_mandir}/man1/sdptool.1.bz2
%{_mandir}/man8/bluetoothd.8.bz2
%{_mandir}/man8/hciattach.8.bz2
%{_mandir}/man8/hciconfig.8.bz2
%{_mandir}/man8/l2ping.8.bz2
%files -n %libname
%defattr(-,root,root)
%{_libdir}/libbluetooth.*
%{_libdir}/alsa-lib/*
%{_libdir}/pkgconfig/bluez.pc
%files -n %libnamedev
%defattr(-,root,root)
%{_libdir}/libbluetooth.*
%{_libdir}/alsa-lib/*
%{_libdir}/pkgconfig/bluez.pc
%changelog
* Tue Sep 02 2009 runx2 <ajmcnally_at_cox_dot_net> 4.51-1mypclinuxos
- update to 4.51 otherwise kbluetooth4 does not workon KDE4
* Thu Apr 30 2009 pcserver <pcserver@hushmail.com> 4.34-6pclos2009
- try to back down to 3.36
* Thu Apr 23 2009 pcserver <pcserver@hushmail.com> 4.34-5pclos2009
- obsolete bluetooth-alsa
* Thu Apr 23 2009 pcserver <pcserver@hushmail.com> 4.34-4pclos2009
- don't obsolete libbluez2
* Wed Apr 22 2009 pcserver <pcserver@hushmail.com> 4.34-3pclos2007
- make sure bluz package gets installed as it has the init functions
* Thu Apr 17 2009 pcserver <pcserver@hushmail.com> 4.34-2pclos2007
- fix dbus file
* Tue Apr 01 2009 slick50 <lxgator@gmail.com> 4.34-1pclos2007
- New version 4.34
* Sun Aug 24 2008 Neverstopdreaming <neverstopdreaming@gmail.com> 3.36-1pclos2007
- New version 3.36
* Tue Feb 12 2008 Neverstopdreaming <neverstopdreaming@gmail.com> 3.26-1
- 3.26
* Sat Feb 02 2008 Neverstopdreaming <neverstopdreaming@gmail.com> 3.25-1
- 3.25
* Tue Oct 02 2007 Neverstopdreaming <neverstopdreaming@gmail.com> 3.19-1
- 3.19
* Tue May 01 2007 Torbjorn Turpeinen <tobbe@nyvalls.se> 3.9-1
- 3.9
* Tue May 01 2007 Texstar <texstar@gmail.com> 3.7-1pclos2007
- 3.7
* Tue Oct 31 2006 Texstar <texstar@houston.rr.com> 3.4-3pclos2007
- Build for PCLinuxOS 2007kdebluetooth4-0.3
%define name kdebluetooth4
%define oname kbluetooth4
%define summary Kdebluetooth4 is the bluetooth framework for KDE4
%define version 0.3
%define release %mkrel 1
Summary: %summary
Name: %name
Version: %version
Release: %release
License: GPL v2 or later
Group: Graphical desktop/KDE4
URL: http://sourceforge.net/projects/kde-bluetooth/files/
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %_tmppath/%name-%version-buildroot
Packager: Runx2
Distribution: PCLinuxOS
BuildRequires: kdebase4-workspace-devel
BuildRequires: kdebase4-runtime-devel
BuildRequires: libx11_6-devel
BuildRequires: cmake
BuildRequires: gcc
Requires: kdebase4-workspace
Requires: kdebase4-runtime
Requires: libx11_6
Requires: bluez >= 4.51
Requires: obex-data-server
%description
kdebluetooth4 offers the following:
* Trayicon to manage all functions
* Passkey and Authorization Agent to handle requests from remote devices
* Bluetooth Adapter configuration
* Bluetooth Device-Manager
* Bluetooth Device Wizard, to add new Devices
* KBlueLock, to lock your screen, when your mobile phone is out of scope
* Send Files to remote devices (obex-data-server)
%prep
%setup -q
%build
%cmake_kde4
%make
%install
rm -rf %buildroot
%makeinstall_std -C build
#Create .desktop file for Device manager
#%__mkdir_p %{buildroot}%{_datadir}/applications/kde4
#%__cat > %{buildroot}%{_datadir}/applications/kde4/%{name}-devicemanager.desktop << EOF
#[Desktop Entry]
#Name=Kbluetooth4-DeviceManager
#Exec=kbluetooth4-devicemanager
#Icon=kbluetooth4
#Type=Application
#Terminal=false
#Categories=Qt;KDE;Network;FileTransfer;
#Comment=Kdebluetooth - KDE4 Bluetooth DeviceManager
#X-DBUS-StartupType=Unique
#X-KDE-StartupNotify=false
#Create .desktop file for Device manager
#%__mkdir_p %{buildroot}%{_datadir}/applications/kde4
#%__cat > %{buildroot}%{_datadir}/applications/kde4/%{name}-inputwizard.desktop << EOF
#[Desktop Entry]
#Name=Kbluetooth4-InputWizard
#Exec=kbluetooth4-inputwizard
#Icon=kbluetooth4
#Type=Application
#Terminal=false
#Categories=Qt;KDE;Network;FileTransfer;
#Comment=Kdebluetooth - KDE4 Bluetooth InputWizard
#X-DBUS-StartupType=Unique
#X-KDE-StartupNotify=false
desktop-file-install \
--vendor="" \
--add-category="X-MandrivaLinux-Internet-FileTransfer" \
--dir $RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
$RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
#$RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}-devicemanager.desktop
#$RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}-inputwizard.desktop
%clean
rm -rf %buildroot
%post
%{update_menus}
%postun
%{clean_menus}
%files
%defattr(-, root, root)
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc TODO
%{_bindir}/%{oname}
%{_bindir}/%{oname}-devicemanager
%{_bindir}/%{oname}-inputwizard
%{_datadir}/applications/kde4/%{name}.desktop
#%{_datadir}/applications/kde4/%{name}-devicemanager.desktop
#%{_datadir}/applications/kde4/%{name}-inputwizard.desktop
%{_iconsdir}/hicolor/128x128/apps/%{oname}-flashing.png
%{_iconsdir}/hicolor/128x128/apps/%{oname}.png
%{_iconsdir}/hicolor/16x16/apps/%{oname}.png
%{_iconsdir}/hicolor/22x22/apps/%{oname}.png
%{_iconsdir}/hicolor/32x32/apps/%{oname}.png
%{_iconsdir}/hicolor/48x48/apps/%{oname}.png
%{_iconsdir}/hicolor/64x64/apps/%{oname}.png
%changelog
* Mon Aug 31 2009 runx2 <ajmcnally_at_cox_dot_net> 0.3-1mypclinuxos
- first build