Imported from SRPM

This commit is contained in:
User 2018-11-26 21:12:58 +03:00
commit b02a2f5bd5
3 changed files with 74 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
tinyemu-2018-09-23.tar: 7e467dc9807d9f3777108889c4e6e0df007146c1

53
tinyemu.spec Normal file
View file

@ -0,0 +1,53 @@
%define debug_package %nil
Name: tinyemu
Version: 20180923
Release: 1
Summary: Tiny RISC-V emulator
URL: https://bellard.org/tinyemu/
Source0: https://bellard.org/%{name}/%{name}-2018-09-23.tar
Patch0: %{name}_makefile.patch
License: MIT
Group: Emulators
BuildRequires: pkgconfig(sdl2)
%description
TinyEMU is a system emulator for the RISC-V and x86
architectures. Its purpose is to be small and simple
while being complete.
Main features:
- RISC-V system emulator supporting the RV128IMAFDQC
base ISA (user level ISA version 2.2, priviledged
architecture version 1.10) including:
-- 32/64/128 bit integer registers
-- 32/64/128 bit floating point instructions (using
the SoftFP Library)
-- Compressed instructions
-- Dynamic XLEN change
- x86 system emulator based on KVM
- VirtIO console, network, block device, input and 9P
filesystem
- Graphical display with SDL
- JSON configuration file
- Remote HTTP block device and filesystem
- Small code, easy to modify, few external dependancies
- Javascript version running Linux and Windows 2000.
%prep
%setup -qn %{name}-2018-09-23
%patch -p0
%build
%make
%install
install -d %{buildroot}%{_bindir}
%makeinstall_std
%files
%doc readme.txt MIT-LICENSE.txt
%{_bindir}/temu
%{_bindir}/build_filelist
%{_bindir}/splitimg

19
tinyemu_makefile.patch Normal file
View file

@ -0,0 +1,19 @@
*** Makefile.orig 2018-09-23 15:17:20.000000000 +0300
--- Makefile 2018-11-26 21:05:38.969988144 +0300
***************
*** 50,56 ****
CFLAGS+=-D_GNU_SOURCE -DCONFIG_VERSION=\"$(shell cat VERSION)\"
LDFLAGS=
! bindir=/usr/local/bin
INSTALL=install
PROGS+= temu$(EXE)
--- 50,56 ----
CFLAGS+=-D_GNU_SOURCE -DCONFIG_VERSION=\"$(shell cat VERSION)\"
LDFLAGS=
! bindir=/usr/bin
INSTALL=install
PROGS+= temu$(EXE)