1 |
< |
### RPM external cmake 1.8.3 |
2 |
< |
Source: http://www.cmake.org/files/v1.8/%n-%v.tar.gz |
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" != "true" |
10 |
> |
Requires: zlib |
11 |
> |
%endif |
12 |
> |
|
13 |
> |
%prep |
14 |
> |
|
15 |
> |
%setup -n cmake-%realversion |
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 |