SPECS: dosemu.spec - separate bcond for SDL (SDL doesn't always imply X)

qboosh qboosh at pld-linux.org
Sat Nov 29 13:02:53 CET 2008


Author: qboosh                       Date: Sat Nov 29 12:02:53 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate bcond for SDL (SDL doesn't always imply X)

---- Files affected:
SPECS:
   dosemu.spec (1.146 -> 1.147) 

---- Diffs:

================================================================
Index: SPECS/dosemu.spec
diff -u SPECS/dosemu.spec:1.146 SPECS/dosemu.spec:1.147
--- SPECS/dosemu.spec:1.146	Wed Nov 26 12:04:35 2008
+++ SPECS/dosemu.spec	Sat Nov 29 13:02:48 2008
@@ -5,6 +5,7 @@
 %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
 #
@@ -43,6 +44,7 @@
 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
@@ -63,7 +65,6 @@
 BuildRequires:	unzip
 BuildRequires:	util-linux
 %if %{with x}
-BuildRequires:	SDL-devel
 %if !%{with AC}
 BuildRequires:	xorg-app-bdftopcf
 BuildRequires:	xorg-app-mkfontdir
@@ -290,11 +291,13 @@
 %{_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
@@ -306,6 +309,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.147  2008/11/29 12:02:48  qboosh
+- separate bcond for SDL (SDL doesn't always imply X)
+
 Revision 1.146  2008/11/26 11:04:35  pascalek
 - don't make SDL subpackage when building without x
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dosemu.spec?r1=1.146&r2=1.147&f=u



More information about the pld-cvs-commit mailing list