From d657d007668ceb2c47fee632aec5a22a3983631a Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 22 May 2001 00:07:56 +0000 Subject: [PATCH] - spec taken from somewhere, rewritten and updated to 1.0.7 - NOTE: ROMs probably can be redistributed only with original X-Former .zip, so we include whole archive by default Changed files: Atari800-chooser -> 1.1 Atari800.spec -> 1.1 --- Atari800-chooser | 17 ++++ Atari800.spec | 208 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 225 insertions(+) create mode 100644 Atari800-chooser create mode 100644 Atari800.spec diff --git a/Atari800-chooser b/Atari800-chooser new file mode 100644 index 0000000..ff6d300 --- /dev/null +++ b/Atari800-chooser @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -n "$DISPLAY" -a -x /usr/X11R6/bin/atari800-x11 ] ; then + exec /usr/X11R6/bin/atari800-x11 +else + if [ -x /usr/bin/atari800-svga ] ; then + exec /usr/bin/atari800-svga + else + if [ -x /usr/X11R6/bin/atari800-x11 ] ; then + echo "Cannot run Atari800 - DISPLAY not found." + echo "Atari800-x11 needs X-server running and DISPLAY variable set." + else + echo "Cannot run Atari800 - executable not found." + echo "Install Atari800-x11 or Atari800-svga package." + fi + fi +fi diff --git a/Atari800.spec b/Atari800.spec new file mode 100644 index 0000000..0d4cf45 --- /dev/null +++ b/Atari800.spec @@ -0,0 +1,208 @@ +# +# Conditional build: +# bcond_on_license_agreement - with unzipped ROM files instead of xf25.zip +# +Summary: Atari 800 Emulator +Summary(pl): Emulator Atari 800 +Name: Atari800 +%define ver_short 107 +Version: 1.0.7 +Release: 1 +Group: Applications/Emulators +Group(de): Applikationen/Emulators +Group(pl): Aplikacje/Emulatory +License: GPL (Atari800), distributable if unmodified (xf25 with ROMs) +URL: http://atari800.atari.org +Source0: ftp://ftp.sophics.cz/pub/Atari800/src/a800s%{ver_short}.zip +# NOTE: ROMs probably can be redistributed only in original XF25 archive +Source1: http://joy.sophics.cz/www/xf25.zip +Source2: %{name}-chooser +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRequires: unzip +BuildRequires: svgalib-devel +BuildRequires: XFree86-devel +BuildRequires: zlib-devel + +%define _xbindir %{_prefix}/X11R6/bin + +%description + +%package common +Summary: Atari 800 Emulator - common files for svgalib and X11 versions +Summary(pl): Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11 +Group: Applications/Emulators +Group(de): Applikationen/Emulators +Group(pl): Aplikacje/Emulatory +Obsoletes: Atari800 +%{!?bcond_on_license_agreement:Requires: unzip} + +%description common +This is Atari 800, 800XL, 130XE and 5200 emulator. + +This package contains common files for both svgalib and X11 versions +of Atari800. + +%{!?bcond_on_license_agreement:Note: because of license problems we had to include whole X-Former} +%{!?bcond_on_license_agreement:archive (xf25.zip). If you don't want it - rebuild Atari800 by:} +%{!?bcond_on_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm} + +%description common -l pl +To jest emulator Atari 800, 800XL, 130XE i 5200. + +Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib +oraz X11. + +%{!?bcond_on_license_agreement:Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê} +%{!?bcond_on_license_agreement:z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -} +%{!?bcond_on_license_agreement:przebuduj pakiet poleceniem:} +%{!?bcond_on_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm} + +%package svga +Summary: Atari 800 Emulator - svgalib version +Summary(pl): Emulator Atari 800 - wersja pod svgalib +Group: Applications/Emulators +Group(de): Applikationen/Emulators +Group(pl): Aplikacje/Emulatory +License: GPL +Requires: %{name}-common = %{version} + +%description svga +This is Atari 800, 800XL, 130XE and 5200 emulator. + +This package contains Atari800 executable file configured for svgalib +with sound and joystick support. + +%description svga -l pl +To jest emulator Atari 800, 800XL, 130XE i 5200. + +Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla +svgalib z obs³ug± d¼wiêku i joysticka. + +%package x11 +Summary: Atari 800 Emulator - X Window version +Summary(pl): Emulator Atari 800 - wersja pod X Window +Group: Applications/Emulators +Group(de): Applikationen/Emulators +Group(pl): Aplikacje/Emulatory +License: GPL +Requires: %{name}-common = %{version} + +%description x11 +This is Atari 800, 800XL, 130XE and 5200 emulator. + +This package contains Atari800 executable file configured for X11 with +sound and joystick support. + +%description x11 -l pl +To jest emulator Atari 800, 800XL, 130XE i 5200. + +Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z +obs³ug± d¼wiêku i joysticka. + +%prep +%setup -q -c -T -n %{name}-%{version} +cd .. +unzip -q %{SOURCE0} + +%build +cd src + +%configure svgalib <atari800.1 + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}} \ + $RPM_BUILD_ROOT{%{_datadir}/atari800,%{_mandir}/man1} + +install src/atari800-svga $RPM_BUILD_ROOT%{_bindir} +install src/atari800-x11 $RPM_BUILD_ROOT%{_xbindir} +install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800 +install src/atari800.1 $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1 + +%if "%{bcond_on_license_agreement:1}%{!?bcond_on_license_agreement:0}" +unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800 +rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.* +%else +install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800 +%endif + +gzip -9nf DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST \ + DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt,usage1} + +%clean +rm -rf $RPM_BUILD_ROOT + +%if "%{bcond_on_license_agreement:0}%{!?bcond_on_license_agreement:1}" +%post common +cd %{_datadir}/atari800 +unzip -q -L xf25.zip +%endif + +%files common +%defattr(644,root,root,755) +%doc *.gz DOC/*.gz +%{_datadir}/atari800 +%{_mandir}/man1/atari800.1* +%attr(755,root,root) %{_bindir}/atari800 + +%files svga +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/atari800-svga + +%files x11 +%defattr(644,root,root,755) +%attr(755,root,root) %{_xbindir}/atari800-x11 -- 2.44.0