raspberrypi-firmware/raspberrypi-firmware.spec

53 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-06-11 15:45:08 +08:00
%global _lib_path /usr/lib/firmware
%global _license_path /usr/share/licenses/raspi
2020-06-11 15:45:08 +08:00
%global debug_package %{nil}
Name: raspberrypi-firmware
2020-07-17 14:47:32 +08:00
Version: 20200717
2020-08-31 16:57:24 +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-06-11 15:45:08 +08:00
Source0: %{name}-%{version}.tar.gz
Source1: LICENCE.bluez-firmware
Source2: LICENCE.broadcom_bcm43xx
2020-07-17 21:18:32 +08:00
Source3: LICENCE.broadcom
Source4: LICENCE.COPYING.linux
Source5: LICENCE.wireless-regdb
2020-06-11 15:45:08 +08:00
%prep
%setup -q -c
%description
This package contains firmware images required by some RaspberryPi devices.
%install
2020-07-02 22:13:11 +08:00
mkdir -p %{buildroot}%{_lib_path}/brcm
mkdir -p %{buildroot}%{_license_path}
mkdir -p %{buildroot}/boot
install -p -m 644 %{_sourcedir}/LICENCE.* %{buildroot}%{_license_path}
install -p -m 644 $(find firmware/ -maxdepth 1 -type f) %{buildroot}%{_lib_path}
2020-07-02 22:13:11 +08:00
install -p -m 644 firmware/brcm/* %{buildroot}%{_lib_path}/brcm
install -p -m 644 firmware-boot/* %{buildroot}/boot
2020-06-11 15:45:08 +08:00
%files
%dir %{_lib_path}
%dir %{_license_path}
%{_license_path}
2020-06-11 15:45:08 +08:00
%{_lib_path}/*
/boot/*
%changelog
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.