]>
Commit | Line | Data |
---|---|---|
d657d007 JB |
1 | # |
2 | # Conditional build: | |
af4c66f1 | 3 | %bcond_with license_agreement # with unzipped ROM files instead of xf25.zip |
af4c66f1 | 4 | # |
d657d007 | 5 | Summary: Atari 800 Emulator |
ad763a77 | 6 | Summary(pl.UTF-8): Emulator Atari 800 |
d657d007 | 7 | Name: Atari800 |
56ebf01c ŁM |
8 | Version: 4.0.0 |
9 | Release: 1 | |
e54121ec | 10 | License: GPL v2+ (Atari800), distributable if unmodified (xf25 with ROMs) |
d657d007 | 11 | Group: Applications/Emulators |
56ebf01c ŁM |
12 | Source0: https://sourceforge.net/projects/atari800/files/atari800/%{version}/atari800-%{version}.tar.gz |
13 | # Source0-md5: 72ba8e390a8fba7d087c2c089dae6d3c | |
d657d007 JB |
14 | # NOTE: ROMs probably can be redistributed only in original XF25 archive |
15 | Source1: http://joy.sophics.cz/www/xf25.zip | |
a2247a56 | 16 | # Source1-md5: 4dc3b6b4313e9596c4d474785a37b94d |
d657d007 | 17 | Source2: %{name}-chooser |
56ebf01c | 18 | URL: https://atari800.github.io/ |
8525291b | 19 | BuildRequires: SDL-devel |
f19ff0c8 | 20 | BuildRequires: automake |
af4c66f1 | 21 | %if %{with license_agreement} |
8525291b | 22 | BuildRequires: unzip |
af4c66f1 | 23 | %endif |
ac602993 | 24 | BuildRequires: xorg-lib-libX11-devel |
c283af33 | 25 | BuildRequires: xorg-lib-libXext-devel |
d657d007 | 26 | BuildRequires: zlib-devel |
5f8fb39a | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d657d007 | 28 | |
8e539164 TP |
29 | %define specflags -fomit-frame-pointer |
30 | ||
d657d007 | 31 | %description |
5af21d09 JB |
32 | This is Atari 800, 800XL, 130XE and 5200 emulator. |
33 | ||
a1f05138 | 34 | %description -l pl.UTF-8 |
5af21d09 | 35 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
d657d007 JB |
36 | |
37 | %package common | |
e54121ec JB |
38 | Summary: Atari 800 Emulator - common files for SDL and X11 versions |
39 | Summary(pl.UTF-8): Emulator Atari 800 - pliki wspólne dla wersji SDL oraz X11 | |
d657d007 | 40 | Group: Applications/Emulators |
d657d007 | 41 | Obsoletes: Atari800 |
e78a2596 | 42 | %if !%{with license_agreement} |
af4c66f1 | 43 | Requires(post): unzip |
96d99a48 | 44 | %endif |
d657d007 JB |
45 | |
46 | %description common | |
47 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
48 | ||
e54121ec | 49 | This package contains common files for both SDL and X11 versions |
d657d007 | 50 | of Atari800. |
e78a2596 | 51 | %if !%{with license_agreement} |
96d99a48 | 52 | Note: because of license problems we had to include whole X-Former |
af4c66f1 | 53 | archive (xf25.zip). If you don't want it - rebuild Atari800 (--with |
96d99a48 | 54 | license_agreement) |
55 | %endif | |
d657d007 | 56 | |
a1f05138 | 57 | %description common -l pl.UTF-8 |
d657d007 JB |
58 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
59 | ||
e54121ec | 60 | Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL |
d657d007 | 61 | oraz X11. |
e78a2596 | 62 | %if !%{with license_agreement} |
a1f05138 JR |
63 | Uwaga: z powodu problemów z licencją musieliśmy załączyć całą paczkę |
64 | z emulatorem X-Former (xf25.zip). Jeśli jej nie chcesz w pakiecie - | |
96d99a48 | 65 | przebuduj pakiet z opcja --with license_agreement. |
66 | %endif | |
d657d007 | 67 | |
d657d007 JB |
68 | %package x11 |
69 | Summary: Atari 800 Emulator - X Window version | |
e54121ec | 70 | Summary(pl.UTF-8): Emulator Atari 800 - wersja dla systemu X Window |
506ed555 | 71 | License: GPL |
d657d007 | 72 | Group: Applications/Emulators |
c283af33 | 73 | Requires: %{name}-common = %{version}-%{release} |
d657d007 JB |
74 | |
75 | %description x11 | |
76 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
77 | ||
78 | This package contains Atari800 executable file configured for X11 with | |
ac602993 | 79 | OSS sound and joystick support. |
d657d007 | 80 | |
a1f05138 | 81 | %description x11 -l pl.UTF-8 |
d657d007 JB |
82 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
83 | ||
84 | Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z | |
ac602993 | 85 | obsługą dźwięku OSS i joysticka. |
d657d007 | 86 | |
9a1322ff | 87 | %package SDL |
88 | Summary: Atari 800 Emulator - SDL version | |
e54121ec | 89 | Summary(pl.UTF-8): Emulator Atari 800 - wersja SDL |
506ed555 | 90 | License: GPL |
9a1322ff | 91 | Group: Applications/Emulators |
c283af33 | 92 | Requires: %{name}-common = %{version}-%{release} |
e54121ec | 93 | Obsoletes: Atari800-svga |
9a1322ff | 94 | |
95 | %description SDL | |
96 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
97 | ||
98 | This package contains Atari800 executable file configured for SDL with | |
99 | sound and joystick support. | |
100 | ||
a1f05138 | 101 | %description SDL -l pl.UTF-8 |
9a1322ff | 102 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
103 | ||
104 | Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z | |
a1f05138 | 105 | obsługą dźwięku i joysticka. |
9a1322ff | 106 | |
d657d007 | 107 | %prep |
4155e5a1 | 108 | %setup -q -n atari800-%{version} |
d657d007 JB |
109 | |
110 | %build | |
111 | cd src | |
29088af5 | 112 | rm config.sub |
6724d276 | 113 | cp -f /usr/share/automake/config.sub . |
114 | ||
3b3b5f88 | 115 | %configure \ |
ac602993 | 116 | --target=x11-shm \ |
64f9b058 | 117 | --enable-crashmenu \ |
ac602993 JB |
118 | --disable-stereosound \ |
119 | --with-sound=sdl \ | |
120 | --with-video=sdl | |
c4608639 | 121 | |
8525291b JB |
122 | %{__make} |
123 | ||
ac602993 | 124 | %{__mv} atari800 atari800-SDL |
d657d007 | 125 | |
31f4e061 JB |
126 | %{__make} clean |
127 | ||
3b3b5f88 | 128 | %configure \ |
ac602993 | 129 | --target=x11-shm \ |
64f9b058 | 130 | --enable-crashmenu \ |
ac602993 JB |
131 | --disable-stereosound \ |
132 | --with-sound=oss \ | |
133 | --with-video=no | |
9a1322ff | 134 | |
8525291b | 135 | %{__make} |
506ed555 | 136 | |
ac602993 | 137 | %{__mv} atari800 atari800-x11 |
d657d007 JB |
138 | |
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
0a51bfa3 | 141 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1} |
d657d007 | 142 | |
8525291b JB |
143 | install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir} |
144 | install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir} | |
d657d007 | 145 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800 |
8525291b | 146 | install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1 |
d657d007 | 147 | |
96d99a48 | 148 | %if %{with license_agreement} |
d657d007 | 149 | unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800 |
e54121ec | 150 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.* |
d657d007 JB |
151 | %else |
152 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800 | |
153 | %endif | |
154 | ||
d657d007 JB |
155 | %clean |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
e78a2596 | 158 | %if !%{with license_agreement} |
d657d007 JB |
159 | %post common |
160 | cd %{_datadir}/atari800 | |
5cec04d2 JB |
161 | if [ "`echo *.rom`" = "*.rom" ]; then |
162 | umask 022 | |
163 | unzip -q -L xf25.zip | |
164 | rm -f xf25.doc xf25.exe | |
165 | fi | |
d657d007 JB |
166 | %endif |
167 | ||
168 | %files common | |
169 | %defattr(644,root,root,755) | |
0b42a17c | 170 | %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.1ST |
f9059396 | 171 | %attr(755,root,root) %{_bindir}/atari800 |
d657d007 JB |
172 | %{_datadir}/atari800 |
173 | %{_mandir}/man1/atari800.1* | |
d657d007 | 174 | |
d657d007 JB |
175 | %files x11 |
176 | %defattr(644,root,root,755) | |
8525291b | 177 | %attr(755,root,root) %{_bindir}/atari800-x11 |
9a1322ff | 178 | |
179 | %files SDL | |
180 | %defattr(644,root,root,755) | |
8525291b | 181 | %attr(755,root,root) %{_bindir}/atari800-SDL |