--- mc.spec.orig 2004-01-19 17:02:58 +0300 +++ mc.spec 2004-02-22 16:56:30 +0300 @@ -7,6 +7,35 @@ Packager: Kachalov Anton +%def_without server # predefined config for servers +%def_without workstation # predefined config for workstations + + +%if_with server + +# Server configuration +%def_without gpm +%def_without x +%def_without samba + +%else +%if_with workstation + +# Workstation configuratino +%def_with gpm +%def_with x +%def_with samba + +%else + +# Default configuration +%def_with gpm +%def_without x +%def_without samba + +%endif # with workstation +%endif # with server + Source0: ftp://ftp.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-%version.tar.bz2 Source1: iso Source2: mc.color @@ -60,8 +89,20 @@ %build + +%if_with gpm +GPM=--with-gpm-mouse +%else +GPM=--without-gpm-mouse +%endif + + %configure --without-gnome --without-debug --with-included-slang --without-included-gettext \ - --enable-charset --enable-largefile --without-x + --enable-charset --enable-largefile \ + %{subst_with x} \ + $GPM \ + %{subst_with samba} + #Fix bzip2 warning perl -p -i -e 's/--repetitive-best/-9/' lib/mc.menu