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