]> git.pld-linux.org Git - packages/dosemu.git/blame - dosemu.spec
- BR: xorg-app-mkfontdir
[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
d36e6dcb 67BuildRequires: xorg-app-mkfontdir
9b027d85 68BuildRequires: xorg-lib-libX11-devel
9f183f46
JB
69BuildRequires: xorg-lib-libXext-devel
70BuildRequires: xorg-lib-libXxf86vm-devel
71%if %{with static}
72BuildRequires: xorg-lib-libX11-static
73BuildRequires: xorg-lib-libXext-static
74BuildRequires: xorg-lib-libXxf86vm-static
75%endif
9b027d85 76%endif
77%if %{with AC}
78BuildRequires: X11-devel
79%{?with_static:BuildRequires: X11-static}
80%endif
944d6dca 81%endif
a686c781 82Obsoletes: xdosemu
df372c25 83Conflicts: dosemu-freedos-minimal < 2.0.33
60355b3e 84Conflicts: kernel < 2.0.28
c0f4f489 85Conflicts: mtools < 3.6
86a5b248 86ExclusiveArch: %{ix86} %{x8664}
a686c781 87BuildRoot: %{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 93Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
7906a402 94emulator by typing in the "dos" command.
ba5a3e97 95
423a8769 96You need to install dosemu if you use DOS programs and you want to be
da1497e3 97able to run them on your GNU/Linux system. You may also need to
d4571942 98install the dosemu-freedos-* packages.
ba5a3e97 99
4cf10f0c
JR
100%description -l pl.UTF-8
101Dosemu to Emulator systemu DOS. Po zainstalowaniu możesz go uruchomić
102komendą "dos".
c7030b75 103
4cf10f0c
JR
104Jeśli korzystasz z dosowych programów i chciałbyś je uruchamiać na
105twoim linuksowym systemie zainstaluj dosemu. Możesz też potrzebować
106pakietów dosemu-freedos-*.
c7030b75 107
4cf10f0c
JR
108%description -l pt_BR.UTF-8
109Essa é uma versão do emulador DOS que foi projetada para rodar em
110sessões X Window. Oferece suporte para gráficos VGA bem como suporte
70c941aa 111para mouse.
112
ca49bbcd 113%package utils
114Summary: Utilities for dosemu
0fe4c4ac 115Summary(pl.UTF-8): Programy pomocnicze do dosemu
63115fbb 116Group: Applications/Emulators
a686c781 117Requires: %{name} = %{version}-%{release}
ca49bbcd 118
119%description utils
120Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
121
4cf10f0c 122%description utils -l pl.UTF-8
63115fbb 123Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
124mkfatimage16.
ca49bbcd 125
a686c781
JB
126%package SDL
127Summary: SDL plugin for dosemu
0fe4c4ac 128Summary(pl.UTF-8): Wtyczka SDL dla dosemu
a686c781
JB
129Group: Libraries
130Requires: %{name} = %{version}-%{release}
131
132%description SDL
133SDL plugin for dosemu.
134
4cf10f0c 135%description SDL -l pl.UTF-8
a686c781
JB
136Wtyczka SDL dla dosemu.
137
138%package X
139Summary: X plugin for dosemu
0fe4c4ac 140Summary(pl.UTF-8): Wtyczka X dla dosemu
a686c781
JB
141Group: Libraries
142Requires: %{name} = %{version}-%{release}
143
144%description X
145X plugin for dosemu.
146
4cf10f0c 147%description X -l pl.UTF-8
a686c781
JB
148Wtyczka 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 164OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
bc65a259 165
5a6901a1
JB
166./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
167plugin_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
183mv -f man/dosemu.bin.1 man/dosemu.1
184echo '.so dosemu.1' > man/dos.1
185mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
186echo '.so dosemu.1' > man/ru/dos.1
68b28186 187
07def723
JB
188mv -f pl/man1/dos.1 pl/man1/dosemu.1
189echo '.so dosemu.1' > pl/man1/dos.1
190echo '.so dosemu.1' > pl/man1/xdosemu.1
191echo '.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 199find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
1654c7bd 200%endif
94ac2ec1 201
ba5a3e97
JR
202%install
203rm -rf $RPM_BUILD_ROOT
07def723 204install -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 212install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
944d6dca 213install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
a686c781
JB
214ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/dos
215%if %{with x}
216ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
07def723
JB
217ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
218ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
944d6dca 219%endif
220
a686c781
JB
221install bin/libplugin*.so $RPM_BUILD_ROOT%{_libdir}/dosemu
222
a3a13b13 223install bin/{dosdebug,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
9b027d85 224install src/tools/periph/{dexeconfig,hdinfo,mkhdimage} $RPM_BUILD_ROOT%{_bindir}
bc65a259 225ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
c0f4f489 226
5a6901a1 227install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
cfc89689 228install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
9ea99a74 229install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
230install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
c0f4f489 231
07def723
JB
232install man/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
233install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
234install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
c0f4f489 235
cfc89689 236install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
237install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
973c01b0 238install smarthog-%{smarthogver}/*.exe $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
43f8c6e0 239cp %{SOURCE3} PRZECZYTAJ_TO
240cp %{SOURCE4} README.PLD
07def723 241install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
43f8c6e0 242
484a5449 243rm -f doc/{configuration,dosemu.lsm}
31a9c5b7 244
c862c4bd
JR
245%clean
246rm -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
This page took 0.099467 seconds and 4 git commands to generate.