%bcond_with static # link statically
%bcond_with AC
%bcond_without x # X support
+%bcond_with samba # samba support
#
%define smarthogver 0.1.0
Summary(pt_BR.UTF-8): Emulador DOS
Summary(tr.UTF-8): DOS öykünümcüsü
Name: dosemu
-Version: 1.3.5
-Release: 1
+Version: 1.4.0
+Release: 1%{?with_samba:.smb}
License: GPL v2
Group: Applications/Emulators
Source0: http://dl.sourceforge.net/dosemu/%{name}-%{version}.tgz
-# Source0-md5: 16cb31112d5928c9d45319157948bb7c
+# Source0-md5: 0bba530637266f99d404ba15e3f118d4
#Source2: %{name}-sys.tar.gz
Source3: %{name}-PRZECZYTAJ_TO
Source4: %{name}-README.PLD
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
URL: http://www.dosemu.org/
BuildRequires: SDL-devel
BuildRequires: alsa-lib-devel >= 0.9
BuildRequires: flex
%{?with_static:BuildRequires: glibc-static}
BuildRequires: gpm-devel
+%{?with_samba:BuildRequires: libcli_smb-devel}
BuildRequires: libsndfile-devel
BuildRequires: lynx
BuildRequires: openjade
%prep
%setup -q -a6 -a7
+
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%{?with_samba:%patch5 -p1}
%build
OPTFLAGS="%{rpmcflags}"; export OPTFLAGS
%attr(755,root,root) %{_bindir}/dosexec
%attr(755,root,root) %{_bindir}/midid
%dir %{_libdir}/dosemu
+%{_libdir}/dosemu/libplugin_alsa.so
%{_libdir}/dosemu/libplugin_gpm.so
+%{_libdir}/dosemu/libplugin_sndfile.so
%{_libdir}/dosemu/libplugin_term.so
-%{_libdir}/dosemu/libplugin_alsa.so
%dir %{_dosemudir}/bootdir
%dir %{_dosemudir}/bootdir/dosemu
%{_dosemudir}/bootdir/dosemu/*