]>
Commit | Line | Data |
---|---|---|
fca55126 | 1 | # NOTE: if /dev/shm is mounted, it cannot be mounted with noexec |
5a6901a1 | 2 | # |
e9666683 | 3 | # Conditional build: |
a686c781 | 4 | %bcond_with static # link statically |
9b027d85 | 5 | %bcond_with AC |
a686c781 | 6 | %bcond_without x # X support |
195aed99 | 7 | # |
973c01b0 | 8 | %define smarthogver 0.1.0 |
9 | ||
da1497e3 | 10 | Summary: A DOS emulator |
0fe4c4ac ER |
11 | Summary(de.UTF-8): DOS-Emulator |
12 | Summary(es.UTF-8): Emulador DOS | |
13 | Summary(fr.UTF-8): Emulateur DOS | |
14 | Summary(pl.UTF-8): Emulator DOS-a | |
15 | Summary(pt_BR.UTF-8): Emulador DOS | |
16 | Summary(tr.UTF-8): DOS öykünümcüsü | |
c862c4bd | 17 | Name: dosemu |
9ea616e8 | 18 | Version: 1.4.0 |
8a2c555a | 19 | Release: 1 |
b66e631f | 20 | License: GPL v2 |
c862c4bd | 21 | Group: Applications/Emulators |
a3a13b13 | 22 | Source0: http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz |
9ea616e8 | 23 | # Source0-md5: 0bba530637266f99d404ba15e3f118d4 |
cfc89689 | 24 | #Source2: %{name}-sys.tar.gz |
43f8c6e0 | 25 | Source3: %{name}-PRZECZYTAJ_TO |
26 | Source4: %{name}-README.PLD | |
94ac2ec1 | 27 | Source5: %{name}.desktop |
64b715a8 | 28 | Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2 |
c6284999 | 29 | # Source6-md5: 7a8abf5c656e6b99bdd03a4783751895 |
973c01b0 | 30 | Source7: smarthog-%{smarthogver}.tgz |
5a6901a1 | 31 | Patch0: %{name}-man-pages.patch |
41f91c77 JB |
32 | Patch1: %{name}-make-new.patch |
33 | Patch2: %{name}-%{name}_conf.patch | |
34 | Patch3: %{name}-doSgmlTools.patch | |
35 | Patch4: %{name}-makehtml.patch | |
60355b3e | 36 | URL: http://www.dosemu.org/ |
a686c781 | 37 | BuildRequires: SDL-devel |
22f69265 JB |
38 | BuildRequires: alsa-lib-devel >= 0.9 |
39 | BuildRequires: autoconf >= 2.59-9 | |
40 | BuildRequires: bin86 | |
41 | BuildRequires: bison | |
42 | BuildRequires: docbook-dtd30-sgml | |
43 | BuildRequires: docbook-style-dsssl | |
44 | BuildRequires: flex | |
45 | %{?with_static:BuildRequires: glibc-static} | |
46 | BuildRequires: gpm-devel | |
47 | BuildRequires: libsndfile-devel | |
48 | BuildRequires: lynx | |
49 | BuildRequires: openjade | |
50 | BuildRequires: perl-base | |
51 | BuildRequires: sgml-tools | |
52 | BuildRequires: slang-devel | |
53 | %{?with_static:BuildRequires: slang-static} | |
54 | BuildRequires: unzip | |
55 | BuildRequires: util-linux | |
944d6dca | 56 | %if %{with x} |
a1436bdb | 57 | %if !%{with AC} |
22f69265 | 58 | BuildRequires: xorg-app-bdftopcf |
9b027d85 | 59 | BuildRequires: xorg-lib-libX11-devel |
9f183f46 JB |
60 | BuildRequires: xorg-lib-libXext-devel |
61 | BuildRequires: xorg-lib-libXxf86vm-devel | |
62 | %if %{with static} | |
63 | BuildRequires: xorg-lib-libX11-static | |
64 | BuildRequires: xorg-lib-libXext-static | |
65 | BuildRequires: xorg-lib-libXxf86vm-static | |
66 | %endif | |
9b027d85 | 67 | %endif |
68 | %if %{with AC} | |
69 | BuildRequires: X11-devel | |
70 | %{?with_static:BuildRequires: X11-static} | |
71 | %endif | |
944d6dca | 72 | %endif |
a686c781 | 73 | Obsoletes: xdosemu |
df372c25 | 74 | Conflicts: dosemu-freedos-minimal < 2.0.33 |
60355b3e | 75 | Conflicts: kernel < 2.0.28 |
c0f4f489 | 76 | Conflicts: mtools < 3.6 |
86a5b248 | 77 | ExclusiveArch: %{ix86} %{x8664} |
a686c781 | 78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ba5a3e97 | 79 | |
bc65a259 | 80 | %define _dosemudir /var/lib/dosemu |
706f41ca | 81 | %define specflags -fomit-frame-pointer |
bc65a259 | 82 | |
ba5a3e97 | 83 | %description |
423a8769 | 84 | Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS |
7906a402 | 85 | emulator by typing in the "dos" command. |
ba5a3e97 | 86 | |
423a8769 | 87 | You need to install dosemu if you use DOS programs and you want to be |
da1497e3 | 88 | able to run them on your GNU/Linux system. You may also need to |
d4571942 | 89 | install the dosemu-freedos-* packages. |
ba5a3e97 | 90 | |
4cf10f0c JR |
91 | %description -l pl.UTF-8 |
92 | Dosemu to Emulator systemu DOS. Po zainstalowaniu możesz go uruchomić | |
93 | komendą "dos". | |
c7030b75 | 94 | |
4cf10f0c JR |
95 | Jeśli korzystasz z dosowych programów i chciałbyś je uruchamiać na |
96 | twoim linuksowym systemie zainstaluj dosemu. Możesz też potrzebować | |
97 | pakietów dosemu-freedos-*. | |
c7030b75 | 98 | |
4cf10f0c JR |
99 | %description -l pt_BR.UTF-8 |
100 | Essa é uma versão do emulador DOS que foi projetada para rodar em | |
101 | sessões X Window. Oferece suporte para gráficos VGA bem como suporte | |
70c941aa | 102 | para mouse. |
103 | ||
ca49bbcd | 104 | %package utils |
105 | Summary: Utilities for dosemu | |
0fe4c4ac | 106 | Summary(pl.UTF-8): Programy pomocnicze do dosemu |
63115fbb | 107 | Group: Applications/Emulators |
a686c781 | 108 | Requires: %{name} = %{version}-%{release} |
ca49bbcd | 109 | |
110 | %description utils | |
111 | Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16. | |
112 | ||
4cf10f0c | 113 | %description utils -l pl.UTF-8 |
63115fbb | 114 | Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage, |
115 | mkfatimage16. | |
ca49bbcd | 116 | |
a686c781 JB |
117 | %package SDL |
118 | Summary: SDL plugin for dosemu | |
0fe4c4ac | 119 | Summary(pl.UTF-8): Wtyczka SDL dla dosemu |
a686c781 JB |
120 | Group: Libraries |
121 | Requires: %{name} = %{version}-%{release} | |
122 | ||
123 | %description SDL | |
124 | SDL plugin for dosemu. | |
125 | ||
4cf10f0c | 126 | %description SDL -l pl.UTF-8 |
a686c781 JB |
127 | Wtyczka SDL dla dosemu. |
128 | ||
129 | %package X | |
130 | Summary: X plugin for dosemu | |
0fe4c4ac | 131 | Summary(pl.UTF-8): Wtyczka X dla dosemu |
a686c781 JB |
132 | Group: Libraries |
133 | Requires: %{name} = %{version}-%{release} | |
134 | ||
135 | %description X | |
136 | X plugin for dosemu. | |
137 | ||
4cf10f0c | 138 | %description X -l pl.UTF-8 |
a686c781 JB |
139 | Wtyczka X dla dosemu. |
140 | ||
ba5a3e97 | 141 | %prep |
973c01b0 | 142 | %setup -q -a6 -a7 |
9f183f46 | 143 | %patch0 -p1 |
41f91c77 | 144 | %patch1 -p1 |
07def723 | 145 | %patch2 -p1 |
41f91c77 JB |
146 | %patch3 -p1 |
147 | %patch4 -p1 | |
c862c4bd | 148 | |
ba5a3e97 | 149 | %build |
706f41ca | 150 | OPTFLAGS="%{rpmcflags}"; export OPTFLAGS |
bc65a259 | 151 | |
5a6901a1 JB |
152 | ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \ |
153 | plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off | |
94ac2ec1 | 154 | |
d3c3cceb | 155 | %{__autoconf} |
41f91c77 | 156 | # configure2_13 must be used though because of ./default-configure |
d4571942 | 157 | |
bc65a259 | 158 | # non-X version |
64b715a8 | 159 | %configure2_13 \ |
a686c781 | 160 | %{?with_static:--enable-linkstatic} \ |
bc65a259 JB |
161 | --enable-new-intcode \ |
162 | --enable-aspi \ | |
a686c781 | 163 | %{!?with_x:--without-x} |
be639449 | 164 | |
a686c781 JB |
165 | %{__make} \ |
166 | WAIT=no | |
f40697b1 | 167 | |
944d6dca | 168 | %{__make} -C man |
07def723 JB |
169 | mv -f man/dosemu.bin.1 man/dosemu.1 |
170 | echo '.so dosemu.1' > man/dos.1 | |
171 | mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1 | |
172 | echo '.so dosemu.1' > man/ru/dos.1 | |
68b28186 | 173 | |
07def723 JB |
174 | mv -f pl/man1/dos.1 pl/man1/dosemu.1 |
175 | echo '.so dosemu.1' > pl/man1/dos.1 | |
176 | echo '.so dosemu.1' > pl/man1/xdosemu.1 | |
177 | echo '.so dosemu.1' > pl/man1/dosdebug.1 | |
0123a9a7 | 178 | |
94ac2ec1 | 179 | # documentation |
64b715a8 | 180 | %{__make} -C src/doc/DANG html |
181 | %{__make} -C src/doc/HOWTO html | |
182 | %{__make} -C src/doc/README html | |
183 | ||
5a6901a1 | 184 | find src/doc -name "*.html" -exec cp -f '{}' doc/ ';' |
94ac2ec1 | 185 | |
ba5a3e97 JR |
186 | %install |
187 | rm -rf $RPM_BUILD_ROOT | |
07def723 | 188 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}} \ |
c02feb1a | 189 | $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/{pl,ru}/man1} \ |
a686c781 JB |
190 | $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \ |
191 | $RPM_BUILD_ROOT%{_libdir}/dosemu | |
184d429c | 192 | |
90e084fa PG |
193 | #%%{__make} install \ |
194 | # DESTDIR=$RPM_BUILD_ROOT | |
cfc89689 | 195 | |
f39f9169 | 196 | install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid |
944d6dca | 197 | install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu |
a686c781 JB |
198 | ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/dos |
199 | %if %{with x} | |
200 | ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos | |
07def723 JB |
201 | ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu |
202 | ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec | |
944d6dca | 203 | %endif |
204 | ||
a686c781 JB |
205 | install bin/libplugin*.so $RPM_BUILD_ROOT%{_libdir}/dosemu |
206 | ||
a3a13b13 | 207 | install bin/{dosdebug,mkfatimage16} $RPM_BUILD_ROOT%{_bindir} |
9b027d85 | 208 | install src/tools/periph/{dexeconfig,hdinfo,mkhdimage} $RPM_BUILD_ROOT%{_bindir} |
bc65a259 | 209 | ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec |
c0f4f489 | 210 | |
5a6901a1 | 211 | install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
cfc89689 | 212 | install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users |
9ea99a74 | 213 | install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf |
214 | install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf | |
c0f4f489 | 215 | |
07def723 JB |
216 | install man/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1 |
217 | install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1 | |
218 | install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1 | |
c0f4f489 | 219 | |
cfc89689 | 220 | install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu |
221 | install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu | |
973c01b0 | 222 | install smarthog-%{smarthogver}/*.exe $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu |
43f8c6e0 | 223 | cp %{SOURCE3} PRZECZYTAJ_TO |
224 | cp %{SOURCE4} README.PLD | |
07def723 | 225 | install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir} |
43f8c6e0 | 226 | |
484a5449 | 227 | rm -f doc/{configuration,dosemu.lsm} |
31a9c5b7 | 228 | |
c862c4bd JR |
229 | %clean |
230 | rm -rf $RPM_BUILD_ROOT | |
ba5a3e97 | 231 | |
ba5a3e97 | 232 | %files |
c862c4bd | 233 | %defattr(644,root,root,755) |
e7c438c0 JB |
234 | %doc QuickStart COPYING ChangeLog* doc/* README.PLD |
235 | %lang(pl) %doc PRZECZYTAJ_TO | |
9ea99a74 | 236 | %dir %{_dosemudir} |
63c518df ER |
237 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dosemu.conf |
238 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dosemu.users | |
239 | %config(noreplace) %verify(not md5 mtime size) %{_dosemudir}/global.conf | |
9ea99a74 | 240 | %attr(755,root,root) %{_bindir}/dos |
c862c4bd | 241 | %attr(755,root,root) %{_bindir}/dosdebug |
a686c781 | 242 | %attr(755,root,root) %{_bindir}/dosemu |
bc65a259 | 243 | %attr(755,root,root) %{_bindir}/dosexec |
f39f9169 | 244 | %attr(755,root,root) %{_bindir}/midid |
a686c781 | 245 | %dir %{_libdir}/dosemu |
46200151 | 246 | %{_libdir}/dosemu/libplugin_alsa.so |
a686c781 | 247 | %{_libdir}/dosemu/libplugin_gpm.so |
46200151 | 248 | %{_libdir}/dosemu/libplugin_sndfile.so |
a686c781 | 249 | %{_libdir}/dosemu/libplugin_term.so |
a00bfe8f | 250 | %dir %{_dosemudir}/bootdir |
0123a9a7 | 251 | %dir %{_dosemudir}/bootdir/dosemu |
0123a9a7 | 252 | %{_dosemudir}/bootdir/dosemu/* |
c02feb1a | 253 | %{_mandir}/man1/d* |
bc65a259 | 254 | %lang(pl) %{_mandir}/pl/man1/d* |
c02feb1a | 255 | %lang(ru) %{_mandir}/ru/man1/d* |
31a9c5b7 | 256 | %{_pixmapsdir}/dosemu.xpm |
944d6dca | 257 | %if %{with x} |
ffd264d5 | 258 | %attr(755,root,root) %{_bindir}/xdos* |
07def723 | 259 | %{_mandir}/man1/xdosemu.1* |
07def723 | 260 | %lang(pl) %{_mandir}/pl/man1/xdosemu.1* |
07def723 | 261 | %lang(ru) %{_mandir}/ru/man1/xdosemu.1* |
a686c781 | 262 | %{_desktopdir}/dosemu.desktop |
944d6dca | 263 | %endif |
bc65a259 | 264 | |
ca49bbcd | 265 | %files utils |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_bindir}/dexeconfig | |
268 | %attr(755,root,root) %{_bindir}/hdinfo | |
269 | %attr(755,root,root) %{_bindir}/mkhdimage | |
a3a13b13 | 270 | %attr(755,root,root) %{_bindir}/mkfatimage16 |
c02feb1a JB |
271 | %{_mandir}/man1/mkfatimage16.1* |
272 | %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1* | |
a686c781 JB |
273 | |
274 | %files SDL | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/dosemu/libplugin_sdl.so | |
277 | ||
278 | %if %{with x} | |
279 | %files X | |
280 | %defattr(644,root,root,755) | |
281 | %attr(755,root,root) %{_libdir}/dosemu/libplugin_X.so | |
282 | %endif |