Package the RISCV emulator (Spike).
[fedora-riscv.git] / stage1-riscv-fesvr / riscv-fesvr.spec.in
1 %global debug_package %{nil}
2
3 Name:           riscv-fesvr
4 Version:        0
5 Release:        0.2.git@SHORTCOMMIT@%{?dist}
6 Summary:        RISC-V front end server library
7 License:        BSD
8
9 URL:            https://github.com/riscv/riscv-fesvr
10 Source0:        https://github.com/riscv/%{name}/archive/@COMMIT@/%{name}-@SHORTCOMMIT@.tar.gz
11
12 BuildRequires:  glibc-devel
13
14 # Workaround some problem with RPM dependency generator.
15 Provides:       libfesvr.so()(64bit)
16
17
18 %description
19 This is the RISC-V front end server library.
20
21
22 %prep
23 %setup -q -n %{name}-@COMMIT@
24
25
26 %build
27 mkdir build
28 pushd build
29 ../configure --prefix=%{_prefix} --libdir=%{_libdir}
30 make
31 popd
32
33
34 %install
35 pushd build
36 make install DESTDIR=$RPM_BUILD_ROOT
37 popd
38
39 # Package ignores libdir, so fix that.
40 mv $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_libdir}
41
42
43 %files
44 %doc README.md COPYING LICENSE
45 %{_bindir}/elf2hex
46 %{_bindir}/fesvr-eth
47 %{_bindir}/fesvr-rs232
48 %{_bindir}/fesvr-zedboard
49 %{_includedir}/fesvr
50 %{_libdir}/libfesvr.so
51 %{_libdir}/pkgconfig/riscv-fesvr.pc
52
53
54 %changelog