Dave Airlie fac825
%define nvfw nouveau-firmware-1
Dave Airlie fac825
David Woodhouse aef32f
Name:		linux-firmware
David Woodhouse aef32f
Version:	20100106
Dave Airlie bcc3b3
Release:	4%{?dist}
David Woodhouse aef32f
Summary:	Firmware files used by the Linux kernel
David Woodhouse aef32f
David Woodhouse aef32f
Group:		System Environment/Kernel
David Woodhouse aef32f
License:	GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
David Woodhouse aef32f
URL:		http://www.kernel.org/
David Woodhouse aef32f
Source0:	ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/%{name}-%{version}.tar.bz2
Dave Airlie fac825
Source1:	%{nvfw}.tar.bz2
Dave Airlie bcc3b3
Source2:	radeon-firmware-1.tar.bz2
David Woodhouse aef32f
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
David Woodhouse aef32f
BuildArch:	noarch
Dave Airlie ec903f
Provides:	kernel-firmware = %{version} xorg-x11-drv-ati-firmware = 7.0
Dave Airlie ec903f
Obsoletes:	kernel-firmware < %{version} xorg-x11-drv-ati-firmware < 6.13.0-0.22
David Woodhouse aef32f
Requires:	udev
David Woodhouse aef32f
David Woodhouse aef32f
%description
David Woodhouse aef32f
Kernel-firmware includes firmware files required for some devices to
David Woodhouse aef32f
operate.
David Woodhouse aef32f
David Woodhouse aef32f
%prep
Dave Airlie bcc3b3
%setup -q -n linux-firmware-%{version} -b2
Dave Airlie bcc3b3
tar -jxvf %{SOURCE2}
David Woodhouse aef32f
David Woodhouse aef32f
David Woodhouse aef32f
%build
David Woodhouse aef32f
# Remove firmware shipped in separate packages already
David Woodhouse aef32f
# Perhaps these should be built as subpackages of linux-firmware?
David Woodhouse aef32f
rm ql2???_fw.bin LICENCE.qla2xxx
David Woodhouse aef32f
rm iwlwifi-*.ucode LICENCE.iwlwifi_firmware
David Woodhouse aef32f
rm -rf ess korg sb16 yamaha
David Woodhouse aef32f
# We have _some_ ralink firmware in separate packages already.
David Woodhouse aef32f
rm rt73.bin rt2561.bin rt2561s.bin rt2661.bin
David Woodhouse aef32f
# And _some_ conexant firmware.
David Woodhouse aef32f
rm v4l-cx23418-apu.fw v4l-cx23418-cpu.fw v4l-cx23418-dig.fw v4l-cx25840.fw
David Woodhouse aef32f
David Woodhouse aef32f
# Remove source files we don't need to install
David Woodhouse aef32f
rm -f usbdux/*dux */*.asm
David Woodhouse aef32f
David Woodhouse aef32f
%install
David Woodhouse aef32f
rm -rf $RPM_BUILD_ROOT
David Woodhouse aef32f
mkdir -p $RPM_BUILD_ROOT/lib/firmware
David Woodhouse aef32f
cp -r * $RPM_BUILD_ROOT/lib/firmware
David Woodhouse aef32f
rm $RPM_BUILD_ROOT/lib/firmware/{WHENCE,LICENCE.*}
David Woodhouse aef32f
Dave Airlie fac825
pushd ../%{nvfw}
Dave Airlie fac825
mkdir -p $RPM_BUILD_ROOT/lib/firmware/nouveau
Dave Airlie fac825
cp -a * $RPM_BUILD_ROOT/lib/firmware/nouveau
Dave Airlie fac825
popd
Dave Airlie fac825
David Woodhouse aef32f
%clean
David Woodhouse aef32f
rm -rf $RPM_BUILD_ROOT
David Woodhouse aef32f
David Woodhouse aef32f
David Woodhouse aef32f
%files
David Woodhouse aef32f
%defattr(-,root,root,-)
Dave Airlie ec903f
%doc WHENCE LICENCE.* ../LICENSE.radeon.firmware
David Woodhouse aef32f
/lib/firmware/*
David Woodhouse aef32f
David Woodhouse aef32f
%changelog
Dave Airlie bcc3b3
* Fri Apr 09 2010 Dave Airlie <airlied@redhat.com> 20100106-4
Dave Airlie bcc3b3
- Add further radeon firmwares
Dave Airlie bcc3b3
Dave Airlie ec903f
* Wed Feb 10 2010 Dave Airlie <airlied@redhat.com> 20100106-3
Dave Airlie ec903f
- add radeon RLC firmware - submitted upstream to dwmw2 already.
Dave Airlie ec903f
Dave Airlie fac825
* Tue Feb 09 2010 Ben Skeggs <bskeggs@redhat.com> 20090106-2
Dave Airlie fac825
- Add firmware needed for nouveau to operate correctly (this is Fedora
Dave Airlie fac825
  only - do not upstream yet - we just moved it here from Fedora kernel)
Dave Airlie fac825
David Woodhouse aef32f
* Wed Jan 06 2010 David Woodhouse <David.Woodhouse@intel.com> 20090106-1
David Woodhouse aef32f
- Update
David Woodhouse aef32f
David Woodhouse aef32f
* Fri Aug 21 2009 David Woodhouse <David.Woodhouse@intel.com> 20090821-1
David Woodhouse aef32f
- Update, fix typos, remove some files which conflict with other packages.
David Woodhouse aef32f
David Woodhouse aef32f
* Thu Mar 19 2009 David Woodhouse <David.Woodhouse@intel.com> 20090319-1
David Woodhouse aef32f
- First standalone kernel-firmware package.