]> git.pld-linux.org Git - packages/dosemu.git/blobdiff - dosemu.spec
- added two patches
[packages/dosemu.git] / dosemu.spec
index 89ac3319ef618117c9ed89af97b06ccfa93572dd..258b3368a0d13531d907626fabcc07bcb9f0a4c2 100644 (file)
@@ -1,46 +1,41 @@
 # Conditional build:
-# --with static        - links statically
-
-%define         _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null| cut -d'"' -f2)
-%define         _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
-%define                _kernel24       %(echo %{_kernel_ver} | grep -q '2\.[012]\.' ; echo $?)
-%if %{_kernel24}
+# --with static                - links statically
+# --without dist_kernel        - without distribution kernel
+#
 %define                _moddir         /lib/modules/%{_kernel_ver}/misc
 %define                _moddirsmp      /lib/modules/%{_kernel_ver}smp/misc
-%else
-%define                _moddir         /lib/modules/%{_kernel_ver}/net
-%define                _moddirsmp      /lib/modules/%{_kernel_ver}smp/net
-%endif
+%define _rel   14
 
 Summary:       A DOS emulator
 Summary(de):   DOS-Emulator
+Summary(es):   Emulador DOS
 Summary(fr):   Emulateur DOS
 Summary(pl):   Emulator DOSa
+Summary(pt_BR):        Emulador DOS
 Summary(tr):   DOS öykünümcüsü
 Name:          dosemu
 Version:       1.0.2
-Release:       3
+Release:       %{_rel}
 License:       distributable
 Group:         Applications/Emulators
-Group(de):     Applikationen/Emulators
-Group(pl):     Aplikacje/Emulatory
 Source0:       ftp://ftp.dosemu.org/dosemu/%{name}-%{version}.tgz
-Source1:       %{name}-pl-man-pages.tar.bz2
-Source2:       dosemu-sys.tar.gz
-Source3:       http://prdownloads.sourceforge.net/freedos/ke2025c16.zip
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
+Source2:       %{name}-sys.tar.gz
+Source3:       http://prdownloads.sourceforge.net/freedos/ke2026a16.zip
 Source4:       autoexec2.bat
 Source5:       config2.sys
 Source6:       keybpl.exe
 Source7:       egapl.exe
 Source8:       shsucdx.exe
-Patch0:                ftp://ftp.dosemu.org/dosemu/patch-1.0.2.1.gz
+Patch0:                ftp://ftp.dosemu.org/dosemu/fixes/patch-1.0.2.1.gz
 Patch1:                %{name}-1.0.2-man-pages.patch
-Patch2:                %{name}-0.98.1-justroot.patch
-Patch3:                %{name}-0.98.1-security.patch
-Patch4:                %{name}-make-new.patch
-Patch5:                %{name}-Polish_keyboard.patch
-Patch6:                %{name}-dosemu_conf.patch
-
+Patch2:                %{name}-0.98.1-security.patch
+Patch3:                %{name}-make-new.patch
+Patch4:                %{name}-Polish_keyboard.patch
+Patch5:                %{name}-%{name}_conf.patch
+Patch6:                %{name}-alt224.patch
+Patch7:                pmstack.diff
+Patch8:                %{name}-rawkeyboard-console.patch
 URL:           http://www.dosemu.org/
 BuildRequires: XFree86-devel
 BuildRequires: bin86
@@ -52,11 +47,11 @@ BuildRequires:      unzip
 %{?_with_static:BuildRequires: glibc-static}
 %{?_with_static:BuildRequires: XFree86-static}
 %{?_with_static:BuildRequires: slang-static}
-Obsoletes:     xdosemu
 Exclusivearch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Conflicts:     kernel < 2.0.28
 Conflicts:     mtools < 3.6
+Obsoletes:     xdosemu
 
 %define                _xbindir        /usr/X11R6/bin
 %define                _dosemudir      /var/lib/dosemu
@@ -78,9 +73,9 @@ tambi
 Dosemu to Emulator systemu DOS. Po zainstalowaniu mo¿esz go uruchomiæ
 komend± "dos".
 
-Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ
-na twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿
-potrzebowaæ pakietów dosemu-freedos-*.
+Je¶li korzystasz z dosowych programów i chcia³by¶ je uruchamiaæ na
+twoim Linuksowym systemie zainstaluj dosemu. Mo¿esz te¿ potrzebowaæ
+pakietów dosemu-freedos-*.
 
 %description -l pt_BR
 Essa é uma versão do emulador DOS que foi projetada para rodar em
@@ -90,12 +85,14 @@ para mouse.
 %package -n xdosemu
 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(pt_BR):        Emulador DOS que roda no X
 Summary(tr):   X altýnda çalýþan DOS öykünümcüsü
 Group:         Applications/Emulators
-Group(de):     Applikationen/Emulators
-Group(pl):     Aplikacje/Emulatory
 Requires:      %{name} = %{version}
+Provides:      dosemu
+Obsoletes:     dosemu
 
 %description -n xdosemu
 Xdosemu is a version of the dosemu DOS emulator that runs with the X
