]> git.pld-linux.org Git - packages/cluster.git/commitdiff
- 'without ldap' bcond added
authorJacek Konieczny <jajcus@pld-linux.org>
Mon, 2 Jul 2012 06:51:22 +0000 (06:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- libvirt and python-pexpect BR required, they were for fence agents which are
  now in a separate package

Changed files:
    cluster-no_ldap.patch -> 1.1
    cluster.spec -> 1.8

cluster-no_ldap.patch [new file with mode: 0644]
cluster.spec

diff --git a/cluster-no_ldap.patch b/cluster-no_ldap.patch
new file mode 100644 (file)
index 0000000..449e916
--- /dev/null
@@ -0,0 +1,19 @@
+diff -dur cluster-3.1.8.orig/config/plugins/Makefile cluster-3.1.8/config/plugins/Makefile
+--- cluster-3.1.8.orig/config/plugins/Makefile 2011-12-03 18:53:15.000000000 +0100
++++ cluster-3.1.8/config/plugins/Makefile      2012-07-02 08:35:18.000000000 +0200
+@@ -1,4 +1,4 @@
+ include ../../make/defines.mk
+ include $(OBJDIR)/make/passthrough.mk
+-SUBDIRS = xml ldap
++SUBDIRS = xml
+Only in cluster-3.1.8/config/plugins: Makefile~
+diff -dur cluster-3.1.8.orig/config/tools/Makefile cluster-3.1.8/config/tools/Makefile
+--- cluster-3.1.8.orig/config/tools/Makefile   2011-12-03 18:53:15.000000000 +0100
++++ cluster-3.1.8/config/tools/Makefile        2012-07-02 08:35:01.000000000 +0200
+@@ -1,4 +1,4 @@
+ include ../../make/defines.mk
+ include $(OBJDIR)/make/passthrough.mk
+-SUBDIRS=ccs_tool ldap xml man
++SUBDIRS=ccs_tool xml man
index e9bc05c6c0ea7c17f29f0e3439d9c4dbbe38aff1..0148d134edf797e8d6c1bed2589f4813a81571e6 100644 (file)
@@ -1,26 +1,28 @@
 #
+# Conditional build:
+%bcond_without ldap            # do not include ldap support
+
 Summary:       Cluster infrastructure
 Summary(pl.UTF-8):     Infrastruktura klastra
 Name:          cluster
 Version:       3.1.8
-Release:       1
+Release:       1.aos1
 License:       GPL v2
 Group:         Applications/System
 Source0:       https://fedorahosted.org/releases/c/l/cluster/%{name}-%{version}.tar.bz2
 # Source0-md5: 25699384c42c28bbec2998c25e7a8300
 Source1:       %{name}.tmpfiles
+Patch0:                %{name}-no_ldap.patch
 URL:           http://sources.redhat.com/cluster/wiki
 BuildRequires: corosync-devel >= 1.4.1
-BuildRequires: libvirt-devel
 BuildRequires: libxml2-devel
 BuildRequires: libxslt-progs
 BuildRequires: ncurses-devel
 BuildRequires: nspr-devel
 BuildRequires: nss-devel
 BuildRequires: openais-devel >= 1.1.4
-BuildRequires: openldap-devel
+%{?with_ldap:BuildRequires:    openldap-devel}
 BuildRequires: perl-ExtUtils-MakeMaker
-BuildRequires: python-pexpect
 BuildRequires: slang-devel
 Requires:      %{name}-cman = %{version}-%{release}
 Requires:      %{name}-rgmanager = %{version}-%{release}
@@ -296,6 +298,7 @@ serwera.
 
 %prep
 %setup -q
+%{!?with_ldap:%patch0 -p1}
 
 sed -i -e 's,-Wall,%{rpmcflags} -I/usr/include/ncurses -Wall,' make/defines.mk.input
 
@@ -331,7 +334,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files ccs
 %defattr(644,root,root,755)
+%if %{with ldap}
 %attr(755,root,root) %{_sbindir}/confdb2ldif
+%endif
 %attr(755,root,root) %{_sbindir}/ccs_config_dump
 %attr(755,root,root) %{_sbindir}/ccs_config_validate
 %attr(755,root,root) %{_sbindir}/ccs_test
@@ -342,7 +347,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/ccs_config_validate.*
 %{_mandir}/man8/ccs_tool.*
 %{_mandir}/man8/ccs_update_schema.*
+%if %{with ldap}
 %{_mandir}/man8/confdb2ldif.*
+%endif
 %attr(700,root,root) /var/run/cluster
 %{systemdtmpfilesdir}/%{name}.conf
 
This page took 0.060033 seconds and 4 git commands to generate.