3 # _without_dist_kernel without kernel form ditribution
5 %define _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
6 %define _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
7 %define smpstr %{?_with_smp:-smp}
8 %define smp %{?_with_smp:1}%{!?_with_smp:0}
10 Summary: BrookTree TV tuner driver
11 Summary(pl): Sterownik dla kart TV na chipsecie BrookTree
17 Group(de): Grundsätzlich/Kern
18 Group(pl): Podstawowe/J±dro
19 Source0: http://www.strusel007.de/linux/bttv/%{name}-%{version}.tar.gz
20 Patch0: %{name}-Makefile.patch
21 URL: http://www.strusel007.de/linux/bttv/
22 %{!?_without_dist_kernel:BuildPrereq: kernel-source}
23 ExclusiveArch: %{ix86}
26 BuildRequires: i2c-devel
27 BuildConflicts: kernel-source < 2.2.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Kernel modules which add support for TV cards based on BrookTree BT 848 and 878
35 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i 878.
37 %package -n kernel%{smpstr}-misc-bttv
38 Summary: Kernel modules for BrookTree TV tuner
39 Summary(pl): Modu³y j±dra do obs³ugi tunerów TV BrookTree
41 Group(de): Grundsätzlich/Kern
42 Group(pl): Podstawowe/J±dro
43 Release: %{release}@%{_kernel_ver_str}
44 Prereq: modutils >= 2.4.6-4
45 %{!?_without_dist_kernel:Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}}
46 %{!?_without_dist_kernel:Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp}}
47 Requires: %{name} = %{version}
50 %description -n kernel%{smpstr}-misc-bttv
51 Kernel modules which add support for TV cards based on BrookTree BT 848 and 878
54 %description -l pl -n kernel%{smpstr}-misc-bttv
55 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i 878.
62 %{__make} CFLAGS="$RPM_OPT_FLAGS"
66 rm -rf $RPM_BUILD_ROOT
68 %{__make} install DESTDIR=$RPM_BUILD_ROOT
70 gzip -9nf CARDLIST Changes Insmod-options README* Sound-FAQ Specs
79 rm -rf $RPM_BUILD_ROOT
81 %files -n kernel%{smpstr}-misc-bttv
82 %defattr(644,root,root,755)