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.3 by elmer, Wed May 31 23:16:37 2006 UTC vs.
Revision 1.27 by eulisse, Wed Oct 27 07:19:36 2010 UTC

# Line 1 | Line 1
1 < ### RPM external cmake 1.8.3
2 < %define download dir %(echo %v | cut -d. -f1,2)
3 < Source: http://www.cmake.org/files/v1.8/%n-%v.tar.gz
4 < Patch1: cmake
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" != "true"
11 > Requires: zlib
12 > %endif
13  
14   %prep
15  
16 < %setup -n cmake-%v
17 < %patch1 -p1
16 > %setup -n cmake-%realversion
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