]>
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 |
e33b8bdc JB |
8 | Version: 4.2.0 |
9 | Release: 1 | |
e54121ec | 10 | License: GPL v2+ (Atari800), distributable if unmodified (xf25 with ROMs) |
d657d007 | 11 | Group: Applications/Emulators |
e33b8bdc JB |
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 | |
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 |
56ebf01c | 19 | URL: https://atari800.github.io/ |
8525291b | 20 | BuildRequires: SDL-devel |
f19ff0c8 | 21 | BuildRequires: automake |
af4c66f1 | 22 | %if %{with license_agreement} |
8525291b | 23 | BuildRequires: unzip |
af4c66f1 | 24 | %endif |
ac602993 | 25 | BuildRequires: xorg-lib-libX11-devel |
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 | |
e54121ec JB |
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 | |
d657d007 | 41 | Group: Applications/Emulators |
d657d007 | 42 | Obsoletes: Atari800 |
e33b8bdc | 43 | %if %{without 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 | ||
e54121ec | 50 | This package contains common files for both SDL and X11 versions |
d657d007 | 51 | of Atari800. |
e33b8bdc | 52 | %if %{without 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 | ||
e54121ec | 61 | Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL |
d657d007 | 62 | oraz X11. |
e33b8bdc | 63 | %if %{without 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 | 68 | |
d657d007 JB |
69 | %package x11 |
70 | Summary: Atari 800 Emulator - X Window version | |
e54121ec | 71 | Summary(pl.UTF-8): Emulator Atari 800 - wersja dla systemu X Window |
506ed555 | 72 | License: GPL |
d657d007 | 73 | Group: Applications/Emulators |
c283af33 | 74 | Requires: %{name}-common = %{version}-%{release} |
d657d007 JB |
75 | |
76 | %description x11 | |
77 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
78 | ||
79 | This package contains Atari800 executable file configured for X11 with | |
ac602993 | 80 | OSS sound and joystick support. |
d657d007 | 81 | |
a1f05138 | 82 | %description x11 -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 X11 z | |
ac602993 | 86 | obsługą dźwięku OSS i joysticka. |
d657d007 | 87 | |
9a1322ff | 88 | %package SDL |
89 | Summary: Atari 800 Emulator - SDL version | |
e54121ec | 90 | Summary(pl.UTF-8): Emulator Atari 800 - wersja SDL |
506ed555 | 91 | License: GPL |
9a1322ff | 92 | Group: Applications/Emulators |
c283af33 | 93 | Requires: %{name}-common = %{version}-%{release} |
e54121ec | 94 | Obsoletes: Atari800-svga |
9a1322ff | 95 | |
96 | %description SDL | |
97 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
98 | ||
99 | This package contains Atari800 executable file configured for SDL with | |
100 | sound and joystick support. | |
101 | ||
a1f05138 | 102 | %description SDL -l pl.UTF-8 |
9a1322ff | 103 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
104 | ||
105 | Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z | |
a1f05138 | 106 | obsługą dźwięku i joysticka. |
9a1322ff | 107 | |
d657d007 | 108 | %prep |
4155e5a1 | 109 | %setup -q -n atari800-%{version} |
d657d007 JB |
110 | |
111 | %build | |
6724d276 | 112 | cp -f /usr/share/automake/config.sub . |
113 | ||
3b3b5f88 | 114 | %configure \ |
e33b8bdc | 115 | --target=default \ |
64f9b058 | 116 | --enable-crashmenu \ |
e33b8bdc | 117 | --disable-silent-rules \ |
ac602993 JB |
118 | --disable-stereosound \ |
119 | --with-sound=sdl \ | |
120 | --with-video=sdl | |
c4608639 | 121 | |
8525291b JB |
122 | %{__make} |
123 | ||
e33b8bdc | 124 | %{__mv} src/atari800 atari800-SDL |
d657d007 | 125 | |
31f4e061 JB |
126 | %{__make} clean |
127 | ||
3b3b5f88 | 128 | %configure \ |
ac602993 | 129 | --target=x11-shm \ |
64f9b058 | 130 | --enable-crashmenu \ |
e33b8bdc | 131 | --disable-silent-rules \ |
ac602993 JB |
132 | --disable-stereosound \ |
133 | --with-sound=oss \ | |
e33b8bdc | 134 | --with-video=yes |
9a1322ff | 135 | |
8525291b | 136 | %{__make} |
506ed555 | 137 | |
e33b8bdc | 138 | %{__mv} src/atari800 atari800-x11 |
d657d007 JB |
139 | |
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
0a51bfa3 | 142 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1} |
d657d007 | 143 | |
e33b8bdc JB |
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 | |
d657d007 | 148 | |
96d99a48 | 149 | %if %{with license_agreement} |
d657d007 | 150 | unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800 |
e54121ec | 151 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.* |
d657d007 JB |
152 | %else |
153 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800 | |
154 | %endif | |
155 | ||
d657d007 JB |
156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
e33b8bdc | 159 | %if %{without license_agreement} |
d657d007 JB |
160 | %post common |
161 | cd %{_datadir}/atari800 | |
5cec04d2 JB |
162 | if [ "`echo *.rom`" = "*.rom" ]; then |
163 | umask 022 | |
164 | unzip -q -L xf25.zip | |
165 | rm -f xf25.doc xf25.exe | |
166 | fi | |
d657d007 JB |
167 | %endif |
168 | ||
169 | %files common | |
170 | %defattr(644,root,root,755) | |
e33b8bdc | 171 | %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.TXT |
f9059396 | 172 | %attr(755,root,root) %{_bindir}/atari800 |
d657d007 JB |
173 | %{_datadir}/atari800 |
174 | %{_mandir}/man1/atari800.1* | |
d657d007 | 175 | |
d657d007 JB |
176 | %files x11 |
177 | %defattr(644,root,root,755) | |
8525291b | 178 | %attr(755,root,root) %{_bindir}/atari800-x11 |
9a1322ff | 179 | |
180 | %files SDL | |
181 | %defattr(644,root,root,755) | |
8525291b | 182 | %attr(755,root,root) %{_bindir}/atari800-SDL |