]> git.pld-linux.org Git - packages/dosemu.git/blobdiff - dosemu.spec
- obsolete
[packages/dosemu.git] / dosemu.spec
index e7c03e5304317bdfcb5b40fefe35abb162837266..acefc4ae91a823692d73a4390fd1fcb62571c9f4 100644 (file)
@@ -4,10 +4,12 @@
 %bcond_with    static          # link statically
 %bcond_with    AC
 %bcond_without htmldocs        # do not build documentation in HTML
+%bcond_without sdl             # SDL support
 %bcond_without x               # X support
 %bcond_with    samba           # samba support
 #
 %define                smarthogver     0.1.0
+%define                smbrel          01
 
 Summary:       A DOS emulator
 Summary(de.UTF-8):     DOS-Emulator
@@ -17,12 +19,13 @@ Summary(pl.UTF-8):  Emulator DOS-a
 Summary(pt_BR.UTF-8):  Emulador DOS
 Summary(tr.UTF-8):     DOS öykünümcüsü
 Name:          dosemu
-Version:       1.4.0
-Release:       1%{?with_samba:.smb}
+Version:       1.4.0.7
+Release:       1%{?with_samba:.smb%{smbrel}}
 License:       GPL v2
 Group:         Applications/Emulators
-Source0:       http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz
-# Source0-md5: 0bba530637266f99d404ba15e3f118d4
+# git archive --format=tar --prefix=dosemu-1.4.0.7/ dosemu-1.4.0.7 | xz > dosemu-1.4.0.7.tar.xz
+Source0:       %{name}-%{version}.tar.xz
+# Source0-md5: 842303d611ac5d0932825a34afd67d72
 #Source2:      %{name}-sys.tar.gz
 Source3:       %{name}-PRZECZYTAJ_TO
 Source4:       %{name}-README.PLD
@@ -30,16 +33,18 @@ Source5:    %{name}.desktop
 Source6:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
 # Source6-md5: 7a8abf5c656e6b99bdd03a4783751895
 Source7:       smarthog-%{smarthogver}.tgz
-Patch0:                %{name}-man-pages.patch
-Patch1:                %{name}-make-new.patch
+# Source7-md5: a9f64e8e90382ac3426c39caecd7f64f
+#Patch0:               %{name}-man-pages.patch
 Patch2:                %{name}-%{name}_conf.patch
 Patch3:                %{name}-doSgmlTools.patch
 Patch4:                %{name}-makehtml.patch
 Patch5:                http://pascalek.pers.pl/files/projects/Samba4DosEmu/%{name}-1.4.0-samba-beta2.patch.gz
+# Patch5-md5:  1e4b8f494f4067012daabf3971e6f3e7
 Patch6:                http://pascalek.pers.pl/files/projects/Samba4DosEmu/s4d-beta2-fix1.patch
 Patch7:                %{name}-lpt4.patch
+Patch8:                %{name}-Xquit.patch
 URL:           http://www.dosemu.org/
-BuildRequires: SDL-devel
+%{?with_sdl:BuildRequires:     SDL-devel}
 BuildRequires: alsa-lib-devel >= 0.9
 BuildRequires: autoconf >= 2.59-9
 BuildRequires: bin86
@@ -62,6 +67,7 @@ BuildRequires:        util-linux
 %if %{with x}
 %if !%{with AC}
 BuildRequires: xorg-app-bdftopcf
+BuildRequires: xorg-app-mkfontdir
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libXxf86vm-devel
@@ -147,18 +153,15 @@ Wtyczka X dla dosemu.
 %prep
 %setup -q -a6 -a7
 
-%patch0 -p1
-%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %{?with_samba:%patch5 -p1}
 %{?with_samba:%patch6 -p1}
 %patch7 -p1
+%patch8 -p1
 
 %build
-OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
-
 ./mkpluginhooks enable plugin_keyboard off plugin_kbd_unicode on \
 plugin_extra_charset on plugin_term on plugin_translate on plugin_demo off
 
@@ -283,9 +286,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/mkfatimage16.1*
 %lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*
 
+%if %{with sdl}
 %files SDL
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/dosemu/libplugin_sdl.so
+%endif
 
 %if %{with x}
 %files X
This page took 0.091954 seconds and 4 git commands to generate.