From 28b1d266fe6166771738ed464584f4494d257cad Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 16 Sep 2001 20:41:06 +0000 Subject: [PATCH] - new; needs TOS image... - conditional svgalib support (runtime selection) Changed files: STonX-nox.patch -> 1.1 STonX-svga.patch -> 1.1 STonX.spec -> 1.1 --- STonX-nox.patch | 9 +++++ STonX-svga.patch | 15 +++++++ STonX.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 STonX-nox.patch create mode 100644 STonX-svga.patch create mode 100644 STonX.spec diff --git a/STonX-nox.patch b/STonX-nox.patch new file mode 100644 index 0000000..91065cc --- /dev/null +++ b/STonX-nox.patch @@ -0,0 +1,9 @@ +--- STonX-0.6.5/data/makefonts.sh.orig Tue Nov 28 13:10:04 1995 ++++ STonX-0.6.5/data/makefonts.sh Thu Aug 30 21:58:30 2001 +@@ -3,6 +3,3 @@ + ../fnttobdf <$i | bdftopcf > `basename $i .fnt`.pcf + ../fnttobdf -tr <$i | bdftopcf > `basename $i .fnt`-iso.pcf + done +-mkfontdir . +-xset fp+ `pwd` +-xset fp rehash diff --git a/STonX-svga.patch b/STonX-svga.patch new file mode 100644 index 0000000..dfcec25 --- /dev/null +++ b/STonX-svga.patch @@ -0,0 +1,15 @@ +--- STonX-0.6.5/Makefile.in.orig Fri Feb 9 19:06:25 1996 ++++ STonX-0.6.5/Makefile.in Sun Sep 16 22:10:48 2001 +@@ -24,8 +24,10 @@ + #XLIBS=@X_LIBS@ -L../../binutils-2.4 -lopcodes -lbfd -liberty -lncurses + + #Linux SVGALIB support : ++ifdef USE_SVGALIB +-#XLIBS=@X_LIBS@ -lvgagl -lvga +-#SFLAGS=-DUSE_SVGALIB ++XLIBS=@X_LIBS@ -lvgagl -lvga ++SFLAGS=-DUSE_SVGALIB ++endif + + DEF= @def@ -DINLINE=@inline@ + diff --git a/STonX.spec b/STonX.spec new file mode 100644 index 0000000..0c18e32 --- /dev/null +++ b/STonX.spec @@ -0,0 +1,101 @@ +# +# Conditional build: +# _without_svga without svgalib support +# + +%ifnarch %{ix86} +%define _without_svga 1 +%endif + +%define tosarchname tos206us.zip +%define tosfilename Tos206.img + +Summary: Atari ST on Unix/X +Summary(pl): Atari ST pod Uniksem/X +Name: STonX +Version: 0.6.5 +Release: 1 +License: GPL (except TOS image) +Group: Applications/Emulators +Group(de): Applikationen/Emulators +Group(pl): Aplikacje/Emulatory +Source0: http://www.complang.tuwien.ac.at/nino/stonx/%{name}-%{version}.tar.gz +# to use TOS image legally, one probably must own real Atari ST... +Source1: %{tosarchname} +NoSource: 1 +Patch0: %{name}-nox.patch +Patch1: %{name}-svga.patch +URL: http://www.complang.tuwien.ac.at/nino/stonx.html +BuildRequires: XFree86-devel +%{!?_without_svga:BuildRequires: svgalib-devel} +BuildRequires: autoconf +BuildRequires: unzip +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _prefix /usr/X11R6 + +%description +STonX is a software emulator, which runs on Unix workstations with the +X Window system%{!?_without_svga: or svgalib}, and emulates an Atari ST computer. + +%description -l pl +STonX jest programowym emulatorem komputera Atari ST, dzia³aj±cym na +Uniksach z X Window System%{!?_without_svga: lub svgalib}. + +%prep +%setup -q -a1 +%patch0 -p1 +%patch1 -p1 + +mv -f %{tosfilename} tos.img + +%build +autoconf +%configure + +%{__make} \ + OPT="%{rpmcflags}" \ + REGS="%{!?debug:-fomit-frame-pointer}" \ + %{!?_without_svga:USE_SVGALIB=1} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_libdir}/STonX,%{_bindir},%{_fontsdir}/misc} +install stonx tos.img cartridge.img Keysyms $RPM_BUILD_ROOT%{_libdir}/STonX +gzip -9nf data/*.pcf +install data/*.pcf.gz $RPM_BUILD_ROOT%{_fontsdir}/misc + +cat > $RPM_BUILD_ROOT%{_bindir}/stonx </dev/null 2>&1 ||: + +%postun +if [ -x /usr/X11R6/bin/mkfontdir ]; then + (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir) +fi +killall -USR1 xfs >/dev/null 2>&1 ||: + +%files +%defattr(644,root,root,755) +%doc docs/*.gz +%attr(755,root,root) %{_bindir}/* +%dir %{_libdir}/STonX +%attr(755,root,root) %{_libdir}/STonX/stonx +%{_libdir}/STonX/*.img +%{_libdir}/STonX/Keysyms +%{_fontsdir}/misc/* -- 2.43.0