@@ -105,6 +102,10 @@ Window System. Xdosemu provides VGA graphics and mouse support.
 Dies ist eine Version des DOS-Emulators für X-Windows-Sitzungen. Er
 unterstützt VGA-Grafiken und Maus.
 
+%description -n xdosemu -l es
+Esta es la versión del emulador DOS dibujada para ejecutarse en una
+ventana del X Window. Posee soporte para gráficos VGA y ratón.
+
 %description -n xdosemu -l fr
 Version de l'émulateur DOS conçue pour tourner dans une session X.
 Offre une gestion des graphismes VGA et de la souris.
@@ -113,6 +114,10 @@ Offre une gestion des graphismes VGA et de la souris.
 Xdosemu jest wersj± emulatora dosemu dzia³aj±c± w X Window System.
 Xdosemu ma wsparcie dla grafiki VGA i obs³ugi myszki.
 
+%description -n xdosemu -l pt_BR
+Esta é a versão do emulador DOS desenhada para rodar em uma janela do
+X Window. Possui suporte a gráficos VGA e mouse.
+
 %description -n xdosemu -l tr
 Bu yazýlým, DOS öykünümcüsünün X altýnda çalýþan bir sürümüdür. VGA
 grafikleri ve fare desteði vardýr.
@@ -120,56 +125,69 @@ grafikleri ve fare deste
 %package -n kernel-net-dosnet
 Summary:       kernel module dosnet.o
 Summary(pl):   Modu³ dosnet.o do kernela
-Release:       %{release}@%{_kernel_ver_str}
+Release:       %{_rel}@%{_kernel_ver_str}
 Group:         Applications/Emulators
-Group(de):     Applikationen/Emulators
-Group(pl):     Aplikacje/Emulatory
+Prereq:                /sbin/depmod
+%{!?_without_dist_kernel:%requires_releq_kernel_up}
 Requires:      %{name} = %{version}
 Obsoletes:     dosnet
-Prereq:                /sbin/depmod
 
 %description -n kernel-net-dosnet
 Kernel module for dosnet (vnet). Dosnet lets you establish TCP/IP
-connection beetween dosemu session and Linux kernel. Read README
-for dosemu for more information.
+connection beetween dosemu session and Linux kernel. Read README for
+dosemu for more information.
 
 %description -n kernel-net-dosnet -l pl
 Modu³ dosnet.o dla kernela. Modu³ ten pozwala ³±czyæ siê programom
 DOSowym wykorzystuj±cym TCP/IP z Linuksem. Przydatny miêdzy innymi
-przy pisaniu programów sieciowych dla DOSa. Rzeteln± informacjê na
-temat dosnet mo¿esz znale¼æ w README do dosemu.   
+przy pisaniu programów sieciowych dla DOS-a. Rzeteln± informacjê na
+temat dosnet mo¿esz znale¼æ w README do dosemu.
 
 %package -n kernel-smp-net-dosnet
-Summary:       kernel module dosnet.o
-Summary(pl):   Modu³ dosnet.o do kernela
-Release:       %{release}@%{_kernel_ver_str}
+Summary:       kernel-smp module dosnet.o
+Summary(pl):   Modu³ dosnet.o do kernela SMP
+Release:       %{_rel}@%{_kernel_ver_str}
 Group:         Applications/Emulators
-Group(de):     Applikationen/Emulators
-Group(pl):     Aplikacje/Emulatory
+Prereq:                /sbin/depmod
+%{!?_without_dist_kernel:%requires_releq_kernel_smp}
 Requires:      %{name} = %{version}
 Obsoletes:     dosnet
-Prereq:                /sbin/depmod
 
 %description -n kernel-smp-net-dosnet
 Kernel module for dosnet (vnet). Dosnet lets you establish TCP/IP
-connection beetween dosemu session and Linux kernel. Read README
-for dosemu for more information.
+connection beetween dosemu session and Linux kernel. Read README for
+dosemu for more information.
 
 %description -n kernel-smp-net-dosnet -l pl
 Modu³ dosnet.o dla kernela. Modu³ ten pozwala ³±czyæ siê programom
 DOSowym wykorzystuj±cym TCP/IP z Linuksem. Przydatny miêdzy innymi
-przy pisaniu programów sieciowych dla DOSa. Rzeteln± informacjê na
-temat dosnet mo¿esz znale¼æ w README do dosemu.   
+przy pisaniu programów sieciowych dla DOS-a. Rzeteln± informacjê na
+temat dosnet mo¿esz znale¼æ w README do dosemu.
+
+%package utils
+Summary:       Utilities for dosemu
+Summary(pl):   Programy pomocnicze do dosemu
+Group:         Applications/Emulators
+Requires:      dosemu
+
+%description utils
+Utilities for dosemu: dexeconfig, hdinfo, mkhdimage, mkfatimage16.
+
+%description utils -l pl
+Programy pomocnicze dla dosemu: dexeconfig, hdinfo, mkhdimage,
+mkfatimage16.
 
 %prep
 %setup -q -a1 -a2
 %patch0 -p1
 %patch1 -p1
-#%patch2 -p1
+%patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
-%patch6 -p0
+%patch5 -p0
+%patch6 -p1
+%patch7 -p0
+%patch8 -p0
 
 rm -rf freedos
 mkdir freedos
