%define version_enc 2.06.039 %define version_dec 2.02.023 Summary: Firmware for the PVR 250/350/150/500 model series Name: ivtv-firmware Version: 20070217 Release: 16 Epoch: 2 License: Redistributable, no modification permitted Group: System Environment/Kernel URL: http://dl.ivtvdriver.org/ivtv/firmware/ Source0: http://dl.ivtvdriver.org/ivtv/firmware/firmware-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch Obsoletes: ivtv-firmware-audio <= 0.0.1 Provides: ivtv-firmware-audio = 0.0.1 Obsoletes: %{name}-dec < %{version_dec} Provides: %{name}-dec = %{version_dec} Obsoletes: %{name}-enc < %{version_enc} Provides: %{name}-enc = %{version_enc} %description This package contains the firmware for WinTV PVR 250/350/150/500 cards. %prep %setup -q -c %build %install rm -rf %{buildroot} mkdir -p %{buildroot}/lib/firmware mv *.fw %{buildroot}/lib/firmware/ mv v4l-cx2341x-init.mpg %{buildroot}/lib/firmware/v4l-cx2341x-init.mpg mv license-*.txt %{buildroot}/lib/firmware/ # compatibility firmware locations for dir in %{_sysconfdir}/firmware %{_libdir}/hotplug/firmware /lib/modules; do mkdir -p %{buildroot}$dir for file in v4l-cx2341x-enc.fw v4l-cx2341x-dec.fw v4l-cx25840.fw; do ln -s /lib/firmware/$file %{buildroot}$dir/ done done ln -s /lib/firmware/v4l-cx2341x-init.mpg %{buildroot}/lib/modules/v4l-cx2341x-init.mpg # for ivtv <= 0.4.0 ln -s /lib/firmware/v4l-cx2341x-enc.fw %{buildroot}/lib/modules/ivtv-fw-enc.bin ln -s /lib/firmware/v4l-cx2341x-dec.fw %{buildroot}/lib/modules/ivtv-fw-dec.bin ln -s /lib/firmware/v4l-cx25840.fw %{buildroot}/lib/modules/HcwMakoA.ROM %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) /lib/firmware/*.fw /lib/firmware/v4l-cx2341x-init.mpg /lib/firmware/license-*.txt # compatibility firmware locations %dir %{_sysconfdir}/firmware %{_sysconfdir}/firmware/*.fw %dir %{_libdir}/hotplug %dir %{_libdir}/hotplug/firmware %{_libdir}/hotplug/firmware/*.fw /lib/modules/*.fw /lib/modules/v4l-cx2341x-init.mpg # for ivtv <= 0.4.0 /lib/modules/ivtv-fw-dec.bin /lib/modules/ivtv-fw-enc.bin /lib/modules/HcwMakoA.ROM %changelog * Sat Feb 2 2008 Axel Thimm - 2:20070217-16 - Place licenses next to firmware images. * Sat Dec 22 2007 Axel Thimm - 2:20070217-15.1 - Own directories from legacy paths. * Wed Oct 24 2007 Axel Thimm - 2:20070217-15 - Add v4l-cx2341x-init.mpg as a pseudo-firmware. * Wed Feb 28 2007 Axel Thimm - 2:20070217-13 - Modify versioning to follow date. * Mon May 29 2006 Axel Thimm - Update firmwares to recommended versions. - Merge in audio firmware. * Tue Jan 4 2005 Axel Thimm - Initial build for audio firmware. * Thu Oct 28 2004 Axel Thimm - Update firmware to 1.8a. - split package into enc/dec firmwares. - version acording to origin, note that the two firmwares have different versions, so none is really suitable for the main package. * Wed Mar 3 2004 Axel Thimm - Change versioning (previous was based on Windows driver). - need to bump epoch for that :( * Sat Feb 28 2004 Axel Thimm - Update to 1.8 (22035). * Mon Dec 29 2003 Axel Thimm - Initial build.