Update to 5.5

Based on earlier work by Bastien Nocera, Lubomir Rintel, and Don Zickus.

https://bugzilla.redhat.com/show_bug.cgi?id=974145
This commit is contained in:
Kalev Lember 2013-08-10 22:21:34 +02:00
parent 3117afdf01
commit 636e2c4878
5 changed files with 1087 additions and 50 deletions

View File

@ -1,17 +1,17 @@
From 3aca31788655582f3029b3c88ad6f468c4de07a2 Mon Sep 17 00:00:00 2001 From aa73bf5039dfd2cf0a52dd6fd22501d955cc1a00 Mon Sep 17 00:00:00 2001
From: Tommy <mesilliac@gmail.com> From: Tommy <mesilliac@gmail.com>
Date: Thu, 10 Jan 2013 09:18:43 +0100 Date: Thu, 10 Jan 2013 09:18:43 +0100
Subject: [PATCH] work around Logitech diNovo Edge keyboard firmware issue Subject: [PATCH] work around Logitech diNovo Edge keyboard firmware issue
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/269851 https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/269851
--- ---
scripts/bluetooth-hid2hci.rules | 5 ++++- tools/hid2hci.rules | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-) 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/bluetooth-hid2hci.rules b/scripts/bluetooth-hid2hci.rules diff --git a/tools/hid2hci.rules b/tools/hid2hci.rules
index 0687c8a..2a571e5 100644 index db6bb03..7db4572 100644
--- a/scripts/bluetooth-hid2hci.rules --- a/tools/hid2hci.rules
+++ b/scripts/bluetooth-hid2hci.rules +++ b/tools/hid2hci.rules
@@ -11,7 +11,10 @@ ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProt @@ -11,7 +11,10 @@ ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProt
RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1" RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1"

View File

@ -1,6 +0,0 @@
#!/bin/sh
if [ ! -c /dev/input/uinput ] ; then
exec /sbin/modprobe uinput >/dev/null 2>&1
fi

View File

