]> git.pld-linux.org Git - packages/bttv.git/blob - bttv.spec
95fe7a150ba9087fcbb6fbbc864c807da5e9e953
[packages/bttv.git] / bttv.spec
1
2 # conditional build
3 # _without_dist_kernel          without kernel from distribution
4
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}
9
10 Summary:        BrookTree TV tuner driver
11 Summary(pl):    Sterownik dla kart TV na chipsecie BrookTree
12 Name:           bttv
13 Version:        0.7.87
14 Release:        1
15 License:        GPL
16 Group:          Base/Kernel
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}
22 Requires:       i2c
23 PreReq:         modutils
24 BuildRequires:  i2c-devel
25 BuildConflicts: kernel-source < 2.2.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Kernel modules which add support for TV cards based on BrookTree BT
30 848 and 878 chips.
31
32 %description -l pl
33 Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i
34 878.
35
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
39 Group:          Base/Kernel
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}
45 Obsoletes:      bttv
46
47 %description -n kernel%{smpstr}-misc-bttv
48 Kernel modules which add support for TV cards based on BrookTree BT
49 848 and 878 chips.
50
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
53 878.
54
55 %package devel
56 Summary:        Header files for bttv
57 Summary(pl):    Pliki nag³ówkowe bttv
58 Group:          Development
59
60 %description devel
61 Header files for bttv.
62
63 %description devel -l pl
64 Pliki nag³ówkowe bttv.
65
66 %prep
67 %setup  -q
68 %patch0 -p1
69
70 %build
71 %{__make} EXTRA_CFLAGS="%{rpmcflags}"
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} -C driver install DESTDIR=$RPM_BUILD_ROOT
77
78 %post
79 /sbin/depmod -a
80
81 %postun
82 /sbin/depmod -a
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files -n kernel%{smpstr}-misc-bttv
88 %defattr(644,root,root,755)
89 /lib/modules/*/misc/*
90
91 %files
92 %defattr(644,root,root,755)
93 %doc CARDLIST Changes Insmod-options README* Sound-FAQ Specs Cards
94
95 %files devel
96 %defattr(644,root,root,755)
97 #/usr/src/linux/drivers/char/*
This page took 0.058402 seconds and 2 git commands to generate.