]>
Commit | Line | Data |
---|---|---|
b0de4b1b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with capsimage # use capsimage for .IPF, .RAW and .CTR disk image support | |
c241a189 | 4 | %bcond_with scsi # SCSI devices emulation (uses libscg: cdrtools <= 2.01.01a08 or result is non-distributable) |
b0de4b1b | 5 | |
ace54af1 | 6 | Summary: Unix Amiga Emulator |
22c20a80 | 7 | Summary(pl.UTF-8): Uniksowy emulator Amigi |
ace54af1 | 8 | Name: e-uae |
91033d21 | 9 | Version: 0.8.29 |
b0de4b1b JB |
10 | %define subver WIP4 |
11 | Release: 0.%{subver}.0.1 | |
12 | License: GPL v2 | |
ace54af1 | 13 | Group: Applications/Emulators |
b0de4b1b JB |
14 | Source0: http://www.rcdrummond.net/uae/e-uae-%{version}-%{subver}/%{name}-%{version}-%{subver}.tar.bz2 |
15 | # Source0-md5: cbfd7e3d7a1b323331afbb92ea7ff4f0 | |
671033bc | 16 | Source1: uae.desktop |
17 | Source2: uae.png | |
b0de4b1b JB |
18 | Patch0: %{name}-format.patch |
19 | Patch1: %{name}-ucontext.patch | |
20 | Patch2: %{name}-system-libscg.patch | |
ace54af1 | 21 | URL: http://www.rcdrummond.net/uae/ |
b0de4b1b | 22 | BuildRequires: OpenGL-GLU-devel |
401ff7db | 23 | BuildRequires: SDL-devel >= 1.2.0 |
671033bc | 24 | BuildRequires: alsa-lib-devel |
b0de4b1b JB |
25 | BuildRequires: autoconf >= 2.55 |
26 | BuildRequires: automake >= 1:1.7 | |
c241a189 JB |
27 | %if %{with scsi} |
28 | BuildRequires: cdrtools-devel >= 2:2.01 | |
29 | #BuildRequires: cdrtools-devel <= 2:2.01.01a09 | |
30 | %endif | |
401ff7db | 31 | BuildRequires: gtk+2-devel >= 2.0.0 |
b0de4b1b | 32 | %{?with_capsimage:BuildRequires: libcapsimage-devel} |
401ff7db | 33 | BuildRequires: pkgconfig |
b0de4b1b JB |
34 | BuildRequires: xorg-lib-libX11-devel |
35 | BuildRequires: xorg-lib-libXext-devel | |
36 | BuildRequires: xorg-lib-libXxf86dga-devel | |
37 | BuildRequires: xorg-lib-libXxf86vm-devel | |
38 | BuildRequires: xorg-lib-libxkbfile-devel | |
39 | BuildRequires: zlib-devel | |
ace54af1 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | This is a version of UAE, the Ubiquitous Amiga Emulator, with an | |
44 | emulation core based on WinUAE 0.8.27. It attempts to bring many of | |
45 | the great features of WinUAE to non-Windows platforms. This version | |
46 | now finally has a name, E-UAE, since that's what everybody was calling | |
47 | it anyway. The 'E' can stand for anything you fancy. Experimental, | |
48 | extreme, exciting, egalitarian, eggplant, ... | |
49 | ||
386e35d1 JR |
50 | %description -l pl.UTF-8 |
51 | To jest wersja UAE (Ubiquitous Amiga Emulator - wszędobylskiego | |
401ff7db | 52 | emulatora Amigi) z rdzeniem emulatora opartym na WinUAE 0.8.27. Jest |
386e35d1 JR |
53 | to próba przeniesienia wielu wspaniałych możliwości WinUAE na |
54 | platformy inne niż Windows. Ta wersja ma wreszcie nazwę - E-UAE - jako | |
55 | że właśnie tak wszyscy ją nazywali. "E" może oznaczać co tylko chcemy. | |
56 | Eksperymentalny, ekstremalny, ekscytujący, egalitarny... | |
227ad5c6 | 57 | |
671033bc | 58 | %package sdl |
59 | Summary: Unix Amiga Emulator, SDL version | |
22c20a80 | 60 | Summary(pl.UTF-8): Uniksowy emulator Amigi, wersja SDL |
671033bc | 61 | Group: Applications/Emulators |
62 | ||
63 | %description sdl | |
64 | This is a version of UAE, the Ubiquitous Amiga Emulator, with an | |
65 | emulation core based on WinUAE 0.8.27. It attempts to bring many of | |
66 | the great features of WinUAE to non-Windows platforms. This version | |
67 | now finally has a name, E-UAE, since that's what everybody was calling | |
68 | it anyway. The 'E' can stand for anything you fancy. Experimental, | |
69 | extreme, exciting, egalitarian, eggplant, ... | |
70 | ||
71 | This version uses SDL as audio and video output. | |
72 | ||
386e35d1 JR |
73 | %description sdl -l pl.UTF-8 |
74 | To jest wersja UAE (Ubiquitous Amiga Emulator - wszędobylskiego | |
671033bc | 75 | emulatora Amigi) z rdzeniem emulatora opartym na WinUAE 0.8.27. Jest |
386e35d1 JR |
76 | to próba przeniesienia wielu wspaniałych możliwości WinUAE na |
77 | platformy inne niż Windows. Ta wersja ma wreszcie nazwę - E-UAE - jako | |
78 | że właśnie tak wszyscy ją nazywali. "E" może oznaczać co tylko chcemy. | |
79 | Eksperymentalny, ekstremalny, ekscytujący, egalitarny... | |
671033bc | 80 | |
b0de4b1b | 81 | Ta wersja używa SDL jako wyjścia dźwięk i obrazu. |
671033bc | 82 | |
ace54af1 | 83 | %prep |
b0de4b1b JB |
84 | %setup -q -n %{name}-%{version}-%{subver} |
85 | %patch0 -p1 | |
86 | %patch1 -p1 | |
87 | %patch2 -p1 | |
ace54af1 | 88 | |
89 | %build | |
b0de4b1b JB |
90 | %{__aclocal} -I m4 |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
671033bc | 94 | CONFOPTS=`cat` << EOF |
b0de4b1b | 95 | --enable-action-replay |
671033bc | 96 | --enable-aga |
b0de4b1b | 97 | --enable-audio |
671033bc | 98 | --enable-autoconfig |
671033bc | 99 | --enable-bsdsock |
100 | --enable-bsdsock-new | |
b0de4b1b JB |
101 | --enable-cd32 |
102 | --enable-cdtv | |
103 | --enable-compatible-cpu | |
104 | --enable-cycle-exact-cpu | |
671033bc | 105 | --enable-enforcer |
671033bc | 106 | --enable-fdi |
c241a189 | 107 | --enable-scsi-device%{!?with_scsi:=no} |
b0de4b1b JB |
108 | --enable-threads |
109 | --enable-ui | |
110 | --with-caps%{!?with_capsimage:=no} | |
671033bc | 111 | EOF |
112 | ||
ace54af1 | 113 | %configure \ |
671033bc | 114 | $CONFOPTS \ |
115 | --disable-dga \ | |
116 | --disable-vidmode \ | |
117 | --without-alsa \ | |
118 | --with-sdl \ | |
b0de4b1b JB |
119 | --with-sdl-gfx \ |
120 | --with-sdl-gl \ | |
121 | --with-sdl-sound | |
122 | %{__make} -j1 | |
123 | %{__mv} src/uae e-uae-sdl | |
671033bc | 124 | %{__make} clean |
125 | ||
126 | %configure \ | |
127 | $CONFOPTS \ | |
128 | --enable-dga \ | |
129 | --enable-vidmode \ | |
130 | --with-alsa \ | |
671033bc | 131 | --without-sdl \ |
b0de4b1b | 132 | --without-sdl-gfx \ |
671033bc | 133 | --without-sdl-sound \ |
b0de4b1b JB |
134 | --with-x |
135 | %{__make} -j1 | |
136 | %{__mv} src/uae e-uae | |
ace54af1 | 137 | |
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
671033bc | 140 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}} |
ace54af1 | 141 | |
b0de4b1b | 142 | install e-uae* $RPM_BUILD_ROOT%{_bindir} |
671033bc | 143 | sed %{SOURCE1} -e 's/uae/e-uae/' -e 's/UAE/E-UAE/' \ |
144 | > $RPM_BUILD_ROOT%{_desktopdir}/e-uae.desktop | |
145 | sed %{SOURCE1} -e 's/uae/e-uae-sdl/' -e 's/UAE/E-UAE SDL/' \ | |
146 | > $RPM_BUILD_ROOT%{_desktopdir}/e-uae-sdl.desktop | |
b0de4b1b JB |
147 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/e-uae.png |
148 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/e-uae-sdl.png | |
ace54af1 | 149 | |
150 | %clean | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %files | |
154 | %defattr(644,root,root,755) | |
155 | %doc ChangeLog README docs/* | |
b0de4b1b | 156 | %attr(755,root,root) %{_bindir}/e-uae |
671033bc | 157 | %{_desktopdir}/e-uae.desktop |
158 | %{_pixmapsdir}/e-uae.png | |
159 | ||
160 | %files sdl | |
161 | %defattr(644,root,root,755) | |
162 | %doc ChangeLog README docs/* | |
b0de4b1b | 163 | %attr(755,root,root) %{_bindir}/e-uae-sdl |
671033bc | 164 | %{_desktopdir}/e-uae-sdl.desktop |
165 | %{_pixmapsdir}/e-uae-sdl.png |