Author Topic: kbluetooth4-0.3 and bluez4.51  (Read 1726 times)

mcnasty

  • Guest
kbluetooth4-0.3 and bluez4.51
« on: September 04, 2009, 07:49:48 AM »
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
Code: [Select]
%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 2007

kdebluetooth4-0.3
Code: [Select]
%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
« Last Edit: September 04, 2009, 07:51:40 AM by runx2 »

mcnasty

  • Guest
Re: kbluetooth4-0.3 and bluez4.51
« Reply #1 on: September 09, 2009, 12:37:07 PM »
Has anyone had a chance to try and package and install either one?  I curious to see if it is just me having problems?

Thanks,
runx2

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: kbluetooth4-0.3 and bluez4.51
« Reply #2 on: September 13, 2009, 01:37:58 PM »
I don't expect I would have any better luck trying to package it, what error messages did you receive?
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

mcnasty

  • Guest
Re: kbluetooth4-0.3 and bluez4.51
« Reply #3 on: September 17, 2009, 04:40:07 PM »
I just realized, I should've contacted the previous packager first :-[.  I will try that before messing around with this anymore.

runx2

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758

mcnasty

  • Guest
Re: kbluetooth4-0.3 and bluez4.51
« Reply #5 on: September 24, 2009, 05:09:37 PM »
travisn: I took a look at the srpms you linked to below.

Well, this is way over my head.  I am going to throw in the towel  :'(.  If anybody can get this working I am willing to test.

runx2


mcnasty

  • Guest
Re: kbluetooth4-0.3 and bluez4.51
« Reply #6 on: October 11, 2009, 08:03:03 PM »
Well thanks to Tex packaging bluez, I was able to package kdebluetooth4-0.3.  I was having trouble at first with this error message:
Code: [Select]
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
I did a google search and found this thread
http://freepops.diludovico.it/showthread.php?t=7864

I copied /usr/include/limits.h file to the kdebluetooth4 source and that allowed it to compile.  Below is the spec.  If someone can test it, please let me know if it works for someone else.  I have tested it and it works fine.

Code: [Select]
%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
Patch0: %{name}-add-limitsh.patch
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
Requires: glibc >= 2.10.1
Requires: libstdc++6 >= 4.4.1

%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
%patch0 -p1 -b .addlimitsh

%build
%cmake_kde4
%make

%install
rm -rf %buildroot
%makeinstall_std -C build

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

%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
%{_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 Oct 11 2009 runx2 <ajmcnally_at_cox_dot_net> 0.3-1mypclinuxos
- first build

* Mon Sep 14 2009 Nicolas Lécureuil <neoclust@mandriva.org> 1:0.4-0.1023096.1mdv2010.0
+ Revision: 439064
- New snapshot
- new snasphot

runx2
« Last Edit: October 11, 2009, 08:06:17 PM by runx2 »

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12518
Re: kbluetooth4-0.3 and bluez4.51
« Reply #7 on: October 11, 2009, 08:25:26 PM »
Install glibc-headers-devel or if your repo hasn't synced then kernel-headers-2.6.30.

Thanks to everyone who donates. You keep the servers running.

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: kbluetooth4-0.3 and bluez4.51
« Reply #8 on: October 12, 2009, 11:30:53 AM »
Hey Tex, I did notice that glibc-headers does not obsolete kernel-headers-2.6.30 and causes a installable package error in synaptic.  Was easy enough to figure it out, but just thought I'd let you know.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

mcnasty

  • Guest
Re: kbluetooth4-0.3 and bluez4.51
« Reply #9 on: October 19, 2009, 04:44:26 PM »
Thanks Tex and Joble.  I uploaded the SRPM to the contribs server.

runx2