%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
#
Patch8: %{name}-Xquit.patch
Patch9: %{name}-creat_mode.patch
URL: http://www.dosemu.org/
+%{?with_sdl:BuildRequires: SDL-devel}
BuildRequires: alsa-lib-devel >= 0.9
BuildRequires: autoconf >= 2.59-9
BuildRequires: bin86
BuildRequires: unzip
BuildRequires: util-linux
%if %{with x}
-BuildRequires: SDL-devel
%if !%{with AC}
BuildRequires: xorg-app-bdftopcf
BuildRequires: xorg-app-mkfontdir
%{_mandir}/man1/mkfatimage16.1*
%lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*
-%if %{with x}
+%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
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/dosemu/libplugin_X.so