%define _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2 ) %define _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g) %define smpstr %{?_with_smp:-smp} %define smp %{?_with_smp:1}%{!?_with_smp:0} Summary: BrookTree TV tuner driver Summary(pl): Sterownik dla kart TV na chipsecie BrookTree Name: bttv Version: 0.7.83 Release: 1 License: GPL Group: Base/Kernel Group(de): Grundsätzlich/Kern Group(pl): Podstawowe/Jądro Source0: http://www.strusel007.de/linux/bttv/%{name}-%{version}.tar.gz Patch0: %{name}-Makefile.patch URL: http://www.strusel007.de/linux/bttv/ BuildPrereq: kernel-source ExclusiveArch: %{ix86} Requires: kernel(i2c) Prereq: modutils BuildRequires: i2c-devel BuildConflicts: kernel-source < 2.2.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Kernel modules which add support for TV cards based on BrookTree BT 848 and 878 chips. %description -l pl Moduły jądra dodające obsługę kart TV na układach BrookTree BT 848 i 878. %package -n kernel%{smpstr}-misc-bttv Summary: Kernel modules for BrookTree TV tuner Summary(pl): Moduły jądra do obsługi tunerów TV BrookTree Group: Base/Kernel Group(de): Grundsätzlich/Kern Group(pl): Podstawowe/Jądro Release: %{_release}@%{_kernel_ver_str} Prereq: modutils >= 2.4.6-4 Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver} Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp} Requires: %{name} = %{version} Obsoletes: bttv %description -n kernel%{smpstr}-misc-bttv Kernel modules which add support for TV cards based on BrookTree BT 848 and 878 chips. %description -l pl -n kernel%{smpstr}-misc-bttv Moduły jądra dodające obsługę kart TV na układach BrookTree BT 848 i 878. %prep %setup -q %patch0 -p1 %build %{__make} CFLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT gzip -9nf CARDLIST Changes Insmod-options README* Sound-FAQ Specs %post /sbin/depmod -a %postun /sbin/depmod -a %clean rm -rf $RPM_BUILD_ROOT %files -n kernel%{smpstr}-misc-bttv %defattr(644,root,root,755) /lib/modules/*/misc/* %doc *.gz