From 9cecca2cef12ae1e954f6f64d1e383cc09454440 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 20 Nov 2012 11:24:31 -0500 Subject: [PATCH] disable betxn support in older releases - set betxn support to be disabled by default on Fedora 17 or EL 5 or older, which have versions of IPA < 3.0, per mkosek on freeipa-devel --- slapi-nis.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/slapi-nis.spec b/slapi-nis.spec index b401c6a..4ce2467 100644 --- a/slapi-nis.spec +++ b/slapi-nis.spec @@ -3,10 +3,15 @@ %else %define ldap_impl mozldap %endif +%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6 +%define betxn_opts --enable-be-txns-by-default +%else +%define betxn_opts --disable-be-txns-by-default +%endif Name: slapi-nis Version: 0.44 -Release: 1%{?dist} +Release: 2%{?dist} Summary: NIS Server and Schema Compatibility plugins for Directory Server Group: System Environment/Daemons License: GPLv2 @@ -45,7 +50,7 @@ for attributes from multiple entries in the tree. %setup -q %build -%configure --disable-static --with-tcp-wrappers --with-ldap=%{ldap_impl} +%configure --disable-static --with-tcp-wrappers --with-ldap=%{ldap_impl} %{betxn_opts} make %{?_smp_mflags} %install @@ -70,6 +75,10 @@ rm -rf $RPM_BUILD_ROOT %{_sbindir}/nisserver-plugin-defs %changelog +* Tue Nov 20 2012 Nalin Dahyabhai - 0.44-2 +- set betxn support to be disabled by default on Fedora 17 or EL 5 or older, + which have versions of IPA < 3.0, per mkosek on freeipa-devel + * Wed Nov 14 2012 Nalin Dahyabhai - 0.44-1 - add missing newline to a couple of debug log messages - note whether or not betxn support is compiled in as part of the