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