# TODO: UP/SMP (if this spec is useful for something now?)
#
# Conditional build:
-%bcond_without dist_kernel # without kernel from distribution
+%bcond_without dist_kernel # without kernel from distribution
#
%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 smp %{?with_smp:1}%{!?with_smp:0}
Summary: BrookTree TV tuner driver
-Summary(pl): Sterownik dla kart TV na chipsecie BrookTree
+Summary(pl.UTF-8): Sterownik dla kart TV na chipsecie BrookTree
Name: bttv
Version: 0.7.87
Release: 1
# Source0-md5: 61a0e73e433173c10b6edd2e9f27d69e
Patch0: %{name}-Makefile.patch
URL: http://linux.bytesex.org/v4l2/bttv.html
-%{?with_dist_kernel:BuildPrereq: kernel-source}
-ExclusiveArch: %{ix86}
-Requires: i2c
-PreReq: modutils
BuildRequires: i2c-devel
+%{?with_dist_kernel:BuildRequires: kernel-source}
BuildRequires: rpmbuild(macros) >= 1.118
BuildConflicts: kernel-source < 2.2.0
+Requires: i2c
+Requires: modutils
+ExclusiveArch: %{ix86}
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
+%description -l pl.UTF-8
+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
+Summary(pl.UTF-8): Moduły jądra do obsługi tunerów TV BrookTree
Release: %{release}@%{_kernel_ver_str}
-PreReq: modutils >= 2.4.6-4
+Group: Base/Kernel
+Requires: %{name} = %{version}-%{release}
+Requires: modutils >= 2.4.6-4
%{?with_dist_kernel:Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}}
%{?with_dist_kernel: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 -n kernel%{smpstr}-misc-bttv -l pl
-Modu³y j±dra dodaj±ce obs³ugê kart TV na uk³adach BrookTree BT 848 i
+%description -n kernel%{smpstr}-misc-bttv -l pl.UTF-8
+Moduły jądra dodające obsługę kart TV na układach BrookTree BT 848 i
878.
%package devel
Summary: Header files for bttv
-Summary(pl): Pliki nag³ówkowe bttv
+Summary(pl.UTF-8): Pliki nagłówkowe bttv
Group: Development
%description devel
Header files for bttv.
-%description devel -l pl
-Pliki nag³ówkowe bttv.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bttv.
%prep
%setup -q
#%files devel
#%defattr(644,root,root,755)
-#/usr/src/linux/drivers/char/*
+#%{_kernelsrcdir}/drivers/char/*