author | xlucas |
Tue, 28 Apr 2009 09:49:26 +0000 | |
changeset 41 | 31570364d0f1 |
parent 39 | 24e4e432ccf2 |
child 42 | 923c6af7c39e |
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 |
|
39 | 12 |
Version: 2.6.3 |
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 |
37 | 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 |
|
39 | 21 |
Patch2: cmake-02-FindGettext.cmake.diff |
2 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
SUNW_BaseDir: %{_prefix} |
|
7 | 24 |
SUNW_Category: CBE,KDE,application |
10 | 25 |
SUNW_Rev: %{?cbe_version}%{?!cbe_version:0.0} |
2 | 26 |
%include default-depend.inc |
27 |
Requires: SUNWlibC |
|
10 | 28 |
BuildRequires: %make_dep |
2 | 29 |
|
30 |
%prep |
|
31 |
%setup -q -n cmake-%{version} |
|
32 |
%patch1 -p1 |
|
39 | 33 |
%patch2 -p1 |
2 | 34 |
|
35 |
%build |
|
36 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
37 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
38 |
CPUS=1 |
|
39 |
fi |
|
40 |
||
41 |
test -z "$CC" && export CC="/usr/bin/cc" |
|
10 | 42 |
test -z "$CXX" && export CXX="/usr/bin/CC -norunpath" |
2 | 43 |
|
44 |
./configure --prefix=%{_prefix} \ |
|
45 |
--bindir=%{_bindir} \ |
|
46 |
--libdir=%{_libdir} \ |
|
47 |
--mandir=%{_mandir} |
|
48 |
||
49 |
export CFLAGS="%optflags" |
|
50 |
export CXXFLAGS="%cxx_optflags" |
|
51 |
||
10 | 52 |
# disabled parallel build as it appears to break occasionally |
53 |
gmake |
|
2 | 54 |
|
55 |
%install |
|
56 |
rm -rf $RPM_BUILD_ROOT |
|
10 | 57 |
gmake DESTDIR=$RPM_BUILD_ROOT install |
2 | 58 |
|
59 |
#### Grrh terrible |
|
60 |
mv $RPM_BUILD_ROOT%{_prefix}/doc $RPM_BUILD_ROOT%{_prefix}/share |
|
61 |
mv $RPM_BUILD_ROOT%{_prefix}%{_prefix}/share/man $RPM_BUILD_ROOT%{_prefix}/share |
|
4 | 62 |
rm -rf $RPM_BUILD_ROOT%{_prefix}`dirname %{_prefix}` |
2 | 63 |
|
64 |
%clean |
|
65 |
rm -rf $RPM_BUILD_ROOT |
|
66 |
||
67 |
%files |
|
68 |
%defattr (-, root, bin) |
|
69 |
%dir %attr (0755, root, bin) %{_bindir} |
|
70 |
%{_bindir}/* |
|
71 |
%dir %attr (0755, root, sys) %{_datadir} |
|
72 |
%{_datadir}/cmake-* |
|
73 |
%{_mandir}/* |
|
74 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
75 |
%{_datadir}/doc/* |
|
76 |
||
77 |
%changelog |
|
39 | 78 |
* Mon Mar 16 2009 <[email protected]> |
79 |
- bump to 2.6.3 (fix many issues) |
|
80 |
* Fri Feb 20 2009 <[email protected]> |
|
81 |
- add specific name for GNU msgfmt > gmsgfmt |
|
37 | 82 |
* Mon Jan 12 2009 <[email protected]> |
83 |
- bump to 2.6.2 (KDE 4.2) |
|
34
f7e42ae97ede
putback cmake-2.4.8, because 2.6.0 has serious issue with RPATH setup on Solaris
xlucas
parents:
28
diff
changeset
|
84 |
* 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
|
85 |
- 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
|
86 |
issue with RUNPATH settings. |
28 | 87 |
* Tue Jun 24 2008 <[email protected]> |
88 |
- bump to 2.6.0 (KDE4.1 require) |
|
10 | 89 |
* Wed Jun 11 2008 <[email protected]> |
90 |
- update rev, make depedency, use -norunpath with CC |
|
2 | 91 |
* Fri Apr 18 2008 - <[email protected]> |
92 |
- adopt for CBE |
|
93 |
- bump to 2.4.8 |
|
94 |
* Thu Nov 1 2007 - <[email protected]> |
|
95 |
- adopt for KBE |
|
96 |
* Mon Oct 22 2007 - [email protected] |
|
97 |
- Bump to 2.4.7 |
|
98 |
* Mon Mar 19 2007 - [email protected] |
|
99 |
- Initial spec |