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