author | xlucas |
Fri, 11 Jul 2008 21:36:55 +0000 | |
changeset 34 | f7e42ae97ede |
parent 28 | 2b87870f14a7 |
child 35 | 4ecd11d36119 |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
# spec file for package CBEcmake |
|
3 |
# |
|
4 |
# Copyright 2008 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
||
9 |
%include CBE.inc |
|
10 |
||
11 |
Name: CBEcmake |
|
34
f7e42ae97ede
putback cmake-2.4.8, because 2.6.0 has serious issue with RPATH setup on Solaris
xlucas
parents:
28
diff
changeset
|
12 |
Version: 2.4.8 |
7 | 13 |
Group: system/cbe |
2 | 14 |
License: BSD |
7 | 15 |
Distribution: Desktop CBE |
2 | 16 |
Vendor: Sun Microsystems, Inc. |
7 | 17 |
Summary: Desktop CBE: Cross platform make system |
28 | 18 |
Source: http://www.cmake.org/files/v2.6/cmake-%{version}.tar.gz |
2 | 19 |
URL: http://www.cmake.org |
20 |
Patch1: cmake-01-SunOS.cmake.diff |
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
22 |
SUNW_BaseDir: %{_prefix} |
|
7 | 23 |
SUNW_Category: CBE,KDE,application |
10 | 24 |
SUNW_Rev: %{?cbe_version}%{?!cbe_version:0.0} |
2 | 25 |
%include default-depend.inc |
26 |
Requires: SUNWlibC |
|
10 | 27 |
BuildRequires: %make_dep |
2 | 28 |
|
29 |
%prep |
|
30 |
%setup -q -n cmake-%{version} |
|
31 |
%patch1 -p1 |
|
32 |
||
33 |
%build |
|
34 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
35 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
36 |
CPUS=1 |
|
37 |
fi |
|
38 |
||
39 |
test -z "$CC" && export CC="/usr/bin/cc" |
|
10 | 40 |
test -z "$CXX" && export CXX="/usr/bin/CC -norunpath" |
2 | 41 |
|
42 |
./configure --prefix=%{_prefix} \ |
|
43 |
--bindir=%{_bindir} \ |
|
44 |
--libdir=%{_libdir} \ |
|
45 |
--mandir=%{_mandir} |
|
46 |
||
47 |
export CFLAGS="%optflags" |
|
48 |
export CXXFLAGS="%cxx_optflags" |
|
49 |
||
10 | 50 |
# disabled parallel build as it appears to break occasionally |
51 |
gmake |
|
2 | 52 |
|
53 |
%install |
|
54 |
rm -rf $RPM_BUILD_ROOT |
|
10 | 55 |
gmake DESTDIR=$RPM_BUILD_ROOT install |
2 | 56 |
|
57 |
#### Grrh terrible |
|
58 |
mv $RPM_BUILD_ROOT%{_prefix}/doc $RPM_BUILD_ROOT%{_prefix}/share |
|
59 |
mv $RPM_BUILD_ROOT%{_prefix}%{_prefix}/share/man $RPM_BUILD_ROOT%{_prefix}/share |
|
4 | 60 |
rm -rf $RPM_BUILD_ROOT%{_prefix}`dirname %{_prefix}` |
2 | 61 |
|
62 |
%clean |
|
63 |
rm -rf $RPM_BUILD_ROOT |
|
64 |
||
65 |
%files |
|
66 |
%defattr (-, root, bin) |
|
67 |
%dir %attr (0755, root, bin) %{_bindir} |
|
68 |
%{_bindir}/* |
|
69 |
%dir %attr (0755, root, sys) %{_datadir} |
|
70 |
%{_datadir}/cmake-* |
|
71 |
%{_mandir}/* |
|
72 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
73 |
%{_datadir}/doc/* |
|
74 |
||
75 |
%changelog |
|
34
f7e42ae97ede
putback cmake-2.4.8, because 2.6.0 has serious issue with RPATH setup on Solaris
xlucas
parents:
28
diff
changeset
|
76 |
* Fri Jul 11 2008 <[email protected]> |
f7e42ae97ede
putback cmake-2.4.8, because 2.6.0 has serious issue with RPATH setup on Solaris
xlucas
parents:
28
diff
changeset
|
77 |
- step back to 2.4.8, because 2.6.0 has serious |
f7e42ae97ede
putback cmake-2.4.8, because 2.6.0 has serious issue with RPATH setup on Solaris
xlucas
parents:
28
diff
changeset
|
78 |
issue with RUNPATH settings. |
28 | 79 |
* Tue Jun 24 2008 <[email protected]> |
80 |
- bump to 2.6.0 (KDE4.1 require) |
|
10 | 81 |
* Wed Jun 11 2008 <[email protected]> |
82 |
- update rev, make depedency, use -norunpath with CC |
|
2 | 83 |
* Fri Apr 18 2008 - <[email protected]> |
84 |
- adopt for CBE |
|
85 |
- bump to 2.4.8 |
|
86 |
* Thu Nov 1 2007 - <[email protected]> |
|
87 |
- adopt for KBE |
|
88 |
* Mon Oct 22 2007 - [email protected] |
|
89 |
- Bump to 2.4.7 |
|
90 |
* Mon Mar 19 2007 - [email protected] |
|
91 |
- Initial spec |