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