move firmware to /usr/lib/firmware

- UsrMove: move firmware to /usr/lib/firmware
- Remove duplicate /usr/lib/firmware/updates entry (already in linux-firmware.dirs)
- Simplify sed by using '!' instead of '/' as regexp delimiter
- Fix date error (commited on Mon Feb 04, so change that entry)

ok'd by josh
This commit is contained in:
Kyle McMartin 2013-05-20 11:10:23 -04:00
parent 3a1672e835
commit 351d4a4bd0

View File

@ -1,9 +1,11 @@
%global checkout b584174 %global checkout b584174
%global iwlwifi_release 23 %global iwlwifi_release 23
%global _firmwarepath /usr/lib/firmware
Name: linux-firmware Name: linux-firmware
Version: 20130418 Version: 20130418
Release: 0.1.git%{checkout}%{?dist} Release: 0.2.git%{checkout}%{?dist}
Summary: Firmware files used by the Linux kernel Summary: Firmware files used by the Linux kernel
Group: System Environment/Kernel Group: System Environment/Kernel
@ -220,7 +222,7 @@ Firmware for Marvell Libertas SD 8787 Network Adapter
git init . git init .
if [ -z "$GIT_COMMITTER_NAME" ]; then if [ -z "$GIT_COMMITTER_NAME" ]; then
git config user.email "nobody@fedoraproject.org" git config user.email "nobody@fedoraproject.org"
git config user.name "Fedora X Ninjas" git config user.name "Fedora linux-firmware packagers"
fi fi
git add . git add .
git commit -m init . git commit -m init .
@ -243,14 +245,14 @@ rm -f libertas/usb8388_v5.bin
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/lib/firmware mkdir -p $RPM_BUILD_ROOT/%{_firmwarepath}
mkdir -p $RPM_BUILD_ROOT/lib/firmware/updates mkdir -p $RPM_BUILD_ROOT/%{_firmwarepath}/updates
cp -r * $RPM_BUILD_ROOT/lib/firmware cp -r * $RPM_BUILD_ROOT/%{_firmwarepath}
rm $RPM_BUILD_ROOT/lib/firmware/{WHENCE,LICENCE.*,LICENSE.*} rm $RPM_BUILD_ROOT/%{_firmwarepath}/{WHENCE,LICENCE.*,LICENSE.*}
# Create file list but exclude firmwares that we place in subpackages # Create file list but exclude firmwares that we place in subpackages
FILEDIR=`pwd` FILEDIR=`pwd`
pushd $RPM_BUILD_ROOT/lib/firmware pushd $RPM_BUILD_ROOT/%{_firmwarepath}
find . \! -type d > $FILEDIR/linux-firmware.files find . \! -type d > $FILEDIR/linux-firmware.files
find . -type d | sed -e '/^.$/d' > $FILEDIR/linux-firmware.dirs find . -type d | sed -e '/^.$/d' > $FILEDIR/linux-firmware.dirs
popd popd
@ -260,7 +262,7 @@ sed -i -e '/^iwlwifi/d' \
-i -e '/^libertas\/usb8388/d' \ -i -e '/^libertas\/usb8388/d' \
-i -e '/^mrvl\/sd8787/d' \ -i -e '/^mrvl\/sd8787/d' \
linux-firmware.files linux-firmware.files
sed -i -e 's/^/\/lib\/firmware\//' linux-firmware.{files,dirs} sed -i -e 's!^!/usr/lib/firmware/!' linux-firmware.{files,dirs}
sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%clean %clean
@ -269,104 +271,109 @@ rm -rf $RPM_BUILD_ROOT
%files -n iwl100-firmware %files -n iwl100-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-100-5.ucode %{_firmwarepath}/iwlwifi-100-5.ucode
%files -n iwl105-firmware %files -n iwl105-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-105-*.ucode %{_firmwarepath}/iwlwifi-105-*.ucode
%files -n iwl135-firmware %files -n iwl135-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-135-*.ucode %{_firmwarepath}/iwlwifi-135-*.ucode
%files -n iwl1000-firmware %files -n iwl1000-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-1000-*.ucode %{_firmwarepath}/iwlwifi-1000-*.ucode
%files -n iwl2000-firmware %files -n iwl2000-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-2000-*.ucode %{_firmwarepath}/iwlwifi-2000-*.ucode
%files -n iwl2030-firmware %files -n iwl2030-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-2030-*.ucode %{_firmwarepath}/iwlwifi-2030-*.ucode
%files -n iwl3945-firmware %files -n iwl3945-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-3945-*.ucode %{_firmwarepath}/iwlwifi-3945-*.ucode
%files -n iwl4965-firmware %files -n iwl4965-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-4965-*.ucode %{_firmwarepath}/iwlwifi-4965-*.ucode
%files -n iwl5000-firmware %files -n iwl5000-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-5000-*.ucode %{_firmwarepath}/iwlwifi-5000-*.ucode
%files -n iwl5150-firmware %files -n iwl5150-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-5150-*.ucode %{_firmwarepath}/iwlwifi-5150-*.ucode
%files -n iwl6000-firmware %files -n iwl6000-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6000-*.ucode %{_firmwarepath}/iwlwifi-6000-*.ucode
%files -n iwl6000g2a-firmware %files -n iwl6000g2a-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6000g2a-*.ucode %{_firmwarepath}/iwlwifi-6000g2a-*.ucode
%files -n iwl6000g2b-firmware %files -n iwl6000g2b-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6000g2b-*.ucode %{_firmwarepath}/iwlwifi-6000g2b-*.ucode
%files -n iwl6050-firmware %files -n iwl6050-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.iwlwifi_firmware %doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6050-*.ucode %{_firmwarepath}/iwlwifi-6050-*.ucode
%files -n libertas-usb8388-firmware %files -n libertas-usb8388-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.Marvell %doc WHENCE LICENCE.Marvell
%dir /lib/firmware/libertas %dir %{_firmwarepath}/libertas
/lib/firmware/libertas/usb8388_v9.bin %{_firmwarepath}/libertas/usb8388_v9.bin
%files -n libertas-usb8388-olpc-firmware %files -n libertas-usb8388-olpc-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.Marvell %doc WHENCE LICENCE.Marvell
%dir /lib/firmware/libertas %dir %{_firmwarepath}/libertas
/lib/firmware/libertas/usb8388_olpc.bin %{_firmwarepath}/libertas/usb8388_olpc.bin
%files -n libertas-sd8686-firmware %files -n libertas-sd8686-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.Marvell %doc WHENCE LICENCE.Marvell
%dir /lib/firmware/libertas %dir %{_firmwarepath}/libertas
/lib/firmware/libertas/sd8686* %{_firmwarepath}/libertas/sd8686*
%files -n libertas-sd8787-firmware %files -n libertas-sd8787-firmware
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc WHENCE LICENCE.Marvell %doc WHENCE LICENCE.Marvell
%dir /lib/firmware/mrvl %dir %{_firmwarepath}/mrvl
/lib/firmware/mrvl/sd8787* %{_firmwarepath}/mrvl/sd8787*
%files -f linux-firmware.files %files -f linux-firmware.files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir /lib/firmware %dir %{_firmwarepath}
%dir /lib/firmware/updates
%doc WHENCE LICENCE.* LICENSE.* %doc WHENCE LICENCE.* LICENSE.*
%changelog %changelog
* Mon May 20 2013 Kyle McMartin <kyle@redhat.com> - 20130418-0.2.gitb584174
- UsrMove: move firmware to /usr/lib/firmware
- Remove duplicate /usr/lib/firmware/updates entry (already in linux-firmware.dirs)
- Simplify sed by using '!' instead of '/' as regexp delimiter
- Fix date error (commited on Mon Feb 04, so change that entry)
* Thu Apr 18 2013 Josh Boyer <jwboyer@redhat.com> - 20130418-0.1.gitb584174 * Thu Apr 18 2013 Josh Boyer <jwboyer@redhat.com> - 20130418-0.1.gitb584174
- Update to latest upstream git tree - Update to latest upstream git tree
@ -376,7 +383,7 @@ rm -rf $RPM_BUILD_ROOT
* Thu Feb 21 2013 Josh Boyer <jwboyer@redhat.com> - 20130201-0.4.git65a5163 * Thu Feb 21 2013 Josh Boyer <jwboyer@redhat.com> - 20130201-0.4.git65a5163
- Obsolete netxen-firmware. Again. (rhbz 913680) - Obsolete netxen-firmware. Again. (rhbz 913680)
* Fri Feb 04 2013 Josh Boyer <jwboyer@redhat.com> - 20130201-0.3.git65a5163 * Mon Feb 04 2013 Josh Boyer <jwboyer@redhat.com> - 20130201-0.3.git65a5163
- Obsolete ql2[45]00-firmware packages (rhbz 906898) - Obsolete ql2[45]00-firmware packages (rhbz 906898)
* Fri Feb 01 2013 Josh Boyer <jwboyer@redhat.com> * Fri Feb 01 2013 Josh Boyer <jwboyer@redhat.com>