]> git.pld-linux.org Git - SPECS.git/blob - toshbt.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / toshbt.spec
1 #TODO
2 #- udev rules
3 #
4 # Conditional build:
5 %bcond_without  dist_kernel     # allow non-distribution kernel
6 %bcond_without  kernel
7 %bcond_with     verbose         # verbose build (V=1)
8 #
9 %if !%{with kernel}
10 %undefine       with_dist_kernel
11 %endif
12
13 %define         rel     52
14 Summary:        Toshiba Laptop Bluetooth module
15 Summary(pl.UTF-8):      Moduł Bluetooth dla laptopów Toshiby
16 Name:           toshbt
17 Version:        1.0
18 Release:        %{rel}
19 Epoch:          0
20 License:        GPL
21 Group:          Base/Kernel
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
28 %endif
29 ExclusiveArch:  %{ix86} %{x8664}
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Toshiba Laptop Bluetooth module.
34
35 %description -l pl.UTF-8
36 Moduł Bluetooth dla laptopów Toshiby.
37
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}
42 Group:          Base/Kernel
43 %{?with_dist_kernel:%requires_releq_kernel}
44 Requires:       module-init-tools >= 3.2.2-2
45 Requires(post,postun):  /sbin/depmod
46
47 %description -n kernel%{_alt_kernel}-misc-%{name}
48 This is driver for Bluetooth in Toshiba Laptops for Linux.
49
50 This package contains Linux module.
51
52 %description -n kernel%{_alt_kernel}-misc-%{name} -l pl.UTF-8
53 Sterownik dla Linuksa dla Bluetooth w Laptopach Toshiba.
54
55 Ten pakiet zawiera moduł jądra Linuksa.
56
57 %prep
58 %setup -q -n %{name}
59
60 %build
61 %build_kernel_modules -m %{name}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %install_kernel_modules -m %{name} -d misc -n %{name} -s current
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post   -n kernel%{_alt_kernel}-misc-%{name}
72 %depmod %{_kernel_ver}
73
74 %postun -n kernel%{_alt_kernel}-misc-%{name}
75 %depmod %{_kernel_ver}
76
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*
This page took 0.157589 seconds and 3 git commands to generate.