summaryrefslogtreecommitdiff
path: root/bluez-kernel.spec
blob: c2f2d93b0edc70617bef84582b52cc381a1d6c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# TODO:
# - UP/SMP
# - dependencies
# - conflict with old bluez modules in kernel
Summary:	Bluetooth kernel modules
Summary(pl):	Moduły jądra Bluetooth
Name:		bluez-kernel
Version:	2.3
Release:	1
License:	GPL v2
Group:		Base/Kernel
Source0:	http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
# Source0-md5:	1193a6242a0b1f607dcdde7aaeb2095c
# for 2.4.20
Source1:	http://bluez.sourceforge.net/download/hci_usb-031803.tar.gz
# Source1-md5:	d53870ee2d3b1b309364a01a799cf87e
Patch0:		%{name}-O1.patch
URL:		http://www.bluez.org/
#BuildRequires:	kernel-source >= 2.4.20
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Bluetooth kernel modules.

%description -l pl
Moduły jądra Bluetooth.

%package -n kernel-net-bluez
Summary:	Bluetooth kernel modules
Summary(pl):	Moduły jądra Bluetooth
Group:		Base/Kernel

%description -n kernel-net-bluez
Bluetooth kernel modules.

%description -n kernel-net-bluez -l pl
Moduły jądra Bluetooth.

%prep
%setup -q
%patch0 -p1
tar xzf %{SOURCE1} -C drivers

%build
# autoconf 2.5x uses "rm -rf core", thus removing core directory
%configure2_13
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	DEPMOD=/bin/true

%clean
rm -rf $RPM_BUILD_ROOT

%files -n kernel-net-bluez
%defattr(644,root,root,755)
%doc AUTHORS README doc/modules.txt
/lib/modules/*/kernel/drivers/bluetooth
/lib/modules/*/kernel/misc/*.o*
/lib/modules/*/kernel/net/bluetooth