2020-06-11 15:45:08 +08:00
|
|
|
%global _lib_path /usr/lib/firmware
|
2020-07-19 23:08:13 +08:00
|
|
|
%global _license_path /usr/share/licenses/raspi
|
2020-09-05 12:11:28 +08:00
|
|
|
%global firmware_release 1.20200819
|
2020-06-11 15:45:08 +08:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: raspberrypi-firmware
|
2020-09-05 12:11:28 +08:00
|
|
|
Version: 20200904
|
2020-09-22 16:02:35 +08:00
|
|
|
Release: 3
|
2020-06-11 15:45:08 +08:00
|
|
|
Summary: Firmware files used for RaspberryPi
|
|
|
|
|
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
|
2020-06-11 16:42:21 +08:00
|
|
|
ExclusiveArch: aarch64
|
2020-06-11 15:45:08 +08:00
|
|
|
|
|
|
|
|
Provides: raspberrypi-firmware = %{version}-%{release}
|
|
|
|
|
|
2020-08-31 16:57:24 +08:00
|
|
|
URL: https://github.com/raspberrypi/firmware
|
2020-09-16 15:55:42 +08:00
|
|
|
Source0: https://github.com/raspberrypi/firmware/archive/firmware-%{firmware_release}.tar.gz
|
2020-09-05 12:11:28 +08:00
|
|
|
Source1: %{name}-%{version}.tar.gz
|
2020-09-22 16:02:35 +08:00
|
|
|
Conflicts: linux-firmware
|
2020-06-11 15:45:08 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains firmware images required by some RaspberryPi devices.
|
|
|
|
|
|
2020-09-05 12:11:28 +08:00
|
|
|
%prep
|
2020-09-16 15:55:42 +08:00
|
|
|
%setup -q -n %{name}-%{version} -a 1 -c
|
2020-09-05 12:11:28 +08:00
|
|
|
|
2020-06-11 15:45:08 +08:00
|
|
|
%install
|
2020-07-02 22:13:11 +08:00
|
|
|
mkdir -p %{buildroot}%{_lib_path}/brcm
|
|
|
|
|
mkdir -p %{buildroot}%{_license_path}
|
|
|
|
|
mkdir -p %{buildroot}/boot
|
2020-09-05 12:11:28 +08:00
|
|
|
cd %{name}-%{version}
|
|
|
|
|
install -p -m 644 License/* %{buildroot}%{_license_path}
|
|
|
|
|
install -p -m 644 $(find ./ -maxdepth 1 -type f) %{buildroot}%{_lib_path}
|
|
|
|
|
install -p -m 644 brcm/* %{buildroot}%{_lib_path}/brcm
|
|
|
|
|
cd ../firmware-%{firmware_release}
|
|
|
|
|
install -p -m 644 boot/*.bin %{buildroot}/boot
|
|
|
|
|
install -p -m 644 boot/*.linux %{buildroot}/boot
|
|
|
|
|
install -p -m 644 boot/*.dat %{buildroot}/boot
|
|
|
|
|
install -p -m 644 boot/*.elf %{buildroot}/boot
|
|
|
|
|
install -p -m 644 boot/LICENCE.* %{buildroot}/boot
|
|
|
|
|
|
|
|
|
|
cd -
|
2020-06-11 15:45:08 +08:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{_lib_path}
|
|
|
|
|
%dir %{_license_path}
|
2020-07-19 23:08:13 +08:00
|
|
|
%{_license_path}
|
2020-06-11 15:45:08 +08:00
|
|
|
%{_lib_path}/*
|
|
|
|
|
/boot/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-09-22 16:02:35 +08:00
|
|
|
* Tue Sep 22 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-3
|
|
|
|
|
- Add the conflicts field, declaring the conflicts with linux-firmware(brcmfmac43362-sdio.lemaker,bananapro.txt/brcmfmac43430-sdio.bin/brcmfmac43455-sdio.bin in /usr/lib/firmware/brcm).
|
|
|
|
|
|
2020-09-16 15:55:42 +08:00
|
|
|
* Wed Sep 16 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-2
|
|
|
|
|
- Change source0's name.
|
|
|
|
|
|
2020-09-05 12:11:28 +08:00
|
|
|
* Fri Sep 4 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-1
|
|
|
|
|
- Update firmware files.
|
|
|
|
|
|
2020-08-31 16:57:24 +08:00
|
|
|
* Mon 31 Aug 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200717-3
|
|
|
|
|
- Add source url in spec.
|
|
|
|
|
|
2020-07-29 17:37:20 +08:00
|
|
|
* Fri Jul 17 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200717-1
|
|
|
|
|
- Update firmware files, add licenses.
|
|
|
|
|
|
|
|
|
|
* Wed May 20 2020 Jianmin Wang<jianmin@iscas.ac.cn> - 20200512-1
|
2020-06-11 15:45:08 +08:00
|
|
|
- Add firmware file from RaspberryPi firmware, bluez-firmware and firmware-nonfree.
|