3 # _without_dist_kernel without kernel from distribution
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 Source0: http://www.strusel007.de/linux/bttv/%{name}-%{version}.tar.gz
18 Patch0: %{name}-Makefile.patch
19 URL: http://www.strusel007.de/linux/bttv/
20 %{!?_without_dist_kernel:BuildPrereq: kernel-source}
21 ExclusiveArch: %{ix86}
24 BuildRequires: i2c-devel
25 BuildConflicts: kernel-source < 2.2.0
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Kernel modules which add support for TV cards based on BrookTree BT
33 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i
36 %package -n kernel%{smpstr}-misc-bttv
37 Summary: Kernel modules for BrookTree TV tuner
38 Summary(pl): Modu³y j±dra do obs³ugi tunerów TV BrookTree
40 Release: %{release}@%{_kernel_ver_str}
41 PreReq: modutils >= 2.4.6-4
42 %{!?_without_dist_kernel:Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}}
43 %{!?_without_dist_kernel:Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp}}
44 Requires: %{name} = %{version}
47 %description -n kernel%{smpstr}-misc-bttv
48 Kernel modules which add support for TV cards based on BrookTree BT
51 %description -n kernel%{smpstr}-misc-bttv -l pl
52 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i
56 Summary: Header files for bttv
57 Summary(pl): Pliki nag³ówkowe bttv
61 Header files for bttv.
63 %description devel -l pl
64 Pliki nag³ówkowe bttv.
71 %{__make} EXTRA_CFLAGS="%{rpmcflags}"
74 rm -rf $RPM_BUILD_ROOT
76 %{__make} -C driver install DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %files -n kernel%{smpstr}-misc-bttv
88 %defattr(644,root,root,755)
92 %defattr(644,root,root,755)
93 %doc CARDLIST Changes Insmod-options README* Sound-FAQ Specs Cards
96 %defattr(644,root,root,755)
97 #/usr/src/linux/drivers/char/*