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