File raspberrypi-firmware.spec of Package raspberrypi-firmware.13909
#
# spec file for package raspberrypi-firmware
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: raspberrypi-firmware
Version: 2019.11.19
Release: 0
Summary: Binary bootloader and firmware files for Raspberry Pi
License: SUSE-Firmware
Group: System/Boot
URL: https://github.com/raspberrypi/firmware/
Source0: raspberrypi-firmware-%{version}.tar.bz2
Source1: get-from-git.sh
Source99: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): util-linux
Recommends: raspberrypi-firmware-dt
Recommends: raspberrypi-firmware-config
%description
Binary bootloader and firmware files for Raspberry Pi
%package extra
Summary: Extra bootloaders for Raspberry Pi
Group: System/Boot
Requires: raspberrypi-firmware = %{version}-%{release}
Requires(post): util-linux
%description extra
This package provides the console, experimental and debug
firmware files for Raspberry Pi
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/boot/vc
cp -a boot/start.elf boot/start_*.elf %{buildroot}/boot/vc
cp -a boot/fixup.dat boot/fixup_*.dat %{buildroot}/boot/vc
cp -a boot/*.bin boot/LICENCE.broadcom %{buildroot}/boot/vc
%post
if mountpoint -q /boot/efi && [[ ! -L /boot/efi ]]; then
for f in start.elf fixup.dat bootcode.bin; do
cp /boot/vc/$f /boot/efi/
done
fi
%post extra
if mountpoint -q /boot/efi && [[ ! -L /boot/efi ]]; then
for suffix in _cd _db _x; do
cp /boot/vc/start${suffix}.elf /boot/efi/
cp /boot/vc/fixup${suffix}.dat /boot/efi/
done
fi
%files
%defattr(-,root,root)
%dir /boot/vc
/boot/vc/start.elf
/boot/vc/fixup.dat
/boot/vc/bootcode.bin
%doc /boot/vc/LICENCE.broadcom
%files extra
%defattr(-,root,root)
/boot/vc/start_cd.elf
/boot/vc/start_db.elf
/boot/vc/start_x.elf
/boot/vc/fixup_cd.dat
/boot/vc/fixup_db.dat
/boot/vc/fixup_x.dat
%changelog