5 %bcond_without dist_kernel # allow non-distribution kernel
7 %bcond_with verbose # verbose build (V=1)
10 %undefine with_dist_kernel
14 Summary: Toshiba Laptop Bluetooth module
15 Summary(pl.UTF-8): Moduł Bluetooth dla laptopów Toshiby
22 Source0: http://0bits.com/toshbt/%{name}-%{version}.tar.gz
23 # Source0-md5: 8e4764f6c438427b00fb9aa93abb3cd7
24 URL: http://0bits.com/
25 %if %{with kernel} && %{with dist_kernel}
26 BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2
27 BuildRequires: rpmbuild(macros) >= 1.379
29 ExclusiveArch: %{ix86} %{x8664}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Toshiba Laptop Bluetooth module.
35 %description -l pl.UTF-8
36 Moduł Bluetooth dla laptopów Toshiby.
38 %package -n kernel%{_alt_kernel}-misc-%{name}
39 Summary: Linux driver for Toshiba Laptop Bluetooth
40 Summary(pl.UTF-8): Sterownik dla Linuksa dla Bluetooth w Laptopach Toshiba
41 Release: %{rel}@%{_kernel_ver_str}
43 %{?with_dist_kernel:%requires_releq_kernel}
44 Requires: module-init-tools >= 3.2.2-2
45 Requires(post,postun): /sbin/depmod
47 %description -n kernel%{_alt_kernel}-misc-%{name}
48 This is driver for Bluetooth in Toshiba Laptops for Linux.
50 This package contains Linux module.
52 %description -n kernel%{_alt_kernel}-misc-%{name} -l pl.UTF-8
53 Sterownik dla Linuksa dla Bluetooth w Laptopach Toshiba.
55 Ten pakiet zawiera moduł jądra Linuksa.
61 %build_kernel_modules -m %{name}
64 rm -rf $RPM_BUILD_ROOT
66 %install_kernel_modules -m %{name} -d misc -n %{name} -s current
69 rm -rf $RPM_BUILD_ROOT
71 %post -n kernel%{_alt_kernel}-misc-%{name}
72 %depmod %{_kernel_ver}
74 %postun -n kernel%{_alt_kernel}-misc-%{name}
75 %depmod %{_kernel_ver}
77 %files -n kernel%{_alt_kernel}-misc-%{name}
78 %defattr(644,root,root,755)
79 /etc/modprobe.d/%{_kernel_ver}/%{name}.conf
80 /lib/modules/%{_kernel_ver}/misc/%{name}-current.ko*