packages: bluez/bluez.spec, bluez/bluez-wacom-mode-2.patch (NEW) Update to ...

matkor matkor at pld-linux.org
Fri Jul 31 08:56:07 CEST 2009


Author: matkor                       Date: Fri Jul 31 06:56:07 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
Update to 4.45-1. wacom patches added. (all by Przemys³aw Firszt).

---- Files affected:
packages/bluez:
   bluez.spec (1.29 -> 1.30) , bluez-wacom-mode-2.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/bluez/bluez.spec
diff -u packages/bluez/bluez.spec:1.29 packages/bluez/bluez.spec:1.30
--- packages/bluez/bluez.spec:1.29	Sat Jul 18 12:11:29 2009
+++ packages/bluez/bluez.spec	Fri Jul 31 08:56:01 2009
@@ -2,19 +2,19 @@
 Summary:	Bluetooth utilities
 Summary(pl.UTF-8):	Narzędzia Bluetooth
 Name:		bluez
-Version:	4.42
+Version:	4.45
 Release:	1
 License:	GPL v2+
 Group:		Applications/System
 #Source0Download: http://www.bluez.org/download.html
 Source0:	http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
-# Source0-md5:	d24dfd3ca42847123e29f58b29af6948
+# Source0-md5:	fb1a02a8008326eabe383dc6fb01b05d
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Source3:	%{name}-udev.rules
 Source4:	%{name}-udev.script
 Patch0:		%{name}-etc_dir.patch
-Patch1:		%{name}-udev-path.patch
+Patch2:		%{name}-wacom-mode-2.patch
 URL:		http://www.bluez.org/
 BuildRequires:	alsa-lib-devel >= 1.0.10-1
 BuildRequires:	autoconf >= 2.50
@@ -29,6 +29,7 @@
 BuildRequires:	libtool
 BuildRequires:	libusb-compat-devel
 BuildRequires:	pkgconfig >= 1:0.9.0
+BuildRequires:	udev-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
 Requires:	rc-scripts
@@ -168,7 +169,7 @@
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -194,10 +195,11 @@
 	--enable-netlink \
 	--enable-network \
 	--enable-pand \
-	--enable-pcmciarules \
+	--enable-pcmcia \
 	--enable-serial \
 	--enable-tools \
-	--enable-usb
+	--enable-usb \
+	--enable-udevrules 
 
 %{__make} \
 	cupsdir=%{cupsdir} \
@@ -220,7 +222,7 @@
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/bluetooth.rules
 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
@@ -261,9 +263,10 @@
 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
 %attr(755,root,root) %{udevdir}/bluetooth.sh
 %attr(755,root,root) %{udevdir}/bluetooth_serial
-%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
-%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-hid2hci.rules
-%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-serial.rules
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth.rules
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/97-bluetooth.rules
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/97-bluetooth-hid2hci.rules
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/97-bluetooth-serial.rules
 %{_mandir}/man[18]/*
 
 %files -n alsa-plugins-bluetooth
@@ -303,6 +306,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2009/07/31 06:56:01  matkor
+Update to 4.45-1. wacom patches added. (all by Przemys³aw Firszt).
+
 Revision 1.29  2009/07/18 10:11:29  charles
 - removed BR openobex-devel (not needed)
 

================================================================
Index: packages/bluez/bluez-wacom-mode-2.patch
diff -u /dev/null packages/bluez/bluez-wacom-mode-2.patch:1.1
--- /dev/null	Fri Jul 31 08:56:07 2009
+++ packages/bluez/bluez-wacom-mode-2.patch	Fri Jul 31 08:56:01 2009
@@ -0,0 +1,23 @@
+--- a/input/device.c
++++ b/input/device.c
+@@ -658,6 +658,19 @@ static int hidp_add_connection(const struct input_device *idev,
+ 		err = write(sk, buf, sizeof(buf));
+ 	}
+ 
++	if (req->vendor == 0x056a && req->product == 0x81) {
++		unsigned char buf[3];
++		int sk = g_io_channel_unix_get_fd(iconn->ctrl_io);
++
++		buf[0] = 0x53; /* HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE */
++		buf[1] = 0x03; buf[2] = 0x00;
++		write(sk, buf, sizeof(buf));
++
++		buf[0] = 0x53; /* HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE */
++		/* 0x06 - high reporting speed, 0x05 - low speed */
++		buf[1] = 0x05; buf[2] = 0x00;
++		write(sk, buf, sizeof(buf));
++	}
+ 	err = ioctl_connadd(req);
+ 
+ cleanup:
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bluez/bluez.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list