]> git.pld-linux.org Git - packages/dosemu.git/blame - dosemu.spec
- updated to 1.4.0
[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
a686c781 6%bcond_without x # X support
195aed99 7#
973c01b0 8%define smarthogver 0.1.0
9
da1497e3 10Summary: A DOS emulator
0fe4c4ac
ER
11Summary(de.UTF-8): DOS-Emulator
12Summary(es.UTF-8): Emulador DOS
13Summary(fr.UTF-8): Emulateur DOS
14Summary(pl.UTF-8): Emulator DOS-a
15Summary(pt_BR.UTF-8): Emulador DOS
16Summary(tr.UTF-8): DOS öykünümcüsü
c862c4bd 17Name: dosemu
9ea616e8 18Version: 1.4.0
8a2c555a 19Release: 1
b66e631f 20License: GPL v2
c862c4bd 21Group: Applications/Emulators
a3a13b13 22Source0: http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz
9ea616e8 23# Source0-md5: 0bba530637266f99d404ba15e3f118d4
cfc89689 24#Source2: %{name}-sys.tar.gz
43f8c6e0 25Source3: %{name}-PRZECZYTAJ_TO
26Source4: %{name}-README.PLD
94ac2ec1 27Source5: %{name}.desktop
64b715a8 28Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
c6284999 29# Source6-md5: 7a8abf5c656e6b99bdd03a4783751895
973c01b0 30Source7: smarthog-%{smarthogver}.tgz
5a6901a1 31Patch0: %{name}-man-pages.patch
41f91c77
JB
32Patch1: %{name}-make-new.patch
33Patch2: %{name}-%{name}_conf.patch
34Patch3: %{name}-doSgmlTools.patch
35Patch4: %{name}-makehtml.patch
60355b3e 36URL: http://www.dosemu.org/
a686c781 37BuildRequires: SDL-devel
22f69265
JB
38BuildRequires: alsa-lib-devel >= 0.9
39BuildRequires: autoconf >= 2.59-9
40BuildRequires: bin86
41BuildRequires: bison
42BuildRequires: docbook-dtd30-sgml
43BuildRequires: docbook-style-dsssl
44BuildRequires: flex
45%{?with_static:BuildRequires: glibc-static}
46BuildRequires: gpm-devel
47BuildRequires: libsndfile-devel
48BuildRequires: lynx
49BuildRequires: openjade
50BuildRequires: perl-base
51BuildRequires: sgml-tools
52BuildRequires: slang-devel
53%{?with_static:BuildRequires: slang-static}
54BuildRequires: unzip
55BuildRequires: util-linux
944d6dca 56%if %{with x}
a1436bdb 57%if !%{with AC}
22f69265 58BuildRequires: xorg-app-bdftopcf
9b027d85 59BuildRequires: xorg-lib-libX11-devel
9f183f46
JB
60BuildRequires: xorg-lib-libXext-devel
61BuildRequires: xorg-lib-libXxf86vm-devel
62%if %{with static}
63BuildRequires: xorg-lib-libX11-static
64BuildRequires: xorg-lib-libXext-static
65BuildRequires: xorg-lib-libXxf86vm-static
66%endif
9b027d85 67%endif
68%if %{with AC}
69BuildRequires: X11-devel
70%{?with_static:BuildRequires: X11-static}
71%endif
944d6dca 72%endif
a686c781 73Obsoletes: xdosemu
df372c25 74Conflicts: dosemu-freedos-minimal < 2.0.33
60355b3e 75Conflicts: kernel < 2.0.28
c0f4f489 76Conflicts: mtools < 3.6
86a5b248 77ExclusiveArch: %{ix86} %{x8664}
a686c781 78BuildRoot: %{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 84Dosemu is a DOS emulator. Once you've installed dosemu, start the DOS
7906a402 85emulator by typing in the "dos" command.
ba5a3e97 86
423a8769 87You need to install dosemu if you use DOS programs and you want to be
da1497e3 88able to run them on your GNU/Linux system. You may also need to
d4571942 89install the dosemu-freedos-* packages.
ba5a3e97 90
4cf10f0c
JR
91%description -l pl.UTF-8
92Dosemu to Emulator systemu DOS. Po zainstalowaniu możesz go uruchomić
93komendą "dos".
c7030b75 94
4cf10f0c
JR
95Jeśli korzystasz z dosowych programów i chciałbyś je uruchamiać na
96twoim linuksowym systemie zainstaluj dosemu. Możesz też potrzebować
97pakietów dosemu-freedos-*.
c7030b75 98
4cf10f0c
JR
99%description -l pt_BR.UTF-8
100Essa é uma versão do emulador DOS que foi projetada para rodar em
101sessões X Window. Oferece suporte para gráficos VGA bem como suporte
70c941aa 102para mouse.
103
ca49bbcd 104%package utils
105Summary: Utilities for dosemu
0fe4c4ac 106Summary(pl.UTF-8): Programy pomocnicze do dosemu
63115fbb 107Group: Applications/Emulators
a686c781 108Requires: %{name} = %{version}-%{release}
ca49bbcd 109
110%description utils
111Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
112
4cf10f0c 113%description utils -l pl.UTF-8
63115fbb 114Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
115mkfatimage16.
ca49bbcd 116
a686c781
JB
117%package SDL
118Summary: SDL plugin for dosemu
0fe4c4ac 119Summary(pl.UTF-8): Wtyczka SDL dla dosemu
a686c781
JB
120Group: Libraries
121Requires: %{name} = %{version}-%{release}
122
123%description SDL
124SDL plugin for dosemu.
125
4cf10f0c 126%description SDL -l pl.UTF-8
a686c781
JB
127Wtyczka SDL dla dosemu.
128
129%package X
130Summary: X plugin for dosemu
0fe4c4ac 131Summary(pl.UTF-8): Wtyczka X dla dosemu
a686c781
JB
132Group: Libraries
133Requires: %{name} = %{version}-%{release}
134
135%description X
136X plugin for dosemu.
137
4cf10f0c 138%description X -l pl.UTF-8
a686c781
JB
139Wtyczka 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 150OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
bc65a259 151
5a6901a1
JB
152./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
153plugin_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
169mv -f man/dosemu.bin.1 man/dosemu.1
170echo '.so dosemu.1' > man/dos.1
171mv -f man/ru/dosemu.bin.1 man/ru/dosemu.1
172echo '.so dosemu.1' > man/ru/dos.1
68b28186 173
07def723
JB
174mv -f pl/man1/dos.1 pl/man1/dosemu.1
175echo '.so dosemu.1' > pl/man1/dos.1
176echo '.so dosemu.1' > pl/man1/xdosemu.1
177echo '.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 184find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
94ac2ec1 185
ba5a3e97
JR
186%install
187rm -rf $RPM_BUILD_ROOT
07def723 188install -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 196install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
944d6dca 197install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dosemu
a686c781
JB
198ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/dos
199%if %{with x}
200ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdos
07def723
JB
201ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosemu
202ln -sf dosemu $RPM_BUILD_ROOT%{_bindir}/xdosexec
944d6dca 203%endif
204
a686c781
JB
205install bin/libplugin*.so $RPM_BUILD_ROOT%{_libdir}/dosemu
206
a3a13b13 207install bin/{dosdebug,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
9b027d85 208install src/tools/periph/{dexeconfig,hdinfo,mkhdimage} $RPM_BUILD_ROOT%{_bindir}
bc65a259 209ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
c0f4f489 210
5a6901a1 211install etc/dosemu.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
cfc89689 212install etc/dosemu.users.example $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.users
9ea99a74 213install etc/global.conf $RPM_BUILD_ROOT%{_dosemudir}/global.conf
214install etc/dosemu.conf $RPM_BUILD_ROOT%{_sysconfdir}/dosemu.conf
c0f4f489 215
07def723
JB
216install man/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/man1
217install pl/man1/{dosemu.1,dosdebug.1,xdosemu.1,dos.1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
218install man/ru/{dosemu.1,dosdebug.1,xdosemu.1,dos.1,mkfatimage16.1} $RPM_BUILD_ROOT%{_mandir}/ru/man1
c0f4f489 219
cfc89689 220install commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
221install commands/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
973c01b0 222install smarthog-%{smarthogver}/*.exe $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
43f8c6e0 223cp %{SOURCE3} PRZECZYTAJ_TO
224cp %{SOURCE4} README.PLD
07def723 225install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
43f8c6e0 226
484a5449 227rm -f doc/{configuration,dosemu.lsm}
31a9c5b7 228
c862c4bd
JR
229%clean
230rm -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
This page took 0.100529 seconds and 4 git commands to generate.