ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/cmake.spec
(Generate patch)

Comparing COMP/CMSDIST/cmake.spec (file contents):
Revision 1.14 by elmer, Sat Nov 3 12:24:11 2007 UTC vs.
Revision 1.27 by eulisse, Wed Oct 27 07:19:36 2010 UTC

# Line 1 | Line 1
1 < ### RPM external cmake 2.4.2-CMS18
1 > ### RPM external cmake 2.8.1
2   %define downloaddir %(echo %realversion | cut -d. -f1,2)
3   Source: http://www.cmake.org/files/v%{downloaddir}/%n-%realversion.tar.gz
4 + %define closingbrace )
5 + %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
6   #Patch1: cmake
7 + Patch2: cmake-osx-nld
8  
9   #We are using system zlib for the online builds:
10 < %if "%{?online_release:set}" != "set"
10 > %if "%online" != "true"
11   Requires: zlib
12   %endif
13  
14   %prep
15  
16   %setup -n cmake-%realversion
17 < #%patch1 -p1
17 > # This patch disables the warning about long doubles that some
18 > # macosx compilers emit. Even if it matters only for macosx,
19 > # we apply it anyway to avoid discrepancies and to avoid that
20 > # it's left behind if cmake version is changed.
21 > %patch2 -p1
22  
23   %build
24 + # Work around a bug in the latest Java Update on MacosX.
25 + case %cmsos in
26 +  osx*)
27 +    if [ ! -f /System/Library/Frameworks/JavaVM.framework/Headers/jni.h ]
28 +    then
29 +      echo "Please make sure you have JAVA SDK installed (http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719)."
30 +      exit 1
31 +    fi
32 +  ;;
33 + esac
34   ./configure --prefix=%i
35   make %makeprocesses

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines