]>
Commit | Line | Data |
---|---|---|
d657d007 | 1 | Summary: Atari 800 Emulator |
ad763a77 | 2 | Summary(pl.UTF-8): Emulator Atari 800 |
d657d007 | 3 | Name: Atari800 |
e33b8bdc JB |
4 | Version: 4.2.0 |
5 | Release: 1 | |
f2116da1 | 6 | License: GPL v2+ |
d657d007 | 7 | Group: Applications/Emulators |
e33b8bdc JB |
8 | #Source0Download: https://github.com/atari800/atari800/releases |
9 | Source0: https://github.com/atari800/atari800/releases/download/ATARI800_4_2_0/atari800-%{version}-src.tgz | |
10 | # Source0-md5: 695031b9bc3461cd18ec9090779d984b | |
f2116da1 | 11 | Source1: %{name}-chooser |
b5c8cf13 | 12 | Patch0: %{name}-romdir.patch |
cd06230f | 13 | Patch1: %{name}-nodisk.patch |
56ebf01c | 14 | URL: https://atari800.github.io/ |
b5c8cf13 | 15 | BuildRequires: SDL-devel >= 1.2 |
f19ff0c8 | 16 | BuildRequires: automake |
b5c8cf13 JB |
17 | BuildRequires: libpng-devel |
18 | BuildRequires: readline-devel | |
ac602993 | 19 | BuildRequires: xorg-lib-libX11-devel |
c283af33 | 20 | BuildRequires: xorg-lib-libXext-devel |
d657d007 | 21 | BuildRequires: zlib-devel |
5f8fb39a | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d657d007 | 23 | |
8e539164 TP |
24 | %define specflags -fomit-frame-pointer |
25 | ||
d657d007 | 26 | %description |
5af21d09 JB |
27 | This is Atari 800, 800XL, 130XE and 5200 emulator. |
28 | ||
a1f05138 | 29 | %description -l pl.UTF-8 |
5af21d09 | 30 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
d657d007 JB |
31 | |
32 | %package common | |
e54121ec JB |
33 | Summary: Atari 800 Emulator - common files for SDL and X11 versions |
34 | Summary(pl.UTF-8): Emulator Atari 800 - pliki wspólne dla wersji SDL oraz X11 | |
d657d007 | 35 | Group: Applications/Emulators |
f2116da1 JB |
36 | Suggests: Atari800-rom |
37 | Obsoletes: Atari800 < 1.0.7 | |
d657d007 JB |
38 | |
39 | %description common | |
40 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
41 | ||
e54121ec | 42 | This package contains common files for both SDL and X11 versions |
d657d007 | 43 | of Atari800. |
d657d007 | 44 | |
a1f05138 | 45 | %description common -l pl.UTF-8 |
d657d007 JB |
46 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
47 | ||
e54121ec | 48 | Ten pakiet zawiera pliki wspólne dla wersji działających pod SDL |
d657d007 | 49 | oraz X11. |
d657d007 | 50 | |
d657d007 JB |
51 | %package x11 |
52 | Summary: Atari 800 Emulator - X Window version | |
e54121ec | 53 | Summary(pl.UTF-8): Emulator Atari 800 - wersja dla systemu X Window |
d657d007 | 54 | Group: Applications/Emulators |
c283af33 | 55 | Requires: %{name}-common = %{version}-%{release} |
d657d007 JB |
56 | |
57 | %description x11 | |
58 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
59 | ||
60 | This package contains Atari800 executable file configured for X11 with | |
ac602993 | 61 | OSS sound and joystick support. |
d657d007 | 62 | |
a1f05138 | 63 | %description x11 -l pl.UTF-8 |
d657d007 JB |
64 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
65 | ||
66 | Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z | |
ac602993 | 67 | obsługą dźwięku OSS i joysticka. |
d657d007 | 68 | |
9a1322ff | 69 | %package SDL |
70 | Summary: Atari 800 Emulator - SDL version | |
e54121ec | 71 | Summary(pl.UTF-8): Emulator Atari 800 - wersja SDL |
9a1322ff | 72 | Group: Applications/Emulators |
c283af33 | 73 | Requires: %{name}-common = %{version}-%{release} |
f2116da1 | 74 | Obsoletes: Atari800-svga < 2.1.0 |
9a1322ff | 75 | |
76 | %description SDL | |
77 | This is Atari 800, 800XL, 130XE and 5200 emulator. | |
78 | ||
79 | This package contains Atari800 executable file configured for SDL with | |
80 | sound and joystick support. | |
81 | ||
a1f05138 | 82 | %description SDL -l pl.UTF-8 |
9a1322ff | 83 | To jest emulator Atari 800, 800XL, 130XE i 5200. |
84 | ||
85 | Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z | |
a1f05138 | 86 | obsługą dźwięku i joysticka. |
9a1322ff | 87 | |
d657d007 | 88 | %prep |
4155e5a1 | 89 | %setup -q -n atari800-%{version} |
b5c8cf13 | 90 | %patch0 -p1 |
cd06230f | 91 | %patch1 -p1 |
d657d007 JB |
92 | |
93 | %build | |
6724d276 | 94 | cp -f /usr/share/automake/config.sub . |
95 | ||
3b3b5f88 | 96 | %configure \ |
e33b8bdc | 97 | --target=default \ |
64f9b058 | 98 | --enable-crashmenu \ |
e33b8bdc | 99 | --disable-silent-rules \ |
ac602993 JB |
100 | --disable-stereosound \ |
101 | --with-sound=sdl \ | |
102 | --with-video=sdl | |
c4608639 | 103 | |
8525291b JB |
104 | %{__make} |
105 | ||
e33b8bdc | 106 | %{__mv} src/atari800 atari800-SDL |
d657d007 | 107 | |
31f4e061 JB |
108 | %{__make} clean |
109 | ||
3b3b5f88 | 110 | %configure \ |
ac602993 | 111 | --target=x11-shm \ |
64f9b058 | 112 | --enable-crashmenu \ |
e33b8bdc | 113 | --disable-silent-rules \ |
ac602993 JB |
114 | --disable-stereosound \ |
115 | --with-sound=oss \ | |
e33b8bdc | 116 | --with-video=yes |
9a1322ff | 117 | |
8525291b | 118 | %{__make} |
506ed555 | 119 | |
e33b8bdc | 120 | %{__mv} src/atari800 atari800-x11 |
d657d007 JB |
121 | |
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
0a51bfa3 | 124 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1} |
d657d007 | 125 | |
e33b8bdc JB |
126 | install atari800-x11 $RPM_BUILD_ROOT%{_bindir} |
127 | install atari800-SDL $RPM_BUILD_ROOT%{_bindir} | |
f2116da1 | 128 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/atari800 |
e33b8bdc | 129 | cp -p src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1 |
d657d007 | 130 | |
d657d007 JB |
131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
d657d007 JB |
134 | %files common |
135 | %defattr(644,root,root,755) | |
e33b8bdc | 136 | %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.TXT |
f9059396 | 137 | %attr(755,root,root) %{_bindir}/atari800 |
f2116da1 | 138 | %dir %{_datadir}/atari800 |
d657d007 | 139 | %{_mandir}/man1/atari800.1* |
d657d007 | 140 | |
d657d007 JB |
141 | %files x11 |
142 | %defattr(644,root,root,755) | |
8525291b | 143 | %attr(755,root,root) %{_bindir}/atari800-x11 |
9a1322ff | 144 | |
145 | %files SDL | |
146 | %defattr(644,root,root,755) | |
8525291b | 147 | %attr(755,root,root) %{_bindir}/atari800-SDL |