summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2012-11-20 11:24:53 -0500
committerNalin Dahyabhai <nalin@redhat.com>2012-11-20 11:24:53 -0500
commit0927af342fc9110cb1b7b9a2dd9cd7c0dd137426 (patch)
tree43e12a55e3212934e3c64d975839aef0d3d496af
parent29c65e69466aca800bad544a21ed39b67e02df67 (diff)
downloadslapi-nis-0927af342fc9110cb1b7b9a2dd9cd7c0dd137426.tar.gz
slapi-nis-0927af342fc9110cb1b7b9a2dd9cd7c0dd137426.tar.xz
slapi-nis-0927af342fc9110cb1b7b9a2dd9cd7c0dd137426.zip
default to not using betxns on older releases
-rw-r--r--slapi-nis.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/slapi-nis.spec b/slapi-nis.spec
index 97204d5..3735cf2 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 <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