%define name dosemu %define version @PACKAGE_VERSION@ %define release 1 Summary: DOSEMU stands for DOS Emulation, and enables Linux to run DOS programs Name: %{name} Version: %{version} Release: %{release} Source: %{name}-%{version}.tgz Source1: %{name}-freedos-bin.tgz License: GPL Group: System/Emulators Buildroot: %{_builddir}/%{name}-root BuildPrereq: bison flex %description DOSEMU is a user-level program which uses certain special features of the Linux kernel and the 80386 processor to run MS-DOS/FreeDOS/ DR-DOS, DOS programs, and many DPMI applications in what we in the biz call a `DOS box'. %prep rm -rf $RPM_BUILD_ROOT %setup -q %build ./configure --prefix=%{_prefix} --mandir=%{_mandir} --with-slangdir=src/plugin/slang --with-fdtarball=%{_sourcedir}/dosemu-freedos-bin.tgz make %install mkdir -p $RPM_BUILD_ROOT%{_bindir} make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %post if test %{_sysconfdir} != /etc; then if [ -f /etc/dosemu.users ]; then echo /etc/dosemu.users exists but you did not set sysconfdir=/etc echo Deprecated: saving backup as /etc/dosemu.users.save mv /etc/dosemu.users /etc/dosemu.users.save fi if [ -f /etc/dosemu.conf ]; then echo /etc/dosemu.conf exists but you did not set sysconfdir=/etc echo Deprecated: saving backup as /etc/dosemu.conf.save mv /etc/dosemu.conf /etc/dosemu.conf.save fi fi %files %defattr(-,root,root) %{_bindir}/dosemu.bin %{_bindir}/dosemu %{_bindir}/mkfatimage %{_bindir}/mkfatimage16 %{_bindir}/midid %{_bindir}/dosdebug %{_bindir}/xdosemu %{_mandir}/man1/mkfatimage16.1* %{_mandir}/man1/dosdebug.1* %{_mandir}/man1/dosemu.1* %{_mandir}/man1/dosemu.bin.1* %{_mandir}/man1/xdosemu.1* %{_mandir}/ru/man1/mkfatimage16.1* %{_mandir}/ru/man1/dosdebug.1* %{_mandir}/ru/man1/dosemu.1* %{_mandir}/ru/man1/dosemu.bin.1* %{_mandir}/ru/man1/xdosemu.1* %{_datadir}/dosemu/commands %{_datadir}/dosemu/freedos %{_datadir}/dosemu/dosemu-bin.tgz %{_datadir}/dosemu/dosemu-freedos-bin.tgz %{_datadir}/dosemu/keymap %{_datadir}/dosemu/Xfonts %doc %{_datadir}/doc/dosemu/README.bindist %doc %{_datadir}/doc/dosemu/README.txt %doc %{_datadir}/doc/dosemu/README-tech.txt %doc %{_datadir}/doc/dosemu/dosemu-HOWTO.txt %doc %{_datadir}/doc/dosemu/sound-usage.txt %doc %{_datadir}/doc/dosemu/announce %doc %{_datadir}/doc/dosemu/EMUfailure.txt %doc %{_datadir}/doc/dosemu/NOVELL-HOWTO.txt %doc %{_datadir}/doc/dosemu/README.gdb %doc %{_datadir}/doc/dosemu/DANG.txt %config %{_sysconfdir}/dosemu/dosemu.conf %config %{_sysconfdir}/dosemu/drives/c %{_sysconfdir}/dosemu/dosemu.users.example %{_sysconfdir}/dosemu/global.conf.example