From b02a2f5bd51254d402f26aa1c5539969fca4f369 Mon Sep 17 00:00:00 2001 From: User Date: Mon, 26 Nov 2018 21:12:58 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ tinyemu.spec | 53 ++++++++++++++++++++++++++++++++++++++++++ tinyemu_makefile.patch | 19 +++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 .abf.yml create mode 100644 tinyemu.spec create mode 100644 tinyemu_makefile.patch diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..90aad2f --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + tinyemu-2018-09-23.tar: 7e467dc9807d9f3777108889c4e6e0df007146c1 diff --git a/tinyemu.spec b/tinyemu.spec new file mode 100644 index 0000000..d56365b --- /dev/null +++ b/tinyemu.spec @@ -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 + diff --git a/tinyemu_makefile.patch b/tinyemu_makefile.patch new file mode 100644 index 0000000..ce5ec6c --- /dev/null +++ b/tinyemu_makefile.patch @@ -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)