3 %bcond_without dist_kernel # without kernel from distribution
4 %bcond_without kernel # don't build kernel modules
5 %bcond_without userspace # don't build userspace utilities
6 %bcond_without smp # don't build SMP module
7 %bcond_with verbose # verbose build (V=1)
10 Summary: Bluetooth-alsa Project
11 Summary(pl.UTF-8): Projekt Bluetooth-alsa
16 Group: Applications/Sound
17 Source0: http://dl.sourceforge.net/bluetooth-alsa/%{name}-%{version}.tgz
18 # Source0-md5: d9fdd63a9e22ba839a41c8a9b89c2dda
19 Patch0: %{name}-readme-pl.diff
20 URL: http://sourceforge.net/projects/bluetooth-alsa/
22 %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build}
25 BuildRequires: alsa-driver-devel >= 1.0.9-1
26 BuildRequires: alsa-lib-devel >= 1.0.9-1
27 BuildRequires: autoconf
28 BuildRequires: automake
29 BuildRequires: bluez-libs-devel >= 2.21-1
30 BuildRequires: libao-devel >= 0.8.6-1
31 BuildRequires: libtool
32 BuildRequires: rpmbuild(macros) >= 1.330
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This project provides a way to use a bluetooth headset with Linux. We
38 do this currently by making an alsa kernel driver which uses bluez to
39 reach the headset. It works well enough now to get voice-quality audio
40 to and from most headsets.
42 %description -l pl.UTF-8
43 Dzięki temu oprogramowaniu można używać zestawów słuchawkowych
44 Bluetooth Headset z Linuksem. Osiągnięto to dzięki zbudowaniu alsowego
45 modułu do jądra, który to używa systemu bluez do komunikacji z takim
46 zestawem. Współpracuje z większością zestawów, ograniczeniem w
47 komunikacji jest często urządzenie USB, które to może mieć
48 nieobsługiwane częściowo protokoły, wskazówka: hciconfig hciXXX
49 revision. W skrajnym wypadku można próbować użyć innego urządzenia
52 %package -n kernel%{_alt_kernel}-char-btsco
53 Summary: Linux ALSA kernel driver for Bluetooth Headset
54 Summary(pl.UTF-8): Sterownik ALSA do jądra Linuksa dla Bluetooth Headset
55 Release: %{rel}@%{_kernel_ver_str}
57 %{?with_dist_kernel:%requires_releq_kernel_up}
58 Requires(post,postun): /sbin/depmod
59 Requires: kernel%{_alt_kernel}-sound-alsa
61 %description -n kernel%{_alt_kernel}-char-btsco
62 Linux ALSA kernel driver for Bluetooth Headset named snd_bt_sco.
64 %description -n kernel%{_alt_kernel}-char-btsco -l pl.UTF-8
65 Sterownik ALSA do jądra Linuksa dla Bluetooth Headset o nazwie
68 %package -n kernel%{_alt_kernel}-smp-char-btsco
69 Summary: Linux ALSA kernel driver for Bluetooth Headset (SMP)
70 Summary(pl.UTF-8): Sterownik ALSA do jądra Linuksa dla Bluetooth Headset (SMP)
71 Release: %{rel}@%{_kernel_ver_str}
73 %{?with_dist_kernel:%requires_releq_kernel_smp}
74 Requires(post,postun): /sbin/depmod
75 Requires: kernel%{_alt_kernel}-smp-sound-alsa
77 %description -n kernel%{_alt_kernel}-smp-char-btsco
78 Linux ALSA kernel (SMP) driver for Bluetooth Headset named snd_bt_sco.
80 %description -n kernel%{_alt_kernel}-smp-char-btsco -l pl.UTF-8
81 Sterownik ALSA do jądra Linuksa SMP dla Bluetooth Headset o nazwie
100 %build_kernel_modules -m snd-bt-sco -C kernel
104 rm -rf $RPM_BUILD_ROOT
106 %if %{with userspace}
107 install -d $RPM_BUILD_ROOT%{_bindir}
109 for file in avdtp/avtest sbc/rcplay sbc/sbcenc sbc/sbcinfo a2play btsco2 btsco ; do
110 install $file $RPM_BUILD_ROOT%{_bindir}
115 %install_kernel_modules -m kernel/snd-bt-sco -d misc
119 rm -rf $RPM_BUILD_ROOT
121 %post -n kernel%{_alt_kernel}-char-btsco
122 %depmod %{_kernel_ver}
123 echo "after install this package, remember add lines like this:"
124 echo "alias snd-card-1 snd-bt-sco"
125 echo "alias sound-slot-1 snd-bt-sco"
126 echo "to %{_sysconfdir}/modprobe.conf"
128 %postun -n kernel%{_alt_kernel}-char-btsco
129 %depmod %{_kernel_ver}
131 %post -n kernel%{_alt_kernel}-smp-char-btsco
132 %depmod %{_kernel_ver}smp
133 echo "after install this package, remember add lines like this:"
134 echo "alias snd-card-1 snd-bt-sco"
135 echo "alias sound-slot-1 snd-bt-sco"
136 echo "to %{_sysconfdir}/modprobe.conf"
138 %postun -n kernel%{_alt_kernel}-smp-char-btsco
139 %depmod %{_kernel_ver}smp
141 %if %{with userspace}
143 %defattr(644,root,root,755)
144 %doc README README.PL.txt
145 %attr(755,root,root) %{_bindir}/*
149 %files -n kernel%{_alt_kernel}-char-btsco
150 %defattr(644,root,root,755)
151 /lib/modules/%{_kernel_ver}/misc/snd-bt-sco.ko.gz
155 %files -n kernel%{_alt_kernel}-smp-char-btsco
156 %defattr(644,root,root,755)
157 /lib/modules/%{_kernel_ver}smp/misc/snd-bt-sco.ko.gz