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