fedora-bbl-nopayload/fedora-bbl-nopayload.spec

60 lines
1.3 KiB
RPMSpec
Raw Normal View History

# Disable debug packages, we don't need them.
%global debug_package %{nil}
Name: fedora-bbl-nopayload
# The last part is short hash
Version: 2019.03.10.a1c125d
Release: 1%{?dist}
Summary: Berkeley Boot Loader (BBL) without a payload
License: BSD
URL: https://github.com/riscv/riscv-pk
# Download tarball, e.g.:
# https://github.com/riscv/riscv-pk/archive/%full_commit.tar.gz
%global full_commit a1c125dde740f5acd1e20a341cf3426ea44af292
Source0: https://github.com/riscv/riscv-pk/archive/%{full_commit}.tar.gz
BuildRequires: gcc
BuildRequires: binutils
BuildRequires: findutils
BuildRequires: grep
BuildRequires: coreutils
%description
Berkeley Boot Loader (BBL) without a payload (useful for TinyEMU).
It is used for booting on RISC-V 64-bit (riscv64) systems.
%prep
%autosetup -n riscv-pk-%{full_commit}
%build
mkdir -p build
pushd build
../configure \
--enable-logo
%make_build
popd
%install
pushd build
mkdir -p %{buildroot}/boot
cp bbl %{buildroot}/boot/bbl-%{version}
popd
%files
%license LICENSE LICENSE.Batten LICENSE.riscv_logo.txt
%doc README.md
/boot/bbl-*
%changelog
* Sun Mar 10 2019 David Abdurachmanov <david.abdurachmanov@gmail.com> 2019.03.10.a1c125d-1
- Update commit
* Tue Feb 19 2019 David Abdurachmanov <david.abdurachmanov@gmail.com> 2019.02.19.a26a565-1
- Add new package