3 # _without_dist_kernel without kernel from distribution
5 # TODO: UP/SMP (if this spec is useful for something now?)
7 %define _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
8 %define _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
9 %define smpstr %{?_with_smp:-smp}
10 %define smp %{?_with_smp:1}%{!?_with_smp:0}
12 Summary: BrookTree TV tuner driver
13 Summary(pl): Sterownik dla kart TV na chipsecie BrookTree
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
35 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i
38 %package -n kernel%{smpstr}-misc-bttv
39 Summary: Kernel modules for BrookTree TV tuner
40 Summary(pl): Modu³y j±dra do obs³ugi tunerów TV BrookTree
42 Release: %{release}@%{_kernel_ver_str}
43 PreReq: modutils >= 2.4.6-4
44 %{!?_without_dist_kernel:Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}}
45 %{!?_without_dist_kernel:Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp}}
46 Requires: %{name} = %{version}
49 %description -n kernel%{smpstr}-misc-bttv
50 Kernel modules which add support for TV cards based on BrookTree BT
53 %description -n kernel%{smpstr}-misc-bttv -l pl
54 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i
58 Summary: Header files for bttv
59 Summary(pl): Pliki nag³ówkowe bttv
63 Header files for bttv.
65 %description devel -l pl
66 Pliki nag³ówkowe bttv.
73 %{__make} EXTRA_CFLAGS="%{rpmcflags}"
76 rm -rf $RPM_BUILD_ROOT
78 %{__make} -C driver install DESTDIR=$RPM_BUILD_ROOT
81 rm -rf $RPM_BUILD_ROOT
83 %post -n kernel%{smpstr}-misc-bttv
84 /sbin/depmod -a -F /boot/System.map-%{_kernel_ver} %{_kernel_ver}
86 %postun -n kernel%{smpstr}-misc-bttv
87 /sbin/depmod -a -F /boot/System.map-%{_kernel_ver} %{_kernel_ver}
89 %files -n kernel%{smpstr}-misc-bttv
90 %defattr(644,root,root,755)
94 %defattr(644,root,root,755)
95 %doc CARDLIST Changes Insmod-options README* Sound-FAQ Specs Cards
98 #%defattr(644,root,root,755)
99 #/usr/src/linux/drivers/char/*