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
This commit is contained in:
Nalin Dahyabhai 2012-11-20 11:24:31 -05:00
parent bea5638eff
commit 9cecca2cef
1 changed files with 11 additions and 2 deletions

View File

@ -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 <nalin@redhat.com> - 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 <nalin@redhat.com> - 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