RedHat: Update openafs.spec for configure changes

We no longer have the configure options --enable-disconnected and
--with-krb5-conf. Remove them from the spec file and instead specify
krb5-config via the KRB5_CONFIG variable.

Change-Id: Ic9d9505f0526e38bf084683d9be3367851005a97
Reviewed-on: http://gerrit.openafs.org/2641
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-09-01 10:32:53 -05:00 committed by Derrick Brashear
parent 346ccf51dd
commit 83f85c9ad6

View File

@ -852,6 +852,11 @@ fi
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
%if %{krb5support}
KRB5_CONFIG="%{krb5config}"
export KRB5_CONFIG
%endif
./configure --with-afs-sysname=${sysname} \ ./configure --with-afs-sysname=${sysname} \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
@ -859,12 +864,11 @@ CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
--sbindir=%{_sbindir} \ --sbindir=%{_sbindir} \
--disable-strip-binaries \ --disable-strip-binaries \
--with-linux-kernel-packaging \ --with-linux-kernel-packaging \
--enable-disconnected \
%if %{build_modules} %if %{build_modules}
--with-linux-kernel-headers=${ksrc} \ --with-linux-kernel-headers=${ksrc} \
%endif %endif
%if %{krb5support} %if %{krb5support}
--with-krb5-conf=%{krb5config} \ --with-krb5 \
%endif %endif
$config_opts \ $config_opts \
|| exit 1 || exit 1