]> git.pld-linux.org Git - packages/btsco.git/blobdiff - btsco.spec
- rel 12
[packages/btsco.git] / btsco.spec
index a2d14a64ce61205fda6bc307a16491beeabe63fd..2fc660bf40f12d17380a2699479e4faefc228020 100644 (file)
@@ -3,12 +3,11 @@
 %bcond_without dist_kernel     # without kernel from distribution
 %bcond_without kernel          # don't build kernel modules
 %bcond_without userspace       # don't build userspace utilities
-%bcond_without smp             # don't build SMP module
 %bcond_with    verbose         # verbose build (V=1)
 #
-%define        rel     1
+%define                rel     12
 Summary:       Bluetooth-alsa Project
-Summary(pl):   Projekt Bluetooth-alsa
+Summary(pl.UTF-8):     Projekt Bluetooth-alsa
 Name:          btsco
 Version:       0.5
 Release:       %{rel}
@@ -17,9 +16,10 @@ Group:               Applications/Sound
 Source0:       http://dl.sourceforge.net/bluetooth-alsa/%{name}-%{version}.tgz
 # Source0-md5: d9fdd63a9e22ba839a41c8a9b89c2dda
 Patch0:                %{name}-readme-pl.diff
+Patch1:                %{name}-kernel.patch
 URL:           http://sourceforge.net/projects/bluetooth-alsa/
 %if %{with kernel}
-%{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build}
+%{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
 %endif
 %if %{with userspace}
 BuildRequires: alsa-driver-devel >= 1.0.9-1
@@ -29,7 +29,7 @@ BuildRequires:        automake
 BuildRequires: bluez-libs-devel >= 2.21-1
 BuildRequires: libao-devel >= 0.8.6-1
 BuildRequires: libtool
-BuildRequires: rpmbuild(macros) >= 1.330
+BuildRequires: rpmbuild(macros) >= 1.379
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,51 +39,36 @@ do this currently by making an alsa kernel driver which uses bluez to
 reach the headset. It works well enough now to get voice-quality audio
 to and from most headsets.
 
-%description -l pl
-Dziêki temu oprogramowaniu mo¿na u¿ywaæ zestawów s³uchawkowych
-Bluetooth Headset z Linuksem. Osi±gniêto to dziêki zbudowaniu alsowego
-modu³u do j±dra, który to u¿ywa systemu bluez do komunikacji z takim
-zestawem. Wspó³pracuje z wiêkszo¶ci± zestawów, ograniczeniem w
-komunikacji jest czêsto urz±dzenie USB, które to mo¿e mieæ
-nieobs³ugiwane czê¶ciowo protoko³y, wskazówka: hciconfig hciXXX
-revision. W skrajnym wypadku mo¿na próbowaæ u¿yæ innego urz±dzenia
+%description -l pl.UTF-8
+Dzięki temu oprogramowaniu można używać zestawów słuchawkowych
+Bluetooth Headset z Linuksem. Osiągnięto to dzięki zbudowaniu alsowego
+modułu do jądra, który to używa systemu bluez do komunikacji z takim
+zestawem. Współpracuje z większością zestawów, ograniczeniem w
+komunikacji jest często urządzenie USB, które to może mieć
+nieobsługiwane częściowo protokoły, wskazówka: hciconfig hciXXX
+revision. W skrajnym wypadku można próbować użyć innego urządzenia
 USB.
 
 %package -n kernel%{_alt_kernel}-char-btsco
 Summary:       Linux ALSA kernel driver for Bluetooth Headset
-Summary(pl):   Sterownik ALSA do j±dra Linuksa dla Bluetooth Headset
+Summary(pl.UTF-8):     Sterownik ALSA do jądra Linuksa dla Bluetooth Headset
 Release:       %{rel}@%{_kernel_ver_str}
 Group:         Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:%requires_releq_kernel}
 Requires(post,postun): /sbin/depmod
 Requires:      kernel%{_alt_kernel}-sound-alsa
 
 %description -n kernel%{_alt_kernel}-char-btsco
 Linux ALSA kernel driver for Bluetooth Headset named snd_bt_sco.
 
-%description -n kernel%{_alt_kernel}-char-btsco -l pl
-Sterownik ALSA do j±dra Linuksa dla Bluetooth Headset o nazwie
-snd_bt_sco.
-
-%package -n kernel%{_alt_kernel}-smp-char-btsco
-Summary:       Linux ALSA kernel driver for Bluetooth Headset (SMP)
-Summary(pl):   Sterownik ALSA do j±dra Linuksa dla Bluetooth Headset (SMP)
-Release:       %{rel}@%{_kernel_ver_str}
-Group:         Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_smp}
-Requires(post,postun): /sbin/depmod
-Requires:      kernel%{_alt_kernel}-smp-sound-alsa
-
-%description -n kernel%{_alt_kernel}-smp-char-btsco
-Linux ALSA kernel (SMP) driver for Bluetooth Headset named snd_bt_sco.
-
-%description -n kernel%{_alt_kernel}-smp-char-btsco -l pl
-Sterownik ALSA do j±dra Linuksa SMP dla Bluetooth Headset o nazwie
+%description -n kernel%{_alt_kernel}-char-btsco -l pl.UTF-8
+Sterownik ALSA do jądra Linuksa dla Bluetooth Headset o nazwie
 snd_bt_sco.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %if %{with userspace}
@@ -92,7 +77,6 @@ snd_bt_sco.
 %{__autoheader}
 %{__automake}
 %configure
-
 %{__make}
 %endif
 
@@ -128,16 +112,6 @@ echo "to %{_sysconfdir}/modprobe.conf"
 %postun -n kernel%{_alt_kernel}-char-btsco
 %depmod %{_kernel_ver}
 
-%post -n kernel%{_alt_kernel}-smp-char-btsco
-%depmod %{_kernel_ver}smp
-echo "after install this package, remember add lines like this:"
-echo "alias snd-card-1 snd-bt-sco"
-echo "alias sound-slot-1 snd-bt-sco"
-echo "to %{_sysconfdir}/modprobe.conf"
-
-%postun -n kernel%{_alt_kernel}-smp-char-btsco
-%depmod %{_kernel_ver}smp
-
 %if %{with userspace}
 %files
 %defattr(644,root,root,755)
@@ -150,9 +124,3 @@ echo "to %{_sysconfdir}/modprobe.conf"
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/snd-bt-sco.ko.gz
 %endif
-
-%if %{with smp}
-%files -n kernel%{_alt_kernel}-smp-char-btsco
-%defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/misc/snd-bt-sco.ko.gz
-%endif
This page took 0.168376 seconds and 4 git commands to generate.