1
|
1 |
#
|
|
2 |
# spec file for package CBEenv
|
|
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: CBEenv
|
10
|
12 |
Version: %{?cbe_version}%{?!cbe_version:0.0}
|
1
|
13 |
Vendor: Sun Microsystems, Inc.
|
7
|
14 |
Summary: Desktop CBE: env setup scripts for the Desktop CBE
|
1
|
15 |
Source: env.sh
|
|
16 |
Source1: env.csh
|
|
17 |
Source2: ld-wrapper
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
SUNW_BaseDir: %{_prefix}
|
7
|
20 |
SUNW_Category: CBE,KDE,JDS,application
|
1
|
21 |
%include default-depend.inc
|
|
22 |
|
|
23 |
%prep
|
|
24 |
mkdir -p %name-%version
|
|
25 |
|
10
|
26 |
%define relroot %(echo %{_bindir} | sed -e 's,[^/][^/]*,..,g' | cut -c2-)
|
|
27 |
|
1
|
28 |
%install
|
|
29 |
rm -rf $RPM_BUILD_ROOT
|
|
30 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
31 |
cp %SOURCE0 $RPM_BUILD_ROOT%{_bindir}
|
|
32 |
cp %SOURCE1 $RPM_BUILD_ROOT%{_bindir}
|
|
33 |
cp %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
|
|
34 |
chmod 755 $RPM_BUILD_ROOT%{_bindir}/*
|
|
35 |
|
10
|
36 |
%if %(pkginfo -q CBEautomake && echo 0 || echo 1)
|
|
37 |
# create the "automake" symlink to automake 1.10 when using the
|
|
38 |
# Solaris default automake, because it only includes versioned
|
|
39 |
# entries in /usr/bin
|
|
40 |
test -f %{?altroot}/usr/bin/automake-1.10 && {
|
|
41 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
42 |
ln -s %relroot/usr/bin/automake-1.10 automake
|
|
43 |
} || {
|
|
44 |
echo 'automake-1.10 not found'
|
|
45 |
exit 1
|
|
46 |
}
|
|
47 |
test -f %{?altroot}/usr/bin/aclocal-1.10 && {
|
|
48 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
49 |
ln -s %relroot/usr/bin/aclocal-1.10 aclocal
|
|
50 |
} || {
|
|
51 |
echo 'aclocal-1.10 not found'
|
|
52 |
exit 1
|
|
53 |
}
|
|
54 |
%endif
|
|
55 |
|
|
56 |
%if %(pkginfo -q CBEmake && echo 0 || echo 1)
|
|
57 |
# create the "make" symlink to gmake when using SUNWgmake
|
|
58 |
GMAKE=xx
|
|
59 |
for f in /usr/gnu/bin/make /usr/bin/gmake /usr/sfw/bin/gmake; do
|
|
60 |
test -f %{?altroot}$f && GMAKE=$f
|
|
61 |
done
|
|
62 |
if [ "x$GMAKE" == xxx ]; then
|
|
63 |
echo 'GNU make not found, please install SUNWgmake or CBEmake'
|
|
64 |
exit 1
|
|
65 |
fi
|
|
66 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
67 |
ln -s %relroot$GMAKE make
|
|
68 |
%endif
|
|
69 |
|
1
|
70 |
%clean
|
|
71 |
rm -rf $RPM_BUILD_ROOT
|
|
72 |
|
|
73 |
%files
|
|
74 |
%defattr(-, root, bin)
|
|
75 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
76 |
%{_bindir}/*
|
|
77 |
|
|
78 |
%changelog
|
10
|
79 |
* Wed Jun 11 2008 <[email protected]>
|
|
80 |
- update version, create symlinks for [Open]Solaris gnu make, automake, aclocal
|
1
|
81 |
* Mon Apr 14 2008 - [email protected]
|
|
82 |
- update deps
|
|
83 |
- use CBE.inc
|
|
84 |
* Fri Oct 14 2005 <[email protected]>
|
|
85 |
- add ld-wrapper
|
|
86 |
* Mon Sep 06 2004 <[email protected]>
|
|
87 |
- update version, fix Summary
|
|
88 |
* Mon May 24 2004 <[email protected]>
|
|
89 |
- initial version
|