View | Details | Raw Unified | Return to bug 11567
Collapse All | Expand All

(-)tmp/bluez-utils.spec (-11 / +7 lines)
Lines 13-23 Link Here
13
13
14
Source0: %name-%version.tar.gz
14
Source0: %name-%version.tar.gz
15
Source1: bluetooth.init
15
Source1: bluetooth.init
16
Source2: bluetooth.mod
17
Patch0: bluez-utils-3.8-alt-hcid.conf.patch
16
Patch0: bluez-utils-3.8-alt-hcid.conf.patch
18
# patch from http://kmobiletools.org/node/228, updated for 3.9
17
# patch from http://kmobiletools.org/node/228, updated for 3.9
19
Patch1: bluez-utils-3.9-alt-pin-exec.patch
18
Patch1: bluez-utils-3.9-alt-pin-exec.patch
20
Patch2: bluez-utils-3.9-alt-suse-dbus-retry.patch
19
Patch2: bluez-utils-3.9-alt-suse-dbus-retry.patch
20
Patch3: bluez-utils-3.9-alt-udevdir.patch
21
21
22
Provides: bluez-sdp bluez-sdp-devel bluez-pan
22
Provides: bluez-sdp bluez-sdp-devel bluez-pan
23
Obsoletes: bluez-sdp bluez-sdp-devel bluez-pan
23
Obsoletes: bluez-sdp bluez-sdp-devel bluez-pan
Lines 56-64 Link Here
56
%patch0 -p1
56
%patch0 -p1
57
%patch1 -p1
57
%patch1 -p1
58
%patch2 -p2
58
%patch2 -p2
59
%patch3 -p1
59
%__subst 's|/bin/fuser|/sbin/fuser|' scripts/bluetooth_serial
60
%__subst 's|/bin/fuser|/sbin/fuser|' scripts/bluetooth_serial
60
61
61
%build
62
%build
63
%__autoreconf
62
%configure \
64
%configure \
63
	--enable-avctrl \
65
	--enable-avctrl \
64
	--enable-bccmd \
66
	--enable-bccmd \
Lines 74-85 Link Here
74
%make_build
76
%make_build
75
77
76
%install
78
%install
77
mkdir -p %buildroot{%_sysconfdir/{modutils.d,sysconfig},%_initdir}
79
mkdir -p %buildroot{%_sysconfdir/sysconfig,%_initdir}
78
%makeinstall \
80
%make DESTDIR=%buildroot install
79
	initdir=%buildroot%_initdir \
80
	localstatedir=%buildroot/var \
81
	confdir=%buildroot%_sysconfdir/bluetooth \
82
	pcmciadir=%buildroot%_sysconfdir/pcmcia
83
81
84
%__subst "s|^\(HIDD_ENABLE=\).*|\1false|" scripts/bluetooth.default
82
%__subst "s|^\(HIDD_ENABLE=\).*|\1false|" scripts/bluetooth.default
85
%__subst "s|^\(RFCOMM_ENABLE=\).*|\1true|" scripts/bluetooth.default
83
%__subst "s|^\(RFCOMM_ENABLE=\).*|\1true|" scripts/bluetooth.default
Lines 87-93 Link Here
87
85
88
install -m 0755 %SOURCE1 %buildroot%_sbindir/bluetoothctl
86
install -m 0755 %SOURCE1 %buildroot%_sbindir/bluetoothctl
89
ln -s $(relative %_sbindir/bluetoothctl %_initdir/bluetooth)  %buildroot%_initdir/bluetooth
87
ln -s $(relative %_sbindir/bluetoothctl %_initdir/bluetooth)  %buildroot%_initdir/bluetooth
90
install -m 0644 %SOURCE2 %buildroot%_sysconfdir/modutils.d/bluetooth
91
88
92
cp daemon/passkey-agent %buildroot%_bindir/
89
cp daemon/passkey-agent %buildroot%_bindir/
93
90
Lines 105-112 Link Here
105
%config(noreplace) %_sysconfdir/bluetooth/hcid.conf
102
%config(noreplace) %_sysconfdir/bluetooth/hcid.conf
106
%config(noreplace) %_sysconfdir/bluetooth/rfcomm.conf
103
%config(noreplace) %_sysconfdir/bluetooth/rfcomm.conf
107
%config(noreplace) %_sysconfdir/sysconfig/bluetooth
104
%config(noreplace) %_sysconfdir/sysconfig/bluetooth
108
%config(noreplace) %_sysconfdir/modutils.d/bluetooth
105
%config(noreplace) %_sysconfdir/udev/rules.d/bluetooth.rules
109
%config(noreplace) %_sysconfdir/udev/bluetooth.rules
110
%config(noreplace) %_sysconfdir/dbus-1/system.d/bluetooth.conf
106
%config(noreplace) %_sysconfdir/dbus-1/system.d/bluetooth.conf
111
%_initdir/bluetooth
107
%_initdir/bluetooth
112
%_sbindir/bluetoothctl
108
%_sbindir/bluetoothctl
Lines 129-135 Link Here
129
%_sbindir/hcid
125
%_sbindir/hcid
130
%_sbindir/hid2hci
126
%_sbindir/hid2hci
131
%_sbindir/sdpd
127
%_sbindir/sdpd
132
%_libexecdir/udev/bluetooth_serial
128
/lib/udev/bluetooth_serial
133
%_localstatedir/bluetooth/
129
%_localstatedir/bluetooth/
134
%_man1dir/ciptool.1.*
130
%_man1dir/ciptool.1.*
135
%_man1dir/dfutool.1.*
131
%_man1dir/dfutool.1.*

Return to bug 11567