Religiously remove *.la files from chroot.
[fedora-riscv.git] / stage2-riscv-pk / riscv-pk.spec.in
1 %global debug_package %{nil}
2
3 Name:           riscv-pk
4 Version:        0
5 Release:        0.2.git@SHORTCOMMIT@%{?dist}
6 Summary:        RISC-V proxy kernel (pk) and boot loader (bbl)
7 License:        BSD
8
9 URL:            https://github.com/lowRISC/riscv-pk
10 Source0:        https://github.com/riscv/%{name}/archive/@COMMIT@/%{name}-@SHORTCOMMIT@.tar.gz
11
12 BuildRequires:  riscv-gnu-toolchain
13
14
15 %description
16 This is the RISC-V fork of the GNU cross-compiler toolchain.  It
17 includes binutils and GCC.
18
19
20 %prep
21 %setup -q -n %{name}-@COMMIT@
22
23
24 %build
25 mkdir build
26 pushd build
27 # Setting RUN to /bin/true prevents pk from looking for the 'spike'
28 # RISC-V cycle-accurate emulator, which would be needed to run tests
29 # but we don't care about here.
30 ../configure --prefix=%{_prefix} \
31              --libdir=%{_libdir} \
32              --host=riscv64-unknown-elf RUN=/bin/true
33
34 make
35 popd
36
37
38 %install
39 pushd build
40 make install DESTDIR=$RPM_BUILD_ROOT
41 popd
42
43
44 %files
45 %doc README.md LICENSE
46 %{_bindir}/bbl
47 %{_bindir}/pk
48 %{_includedir}/riscv-pk
49 %{_prefix}/lib/riscv-pk
50
51
52 %changelog