]> git.pld-linux.org Git - packages/btsco.git/blobdiff - btsco.spec
- release 21
[packages/btsco.git] / btsco.spec
index 46b7e3a5c5188326e01bb501fefc0164e92d5d79..51253a60ca68ea475b54dfb638659d6e7a12d635 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     21
 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-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,60 +39,45 @@ 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-char-btsco
+%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-sound-alsa
+Requires:      kernel%{_alt_kernel}-sound-alsa
 
-%description -n kernel-char-btsco
+%description -n kernel%{_alt_kernel}-char-btsco
 Linux ALSA kernel driver for Bluetooth Headset named snd_bt_sco.
 
-%description -n kernel-char-btsco -l pl
-Sterownik ALSA do j±dra Linuksa dla Bluetooth Headset o nazwie
-snd_bt_sco.
-
-%package -n 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-smp-sound-alsa
-
-%description -n kernel-smp-char-btsco
-Linux ALSA kernel (SMP) driver for Bluetooth Headset named snd_bt_sco.
-
-%description -n 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}
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure
-
 %{__make}
 %endif
 
@@ -118,26 +103,16 @@ done
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -n kernel-char-btsco
+%post -n kernel%{_alt_kernel}-char-btsco
 %depmod %{_kernel_ver}
 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-char-btsco
+%postun -n kernel%{_alt_kernel}-char-btsco
 %depmod %{_kernel_ver}
 
-%post -n 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-smp-char-btsco
-%depmod %{_kernel_ver}smp
-
 %if %{with userspace}
 %files
 %defattr(644,root,root,755)
@@ -146,13 +121,7 @@ echo "to %{_sysconfdir}/modprobe.conf"
 %endif
 
 %if %{with kernel}
-%files -n kernel-char-btsco
+%files -n kernel%{_alt_kernel}-char-btsco
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/snd-bt-sco.ko.gz
 %endif
-
-%if %{with smp}
-%files -n 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.11842 seconds and 4 git commands to generate.