@ -1,24 +1,25 @@
Summary: Bluetooth utilities Summary: Bluetooth utilities
Name: bluez Name: bluez
Version: 4.101 Version: 5.5
Release: 10%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: http://www.bluez.org/ URL: http://www.bluez.org/
Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz Source0: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
Source1: bluez.gitignore Source1: bluez.gitignore
Source8: bluez-uinput.modules
# Ubuntu patches ## https://bugzilla.redhat.com/show_bug.cgi?id=874015#c0
Patch14: 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch Patch1: playstation-peripheral-pugin-v5.x.patch
## Ubuntu patches
Patch2: 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
BuildRequires: git BuildRequires: git
BuildRequires: flex BuildRequires: flex
BuildRequires: dbus-devel >= 0.90 BuildRequires: dbus-devel >= 0.90
BuildRequires: libusb-devel, glib2-devel BuildRequires: libusb-devel, glib2-devel
BuildRequires: libsndfile-devel
BuildRequires: libcap-ng-devel BuildRequires: libcap-ng-devel
BuildRequires: libical-devel
BuildRequires: readline-devel BuildRequires: readline-devel
# For cable pairing # For cable pairing
BuildRequires: systemd-devel BuildRequires: systemd-devel
@ -35,9 +36,6 @@ Requires: bluez-libs = %{version}-%{release}
Requires: systemd Requires: systemd
Requires: dbus >= 0.60 Requires: dbus >= 0.60
Requires: hwdata >= 0.215 Requires: hwdata >= 0.215
%ifnarch s390 s390x
Requires: dbus-bluez-pin-helper
%endif
Requires(preun): /bin/systemctl Requires(preun): /bin/systemctl
Requires(post): /bin/systemctl Requires(post): /bin/systemctl
@ -53,6 +51,14 @@ Utilities for use in Bluetooth applications:
- hciconfig - hciconfig
- bluetoothd - bluetoothd
- l2ping - l2ping
- rfcomm
- sdptool
- bccmd
- bluetoothctl
- btmon
- hcidump
- l2test
- rctest
- start scripts (Red Hat) - start scripts (Red Hat)
- pcmcia configuration files - pcmcia configuration files
@ -125,16 +131,17 @@ git am -p1 %{patches} < /dev/null
%build %build
libtoolize -f -c libtoolize -f -c
autoreconf -vif autoreconf -f -i
%configure --enable-cups --enable-dfutool --enable-tools --enable-bccmd --enable-hid2hci --with-ouifile=/usr/share/hwdata/oui.txt --with-systemdsystemunitdir=/lib/systemd/system --enable-wiimote %configure --enable-cups --enable-tools --enable-library \
--with-systemdsystemunitdir=/lib/systemd/system \
--with-systemduserunitdir=/lib/systemd/user
make V=1 make V=1
%install %install
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir} /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
# Remove autocrap and libtool droppings # Remove autocrap and libtool droppings
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la \ rm $RPM_BUILD_ROOT/%{_libdir}/*.la
$RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la \
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install # Remove the cups backend from libdir, and install it in /usr/lib whatever the install
if test -d ${RPM_BUILD_ROOT}/usr/lib64/cups ; then if test -d ${RPM_BUILD_ROOT}/usr/lib64/cups ; then
@ -142,20 +149,15 @@ if test -d ${RPM_BUILD_ROOT}/usr/lib64/cups ; then
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/cups rm -rf ${RPM_BUILD_ROOT}%{_libdir}/cups
fi fi
rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/bluetooth/rfcomm.conf rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules ${RPM_BUILD_ROOT}/usr/lib/udev/rules.d/*.rules
install -D -p -m0644 tools/hid2hci.rules ${RPM_BUILD_ROOT}/lib/udev/rules.d/97-hid2hci.rules
rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules ${RPM_BUILD_ROOT}/lib/udev/rules.d/*.rules
install -D -p -m0644 scripts/bluetooth-serial.rules ${RPM_BUILD_ROOT}/lib/udev/rules.d/97-bluetooth-serial.rules
install -D -p -m0644 scripts/bluetooth-hid2hci.rules ${RPM_BUILD_ROOT}/lib/udev/rules.d/97-bluetooth-hid2hci.rules
install -D -m0755 scripts/bluetooth_serial ${RPM_BUILD_ROOT}/lib/udev/bluetooth_serial
install -D -m0755 %{SOURCE8} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/ mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/
install -D -p -m0644 audio/audio.conf ${RPM_BUILD_ROOT}/etc/bluetooth/ install -d -m0755 ${RPM_BUILD_ROOT}/etc/bluetooth/
install -D -p -m0644 profiles/audio/audio.conf ${RPM_BUILD_ROOT}/etc/bluetooth/
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
@ -187,31 +189,41 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/ciptool %{_bindir}/ciptool
%{_bindir}/dfutool
%{_bindir}/hcitool %{_bindir}/hcitool
%{_bindir}/l2ping %{_bindir}/l2ping
%{_bindir}/rfcomm %{_bindir}/rfcomm
%{_bindir}/sdptool %{_bindir}/sdptool
%{_bindir}/gatttool %{_bindir}/bccmd
%{_sbindir}/* %{_bindir}/bluetoothctl
%{_bindir}/btmon
%{_bindir}/hciattach
%{_bindir}/hciconfig
%{_bindir}/hcidump
%{_bindir}/l2test
%{_bindir}/rctest
%{_mandir}/man1/ciptool.1.gz %{_mandir}/man1/ciptool.1.gz
%{_mandir}/man1/dfutool.1.gz
%{_mandir}/man1/hcitool.1.gz %{_mandir}/man1/hcitool.1.gz
%{_mandir}/man1/rfcomm.1.gz %{_mandir}/man1/rfcomm.1.gz
%{_mandir}/man1/sdptool.1.gz %{_mandir}/man1/sdptool.1.gz
%{_mandir}/man1/bccmd.1.*
%{_mandir}/man1/hciattach.1.*
%{_mandir}/man1/hciconfig.1.*
%{_mandir}/man1/hcidump.1.*
%{_mandir}/man1/l2ping.1.*
%{_mandir}/man1/rctest.1.*
%{_mandir}/man8/* %{_mandir}/man8/*
%exclude %{_mandir}/man8/hid2hci.8*
%dir %{_sysconfdir}/bluetooth/ %dir %{_sysconfdir}/bluetooth/
%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
%config(noreplace) %{_sysconfdir}/bluetooth/audio.conf %config(noreplace) %{_sysconfdir}/bluetooth/audio.conf
%config(noreplace) %{_sysconfdir}/sysconfig/modules/bluez-uinput.modules %{_libexecdir}/bluetooth/bluetoothd
%{_libexecdir}/bluetooth/obexd
%exclude %{_mandir}/man1/hid2hci.1*
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
%{_libdir}/bluetooth/ %{_libdir}/bluetooth/
/lib/udev/bluetooth_serial
/lib/udev/rules.d/97-bluetooth-serial.rules
%{_localstatedir}/lib/bluetooth %{_localstatedir}/lib/bluetooth
%{_datadir}/dbus-1/system-services/org.bluez.service %{_datadir}/dbus-1/system-services/org.bluez.service
/usr/lib/systemd/system/bluetooth.service %{_datadir}/dbus-1/services/org.bluez.obex.service
/lib/systemd/system/bluetooth.service
/lib/systemd/user/obex.service
%files libs %files libs
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -232,11 +244,14 @@ fi
%files hid2hci %files hid2hci
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/lib/udev/hid2hci /usr/lib/udev/hid2hci
%{_mandir}/man8/hid2hci.8* %{_mandir}/man1/hid2hci.1*
/lib/udev/rules.d/97-bluetooth-hid2hci.rules /lib/udev/rules.d/97-hid2hci.rules
%exclude /usr/lib/udev/rules.d/97-bluetooth-hid2hci.rules
%changelog %changelog
* Sat Aug 10 2013 Kalev Lember <kalevlember@gmail.com> - 5.5-1
- Update to 5.5, based on earlier work from
https://bugzilla.redhat.com/show_bug.cgi?id=974145
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.101-10 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.101-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
fb42cb7038c380eb0e2fa208987c96ad bluez-4.101.tar.gz b5aec2d8df0d713c577c7abf3c69dab7 bluez-5.5.tar.xz