@@ -212,7 +230,6 @@ echo | %{__make}
 mv -f bin/dosemu.bin bin/dos-x
 mv -f bin/dos-nox bin/dosemu.bin
 
-
 mv -f man/dosemu.bin.1 man/dos.1
 
 %install
@@ -222,7 +239,9 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir},%{_sysconfdir},%{_pixmapsdir}}
        $RPM_BUILD_ROOT%{_dosemudir}/bootdir/{dosemu,freedos/doc/fdkernel}
 
 install bin/dosemu.bin $RPM_BUILD_ROOT%{_bindir}/dos
-install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/xdos
+install bin/dos-x $RPM_BUILD_ROOT%{_xbindir}/dos
+ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/xdos
+ln -sf dos $RPM_BUILD_ROOT%{_xbindir}/dosexec
 install bin/dosdebug $RPM_BUILD_ROOT%{_bindir}/dosdebug
 install src/tools/periph/{dexeconfig,hdinfo,mkhdimage,mkfatimage16} $RPM_BUILD_ROOT%{_bindir}
 ln -sf dos $RPM_BUILD_ROOT%{_bindir}/dosexec
@@ -251,7 +270,7 @@ install src/dosext/net/v-net/dosnet.o $RPM_BUILD_ROOT%{_moddir}
 install src/dosext/net/v-net/smp/dosnet.o $RPM_BUILD_ROOT%{_moddirsmp}
 
 # Take out irritating ^H's from the documentation
-for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\b//g' > doc/$i ; done
+for i in `ls --color=no doc/` ; do cat doc/$i > $i ; cat $i | perl -p -e 's/.\010//g' > doc/$i ; done
 
 rm -f doc/{configuration,dosemu.lsm}
 
@@ -271,28 +290,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun        -n kernel-smp-net-dosnet
 /sbin/depmod -a
+
 %files
 %defattr(644,root,root,755)
 %doc *.gz doc/*
 %dir %{_dosemudir}
-%config(noreplace) %{_sysconfdir}/dosemu.conf
-%config(noreplace) %{_sysconfdir}/dosemu.users
-%config(noreplace) %{_dosemudir}/global.conf
+%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}/dos
 %attr(755,root,root) %{_bindir}/dosdebug
 %attr(755,root,root) %{_bindir}/dosexec
-%attr(755,root,root) %{_bindir}/dexeconfig
-%attr(755,root,root) %{_bindir}/hdinfo
-%attr(755,root,root) %{_bindir}/mkhdimage
-%attr(755,root,root) %{_bindir}/mkfatimage16
 %dir %{_dosemudir}/bootdir
 %dir %{_dosemudir}/bootdir/dosemu
 %dir %{_dosemudir}/bootdir/freedos
 %{_dosemudir}/bootdir/dosemu/*
 %{_dosemudir}/bootdir/kernel.sys
-%config(noreplace) %{_dosemudir}/bootdir/autoexec.bat
-%config(noreplace) %{_dosemudir}/bootdir/config.sys
+%config(noreplace) %verify(not size mtime md5) %{_dosemudir}/bootdir/autoexec.bat
+%config(noreplace) %verify(not size mtime md5) %{_dosemudir}/bootdir/config.sys
 %{_dosemudir}/bootdir/command.com
 %{_dosemudir}/bootdir/*.exe
 %{_dosemudir}/bootdir/freedos/*
@@ -302,9 +317,28 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n xdosemu
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_xbindir}/xdos
+%doc *.gz doc/*
+%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) %{_xbindir}/*
+%dir %{_dosemudir}/bootdir
+%dir %{_dosemudir}/bootdir/dosemu
+%dir %{_dosemudir}/bootdir/freedos
+%{_dosemudir}/bootdir/dosemu/*
+%{_dosemudir}/bootdir/kernel.sys
+%config(noreplace) %verify(not size mtime md5) %{_dosemudir}/bootdir/autoexec.bat
+%config(noreplace) %verify(not size mtime md5) %{_dosemudir}/bootdir/config.sys
+%{_dosemudir}/bootdir/command.com
+%{_dosemudir}/bootdir/*.exe
+%{_dosemudir}/bootdir/freedos/*
+%{_mandir}/man1/[dm]*
 %{_mandir}/man1/xdos.1*
+%lang(pl) %{_mandir}/pl/man1/d*
 %lang(pl) %{_mandir}/pl/man1/xdos.1*
+%{_pixmapsdir}/dosemu.xpm
 
 %files -n kernel-net-dosnet
 %defattr(644,root,root,755)
@@ -313,3 +347,10 @@ rm -rf $RPM_BUILD_ROOT
 %files -n kernel-smp-net-dosnet
 %defattr(644,root,root,755)
 %{_moddirsmp}/dosnet.o
+
+%files utils
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/dexeconfig
+%attr(755,root,root) %{_bindir}/hdinfo
+%attr(755,root,root) %{_bindir}/mkhdimage
+%attr(755,root,root) %{_bindir}/mkfatimage16
This page took 0.039905 seconds and 4 git commands to generate.