61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
%global _lib_path /usr/lib/firmware
|
|
%global _license_path /usr/share/licenses/raspi
|
|
%global firmware_release 1.20200819
|
|
%global debug_package %{nil}
|
|
|
|
Name: raspberrypi-firmware
|
|
Version: 20200904
|
|
Release: 1
|
|
Summary: Firmware files used for RaspberryPi
|
|
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
|
|
ExclusiveArch: aarch64
|
|
|
|
Provides: raspberrypi-firmware = %{version}-%{release}
|
|
|
|
URL: https://github.com/raspberrypi/firmware
|
|
Source0: https://github.com/raspberrypi/firmware/archive/%{firmware_release}.tar.gz
|
|
Source1: %{name}-%{version}.tar.gz
|
|
|
|
%description
|
|
This package contains firmware images required by some RaspberryPi devices.
|
|
|
|
%prep
|
|
%setup -q -n firmware-%{version} -a 1 -c
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_lib_path}/brcm
|
|
mkdir -p %{buildroot}%{_license_path}
|
|
mkdir -p %{buildroot}/boot
|
|
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 -
|
|
|
|
%files
|
|
%dir %{_lib_path}
|
|
%dir %{_license_path}
|
|
%{_license_path}
|
|
%{_lib_path}/*
|
|
/boot/*
|
|
|
|
%changelog
|
|
* Fri Sep 4 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-1
|
|
- Update firmware files.
|
|
|
|
* Mon 31 Aug 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200717-3
|
|
- Add source url in spec.
|
|
|
|
* 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
|
|
- Add firmware file from RaspberryPi firmware, bluez-firmware and firmware-nonfree.
|