File jmce.spec of Package jmce

#
# spec file for package jmce
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           jmce
Version:        1.02
Release:        0
Summary:        Java Multiple Computer Emulator
License:        MIT
URL:            http://www.viara.eu/en/jmce
Source:         http://www.viara.eu/download/%{name}-src-v%{version}.tar.gz
BuildRequires:  ant
BuildRequires:  ant-contrib
BuildRequires:  cpptasks
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  java-devel = 1.8.0
BuildRequires:  ncurses-devel
# svnversion used in build-java.xml
BuildRequires:  subversion
Requires:       rxtx-java

%description
JMCE is a simulator for 8 bit microprocessor (Intel 8080, Zilog Z80,
Intel 8051, MOS 6502,etc) and many computer based over them as ZX
Spectrum, Altair 8800 , Z80Pack,Commodore VIC20 etc. running their
original ROM and operating system. All JMCE computer can be configured
programmatically or using xml, for example it is possible connect the
console of IMSAI 8080 to one TCP server or to one physical serial
interface without writing one line of code or it is possible change
the memory for the Z80Pack computer from plain to banked memory again
only editing a single xml files.

%prep
%setup -q -n %{name}-src-v%{version}/
mkdir conf

%build
ant

%install
mkdir -p %{buildroot}/%{_javadir}
install -m 644 build/linux/lib/jmce.jar %{buildroot}/%{_javadir}
mkdir -p %{buildroot}/%{_libdir}
install -m 644 bin/linux/libjmce.so %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_bindir}
echo "java -jar %{_javadir}/jmce.jar $@" >%{buildroot}/%{_bindir}/jmce
chmod +x %{buildroot}/%{_bindir}/jmce

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%{_javadir}/jmce.jar
%{_libdir}/libjmce.so
%{_bindir}/jmce

%changelog
openSUSE Build Service is sponsored by