]> git.pld-linux.org Git - packages/dosemu.git/blobdiff - dosemu.spec
- added util-linux to BR
[packages/dosemu.git] / dosemu.spec
index d866b921e296af857777391ccf8135895dbd527e..1c2ce1e963eadee4fbd62abbe01c943a490e8246 100644 (file)
@@ -1,6 +1,5 @@
 # Conditional build:
-# --with static                - links statically
-# --without dist_kernel        - without distribution kernel
+# --with static                - linked static
 #
 Summary:       A DOS emulator
 Summary(de):   DOS-Emulator
@@ -11,15 +10,16 @@ Summary(pt_BR):     Emulador DOS
 Summary(tr):   DOS öykünümcüsü
 Name:          dosemu
 Version:       1.0.2
-Release:       15
+Release:       19
 License:       GPL v2
 Group:         Applications/Emulators
-Source0:       ftp://ftp.dosemu.org/dosemu/%{name}-%{version}.tgz
+Source0:       ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/%{name}-%{version}.tgz
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
 Source2:       %{name}-sys.tar.gz
 Source3:       %{name}-PRZECZYTAJ_TO
 Source4:       %{name}-README.PLD
-Patch0:                ftp://ftp.dosemu.org/dosemu/fixes/patch-1.0.2.1.gz
+Source5:       %{name}.desktop
+Patch0:                ftp://ftp.sourceforge.net/pub/sourceforge/dosemu/patch-1.0.2.1.gz
 Patch1:                %{name}-1.0.2-man-pages.patch
 Patch2:                %{name}-0.98.1-security.patch
 Patch3:                %{name}-make-new.patch
@@ -28,15 +28,24 @@ Patch5:             %{name}-%{name}_conf.patch
 Patch6:                %{name}-alt224.patch
 Patch7:                pmstack.diff
 Patch8:                %{name}-rawkeyboard-console.patch
+Patch9:                %{name}-comcom.patch
+Patch10:       %{name}-global.conf-xdos.patch
+Patch11:       c_run_irqs.diff
 URL:           http://www.dosemu.org/
 BuildRequires: XFree86-devel
+BuildRequires: autoconf
 BuildRequires: bin86
 BuildRequires: bison
+#BuildRequires:        docbook-dtd-sgml
 BuildRequires: flex
+#BuildRequires:        lynx
+#BuildRequires:        openjade
 BuildRequires: perl
+#BuildRequires:        sgml-tools
 BuildRequires: slang-devel
+BuildRequires: util-linux
 BuildRequires: unzip
-Requires:      dos
+#Requires:     dos
 %{?_with_static:BuildRequires: glibc-static}
 %{?_with_static:BuildRequires: XFree86-static}
 %{?_with_static:BuildRequires: slang-static}
@@ -80,12 +89,13 @@ Summary:    A DOS emulator for the X Window System
 Summary(de):   DOS-Emulator für X
 Summary(es):   Emulador DOS que se ejecuta en X
 Summary(fr):   Émulateur DOS conçu pou être lancé sous X
+Summary(pl):   Emulator DOSa dla Systemu X Window
 Summary(pt_BR):        Emulador DOS que roda no X
 Summary(tr):   X altýnda çalýþan DOS öykünümcüsü
 Group:         Applications/Emulators
 Provides:      dosemu
 Obsoletes:     dosemu
-Requires:      dos
+#Requires:     dos
 
 %description -n xdosemu
 Xdosemu is a version of the dosemu DOS emulator that runs with the X
@@ -139,12 +149,18 @@ mkfatimage16.
 %patch6 -p1
 %patch7 -p0
 %patch8 -p0
+%patch9 -p1
+%patch10 -p1
+%patch11 -p0
 
 %build
 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"; export OPTFLAGS
 
+#./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
+#plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
+
 cp -f base-configure.in configure.in
-autoconf
+%{__autoconf}
 
 # non-X version
 %configure \
@@ -167,14 +183,23 @@ mv -f bin/dos-nox bin/dosemu.bin
 
 mv -f man/dosemu.bin.1 man/dos.1
 
+# documentation
+#%{__make} docs
+#find src/doc -name "*.html" -exec cp -f '{}' doc/ ';'
+
+# midid daemon
+%{__make} midid
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}} \
        $RPM_BUILD_ROOT{%{_mandir}/man1,%{_mandir}/pl/man1} \
-       $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
+       $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel} \
+       $RPM_BUILD_ROOT%{_applnkdir}/System
 
 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
 install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
+install bin/midid $RPM_BUILD_ROOT%{_bindir}/midid
 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
 ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
@@ -193,6 +218,7 @@ install src/plugin/commands/*.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
 install dosemu/*.sys $RPM_BUILD_ROOT%{_dosemudir}/bootdir/dosemu
 cp %{SOURCE3} PRZECZYTAJ_TO
 cp %{SOURCE4} README.PLD
+install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/System/
 
 #ln -sf dosemu/comcom.com $RPM_BUILD_ROOT%{_dosemudir}/bootdir/command.com
 
@@ -201,14 +227,12 @@ for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\01
 
 rm -f doc/{configuration,dosemu.lsm}
 
-gzip -9nf QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz doc/*
+%doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
 %dir %{_dosemudir}
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
@@ -216,6 +240,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/dos
 %attr(755,root,root) %{_bindir}/dosdebug
 %attr(755,root,root) %{_bindir}/dosexec
+%attr(755,root,root) %{_bindir}/midid
 %dir %{_dosemudir}/bootdir
 %dir %{_dosemudir}/bootdir/dosemu
 %{_dosemudir}/bootdir/dosemu/*
@@ -226,12 +251,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n xdosemu
 %defattr(644,root,root,755)
-%doc *.gz doc/*
+%doc QuickStart COPYING ChangeLog* doc/* PRZECZYTAJ_TO README.PLD
 %dir %{_dosemudir}
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosemu.users
 %config(noreplace) %verify(not size mtime md5) %{_dosemudir}/global.conf
 %attr(755,root,root) %{_bindir}/dosdebug
+%attr(755,root,root) %{_bindir}/midid
 %attr(755,root,root) %{_xbindir}/*
 %dir %{_dosemudir}/bootdir
 %dir %{_dosemudir}/bootdir/dosemu
@@ -241,6 +267,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/xdos.1*
 %lang(pl) %{_mandir}/pl/man1/d*
 %lang(pl) %{_mandir}/pl/man1/xdos.1*
+%{_applnkdir}/System/*
 %{_pixmapsdir}/dosemu.xpm
 
 %files utils
This page took 0.059666 seconds and 4 git commands to generate.