%define module ivtv %define version 0.2.0 %define subversion rc3h Summary: An iTVC15/16 and CX23415/16 driver Name: %{module} Version: %{version} Release: %{subversion}_1mdk License: GPL Group: System/Kernel and hardware Requires: bash Requires: perl-Video-ivtv, perl-Video-Frequencies Source0: http://prdownloads.sourceforge.net/ivtv/%{module}-%{version}-%{subversion}.tar.bz2 Patch0: ivtv-0.2.0-rc3d-Makefile2.6.patch.bz2 Patch2: ivtv-0.2.0-rc3d-utils_Makefile.patch.bz2 URL: http://ivtv.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/ BuildRequires: kernel-source %description The primary goal of the IvyTV Project is to create a kernel driver for the iTVC15 familiy of MPEG codecs. The iTVC15 family includes the iTVC15 (CX24315) and iTVC16 (CX24316). These chips are commonly found on Hauppauge's WinTV PVR-250 and PVR-350 TV capture cards. %package -n dkms-%{name} Summary: Kernel drivers for the iTVC15/16 and CX23415/16 driver Group: System/Kernel and hardware Requires: dkms >= 1.00 #BuildArch: noarch %description -n dkms-%{name} The primary goal of the IvyTV Project is to create a kernel driver for the iTVC15 familiy of MPEG codecs. The iTVC15 family includes the iTVC15 (CX24315) and iTVC16 (CX24316). These chips are commonly found on Hauppauge's WinTV PVR-250 and PVR-350 TV capture cards. This package provides dkms kernel drivers for this hardware %prep %setup -n %{module}-%{version}-%{subversion} -q %patch0 -p1 %patch2 -p1 %build pwd cd utils %make %install if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT fi mkdir -p $RPM_BUILD_ROOT/usr/src/%{module}-%{version}-%{release} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir}/ivtv cp -rf driver/* $RPM_BUILD_ROOT/usr/src/%{module}-%{version}-%{release} cp -f utils/videodev2.h $RPM_BUILD_ROOT/usr/src/%{module}-%{version}-%{release} cat > %{buildroot}/usr/src/%{module}-%{version}-%{release}/dkms.conf <<EOF PACKAGE_VERSION="%{version}-%{release}" # Items below here should not have to change with each driver version PACKAGE_NAME="%{module}" MAKE[0]="make" CLEAN="make clean" BUILT_MODULE_NAME[0]="ivtv" BUILT_MODULE_NAME[1]="ivtv-fb" BUILT_MODULE_NAME[2]="saa7115" BUILT_MODULE_NAME[3]="saa7127" BUILT_MODULE_NAME[4]="tveeprom" BUILT_MODULE_NAME[5]="msp3400" DEST_MODULE_LOCATION[0]="/kernel/3rdparty/ivtv" DEST_MODULE_LOCATION[1]="/kernel/3rdparty/ivtv" DEST_MODULE_LOCATION[2]="/kernel/3rdparty/ivtv" DEST_MODULE_LOCATION[3]="/kernel/3rdparty/ivtv" DEST_MODULE_LOCATION[4]="/kernel/3rdparty/ivtv" DEST_MODULE_LOCATION[5]="/kernel/3rdparty/ivtv" AUTOINSTALL=yes EOF install -m 755 -p utils/test_ioctl %{buildroot}%{_bindir} install -m 755 -p utils/ivtvfbctl %{buildroot}%{_bindir} install -m 755 -p utils/ivtvplay %{buildroot}%{_bindir} install -m 755 -p utils/mpegindex %{buildroot}%{_bindir} install -m 755 -p utils/*.pl %{buildroot}%{_libdir}/ivtv/ %clean if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT fi %files %defattr(-,root,root,-) %doc doc/* %doc utils/README* %doc utils/*.conf %doc utils/lircrc %{_libdir}/ivtv %{_bindir}/* %files -n dkms-%{name} %defattr(-,root,root,-) /usr/src/%{module}-%{version}-%{release} %post -n dkms-%{name} dkms add -m %{module} -v %{version}-%{release} --rpm_safe_upgrade dkms build -m %{module} -v %{version}-%{release} --rpm_safe_upgrade dkms install -m %{module} -v %{version}-%{release} --rpm_safe_upgrade %preun -n dkms-%{name} dkms remove -m %{module} -v %{version}-%{release} --rpm_safe_upgrade --all %changelog * Fri Mar 11 2005 Stefan van der Eijk <stefan@eijk.nu> 0.2.0-rc3h_1mdk - New release 0.2.0-rc3h * Mon Feb 21 2005 Stefan van der Eijk <stefan@eijk.nu> 0.2.0-rc3g_1mdk - New release 0.2.0-rc3g * Wed Feb 02 2005 Stefan van der Eijk <stefan@mandrakesoft.com> 0.2.0-rc3f_1mdk - New release 0.2.0-rc3f * Mon Jan 24 2005 Stefan van der Eijk <stefan@mandrakesoft.com> 0.2.0-rc3e_1mdk - New release 0.2.0-rc3e - drop patch1 * Tue Jan 11 2005 Stefan van der Eijk <stefan@mandrake.org> 0.2.0-rc3d_2mdk - dkms naming * Mon Jan 10 2005 Stefan van der Eijk <stefan@mandrake.org> 0.2.0-rc3d_1mdk - 0.2.0-rc3d * Sat Apr 11 2004 Gary Lerhaupt <gary_lerhaupt@dell.com> - Initial DKMS-enabled ivtv RPM * Wed Jan 14 2004 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to 0.1.9. * Wed Dec 31 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Updated to 0.1.7. * Mon Dec 29 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Updated to official release 0.1.6. * Mon Dec 15 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Updated to Robert Kulagowski's patched version containing o Jens Axboe's 1125A patches o Chris Pinkham's M179 patch o Anduin's close_stream patch * Wed Oct 22 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Removed firmware due to unknown licensing. - Removed ivtv-fb.o due to unresolved depmod issues. - Added patch for building on gcc < 3. * Mon Oct 6 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to decoder_alpha 20031004. - Remove i2c patch (applied upstream). Only -DNEW_I2C patch remains. - Added missing include to videodev2.h * Tue Sep 30 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to decoder_alpha 20030929. * Wed Aug 20 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update rom image (reported by "Shad L. Lords"). * Tue Aug 19 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to cvs 20030813. * Thu Jul 17 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to cvs 20030717. * Thu Jul 7 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to cvs 20030707. * Sun Jun 22 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Update to cvs 20030622. * Mon Jun 16 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> - Initial build.