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.13 by elmer, Fri Nov 2 20:41:07 2007 UTC vs.
Revision 1.29 by diego, Mon Aug 29 16:14:31 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines