[condor] cmake macro for RHEL5 support.

Brian Bockelman bbockelm at fedoraproject.org
Mon Jun 13 14:33:34 UTC 2011


commit ca4ca5f9fec36cb70fb26f4d1a40bbd2b4181879
Author: Brian Bockelman <bbockelm at cse.unl.edu>
Date:   Mon Jun 13 07:49:40 2011 -0500

    cmake macro for RHEL5 support.

 condor.spec |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/condor.spec b/condor.spec
index 8cff3e3..5bff4e8 100644
--- a/condor.spec
+++ b/condor.spec
@@ -32,6 +32,29 @@
 %define include_man 0
 %endif
 
+%if 0%{?el5}
+# cmake macro from http://fedoraproject.org/wiki/PackagingDrafts/cmake
+# Added for RHEL5 compat
+%define _cmake_lib_suffix64 -DLIB_SUFFIX=64
+%define __cmake %{_bindir}/cmake
+
+%define cmake \
+CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
+CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
+FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
+%__cmake \\\
+-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
+-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
+-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
+-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
+-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
+-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
+%if "%{?_lib}" == "lib64" \
+%{?_cmake_lib_suffix64} \\\
+%endif \ 
+-DBUILD_SHARED_LIBS:BOOL=ON
+%endif 
+
 Summary: Condor: High Throughput Computing
 Name: condor
 Version: 7.7.0


More information about the scm-commits mailing list