3 %bcond_with license_agreement # with unzipped ROM files instead of xf25.zip
5 Summary: Atari 800 Emulator
6 Summary(pl.UTF-8): Emulator Atari 800
10 License: GPL v2+ (Atari800), distributable if unmodified (xf25 with ROMs)
11 Group: Applications/Emulators
12 #Source0Download: https://github.com/atari800/atari800/releases
13 Source0: https://github.com/atari800/atari800/releases/download/ATARI800_4_2_0/atari800-%{version}-src.tgz
14 # Source0-md5: 695031b9bc3461cd18ec9090779d984b
15 # NOTE: ROMs probably can be redistributed only in original XF25 archive
16 Source1: http://joy.sophics.cz/www/xf25.zip
17 # Source1-md5: 4dc3b6b4313e9596c4d474785a37b94d
18 Source2: %{name}-chooser
19 URL: https://atari800.github.io/
20 BuildRequires: SDL-devel
21 BuildRequires: automake
22 %if %{with license_agreement}
25 BuildRequires: xorg-lib-libX11-devel
26 BuildRequires: xorg-lib-libXext-devel
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define specflags -fomit-frame-pointer
33 This is Atari 800, 800XL, 130XE and 5200 emulator.
35 %description -l pl.UTF-8
36 To jest emulator Atari 800, 800XL, 130XE i 5200.
39 Summary: Atari 800 Emulator - common files for SDL and X11 versions
40 Summary(pl.UTF-8): Emulator Atari 800 - pliki wspólne dla wersji SDL oraz X11
41 Group: Applications/Emulators
43 %if %{without license_agreement}
48 This is Atari 800, 800XL, 130XE and 5200 emulator.
50 This package contains common files for both SDL and X11 versions
52 %if %{without license_agreement}
53 Note: because of license problems we had to include whole X-Former
54 archive (xf25.zip). If you don't want it - rebuild Atari800 (--with
58 %description common -l pl.UTF-8
59 To jest emulator Atari 800, 800XL, 130XE i 5200.
61 Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL
63 %if %{without license_agreement}
64 Uwaga: z powodu problemów z licencją musieliśmy załączyć całą paczkę
65 z emulatorem X-Former (xf25.zip). Jeśli jej nie chcesz w pakiecie -
66 przebuduj pakiet z opcja --with license_agreement.
70 Summary: Atari 800 Emulator - X Window version
71 Summary(pl.UTF-8): Emulator Atari 800 - wersja dla systemu X Window
73 Group: Applications/Emulators
74 Requires: %{name}-common = %{version}-%{release}
77 This is Atari 800, 800XL, 130XE and 5200 emulator.
79 This package contains Atari800 executable file configured for X11 with
80 OSS sound and joystick support.
82 %description x11 -l pl.UTF-8
83 To jest emulator Atari 800, 800XL, 130XE i 5200.
85 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
86 obsługą dźwięku OSS i joysticka.
89 Summary: Atari 800 Emulator - SDL version
90 Summary(pl.UTF-8): Emulator Atari 800 - wersja SDL
92 Group: Applications/Emulators
93 Requires: %{name}-common = %{version}-%{release}
94 Obsoletes: Atari800-svga
97 This is Atari 800, 800XL, 130XE and 5200 emulator.
99 This package contains Atari800 executable file configured for SDL with
100 sound and joystick support.
102 %description SDL -l pl.UTF-8
103 To jest emulator Atari 800, 800XL, 130XE i 5200.
105 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
106 obsługą dźwięku i joysticka.
109 %setup -q -n atari800-%{version}
112 cp -f /usr/share/automake/config.sub .
117 --disable-silent-rules \
118 --disable-stereosound \
124 %{__mv} src/atari800 atari800-SDL
131 --disable-silent-rules \
132 --disable-stereosound \
138 %{__mv} src/atari800 atari800-x11
141 rm -rf $RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
144 install atari800-x11 $RPM_BUILD_ROOT%{_bindir}
145 install atari800-SDL $RPM_BUILD_ROOT%{_bindir}
146 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
147 cp -p src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
149 %if %{with license_agreement}
150 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
151 %{__rm} $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
153 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
157 rm -rf $RPM_BUILD_ROOT
159 %if %{without license_agreement}
161 cd %{_datadir}/atari800
162 if [ "`echo *.rom`" = "*.rom" ]; then
165 rm -f xf25.doc xf25.exe
170 %defattr(644,root,root,755)
171 %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.TXT
172 %attr(755,root,root) %{_bindir}/atari800
174 %{_mandir}/man1/atari800.1*
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_bindir}/atari800-x11
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_bindir}/atari800-SDL