Summary: Firmware files used by the Linux kernel Name: linux-firmware Version: 20110518 Release: 1 License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted Group: Base/Kernel URL: http://www.kernel.org/ Source0: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/%{name}-%{version}.tar.bz2 # Source0-md5: 3b215b5ec9a5e8784dd971c039e9b948 Requires: udev Provides: kernel-firmware = %{version} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Kernel-firmware includes firmware files required for some devices to operate. %prep %setup -q %build # Remove firmware shipped in separate packages already # Perhaps these should be built as subpackages of linux-firmware? rm ql2???_fw.bin LICENCE.qla2xxx rm iwlwifi-*.ucode LICENCE.iwlwifi_firmware # Remove source files we don't need to install rm -f usbdux/*dux */*.asm %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/lib/firmware cp -r * $RPM_BUILD_ROOT/lib/firmware rm $RPM_BUILD_ROOT/lib/firmware/{WHENCE,LICENCE.*} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc WHENCE LICENCE.* LICENSE.* /lib/firmware/*