Dave Airlie fac825
%define nvfw nouveau-firmware-1
Dave Airlie fac825
David Woodhouse aef32f
Name:		linux-firmware
David Woodhouse bd7c25
Version:	20110125
34e8bd
Release:	2%{?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 8e3d43
Source2:	radeon-ni-fw.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
Hicham HAOUARI 38eac0
Obsoletes:	ueagle-atm4-firmware < 1.0-5
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 9fc41e
%setup -q -n linux-firmware-%{version} -b1
David Woodhouse aef32f
Dave Airlie 8e3d43
tar -jxvf %{SOURCE2}
Dave Airlie 8e3d43
cd -
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 2f1f27
%doc WHENCE LICENCE.* LICENSE.*
David Woodhouse aef32f
/lib/firmware/*
David Woodhouse aef32f
David Woodhouse aef32f
%changelog
34e8bd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110125-2
34e8bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
34e8bd
David Woodhouse bd7c25
* Tue Jan 25 2011 David Woodhouse <dwmw2@infradead.org> 20110125-1
David Woodhouse bd7c25
- Update to linux-firmware-20110125 (new bnx2 firmware)
David Woodhouse bd7c25
Dave Airlie 8e3d43
* Fri Jan 07 2011 Dave Airlie <airlied@redhat.com> 20101221-1
Dave Airlie 8e3d43
- rebase to upstream release + add new radeon NI firmwares.
Dave Airlie 8e3d43
Hicham HAOUARI 38eac0
* Thu Aug 12 2010 Hicham HAOUARI <hicham.haouari@gmail.com> 20100806-4
Hicham HAOUARI 38eac0
- Really obsolete ueagle-atm4-firmware
Hicham HAOUARI 38eac0
Hicham HAOUARI b953f5
* Thu Aug 12 2010 Hicham HAOUARI <hicham.haouari@gmail.com> 20100806-3
Hicham HAOUARI b953f5
- Obsolete ueagle-atm4-firmware
Hicham HAOUARI b953f5
David Woodhouse 97339a
* Fri Aug 06 2010 David Woodhouse <dwmw2@infradead.org> 20100806-2
David Woodhouse 97339a
- Remove duplicate radeon firmwares; they're upstream now
David Woodhouse 97339a
David Woodhouse 1a9836
* Fri Aug 06 2010 David Woodhouse <dwmw2@infradead.org> 20100806-1
David Woodhouse 97339a
- Update to linux-firmware-20100806 (more legacy firmwares from kernel source)
David Woodhouse 1a9836
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.