CBEenv.spec
author laca
Tue, 10 Jun 2008 13:04:19 +0000
changeset 10 a65a967018ee
parent 7 fe5233293a17
child 11 6769bf4088b7
permissions -rw-r--r--
2008-06-11 Laszlo (Laca) Peter <[email protected]> * README: (new) note on building the CBE from svn * CBEant.spec: update rev * CBEautoconf.spec: update rev, gmake dependency * CBEautomake.spec: update rev, gmake dependency, create aclocal symlink * CBEbison.spec: update rev, gmake dependency * CBEcmake.spec: update rev, gmake depedency, use -norunpath with CC * CBEcoreutils.spec: update rev, gmake dependency * CBEcvs.spec: update rev, gmake depedency * CBEdiff.spec: update rev, gmake depedency * CBEenv.spec: update version, create symlinks for [Open]Solaris gnu make, automake, aclocal * CBEflex.spec: update rev, gmake depedency, use c99flag * CBEgettext.spec: update rev, gmake dependency * CBEgnuawk.spec: update rev, gmake dependency * CBEgnused.spec: update rev, gmake dependency * CBElibtool.spec: update rev, gmake dependency * CBElibtool22.spec: update rev, gmake dependency * CBEm4.spec: update rev, gmake dependency * CBEmake.spec: update rev * CBErsync.spec: update rev, gmake dependency * CBEsubversion.spec: update rev, gmake dependency * CBEyasm.spec: update rev, gmake dependency, fix _datadir, _mandir attributes * cbe-install: major rework for Solaris 10, Nevada and OpenSolaris * cbe-remove: remove all 'JDS CBE' and 'Desktop CBE' packages * ext-sources/env.csh: fix unset bug reported by Ben Taylor, where multi-line values break the script * ext-sources/env.sh: fix unset bug reported by Ben Taylor * include/CBE.inc: define c99flag, cxx_optflags, make_dep and change default cbe prefix to /opt/dtbld
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     1
#
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     2
# spec file for package CBEenv
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     3
#
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     4
# Copyright 2008 Sun Microsystems, Inc.
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     7
#
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     8
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
     9
%include CBE.inc
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    10
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    11
Name:			CBEenv
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    12
Version:		%{?cbe_version}%{?!cbe_version:0.0}
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    13
Vendor:			Sun Microsystems, Inc.
7
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    14
Summary:		Desktop CBE: env setup scripts for the Desktop CBE
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    15
Source:			env.sh
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    16
Source1:                env.csh
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    17
Source2:                ld-wrapper
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    18
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    19
SUNW_BaseDir:		%{_prefix}
7
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    20
SUNW_Category:          CBE,KDE,JDS,application
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    21
%include default-depend.inc
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    22
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    23
%prep
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    24
mkdir -p %name-%version
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    25
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    26
%define relroot %(echo %{_bindir} | sed -e 's,[^/][^/]*,..,g' | cut -c2-)
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    27
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    28
%install
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    29
rm -rf $RPM_BUILD_ROOT
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    30
mkdir -p $RPM_BUILD_ROOT%{_bindir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    31
cp %SOURCE0 $RPM_BUILD_ROOT%{_bindir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    32
cp %SOURCE1 $RPM_BUILD_ROOT%{_bindir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    33
cp %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    34
chmod 755 $RPM_BUILD_ROOT%{_bindir}/*
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    35
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    36
%if %(pkginfo -q CBEautomake && echo 0 || echo 1)
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    37
# create the "automake" symlink to automake 1.10 when using the
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    38
# Solaris default automake, because it only includes versioned
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    39
# entries in /usr/bin
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    40
test -f %{?altroot}/usr/bin/automake-1.10 && {
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    41
    cd $RPM_BUILD_ROOT%{_bindir}
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    42
    ln -s %relroot/usr/bin/automake-1.10 automake
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    43
} || {
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    44
    echo 'automake-1.10 not found'
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    45
    exit 1
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    46
}
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    47
test -f %{?altroot}/usr/bin/aclocal-1.10 && {
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    48
    cd $RPM_BUILD_ROOT%{_bindir}
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    49
    ln -s %relroot/usr/bin/aclocal-1.10 aclocal
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    50
} || {
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    51
    echo 'aclocal-1.10 not found'
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    52
    exit 1
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    53
}
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    54
%endif
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    55
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    56
%if %(pkginfo -q CBEmake && echo 0 || echo 1)
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    57
# create the "make" symlink to gmake when using SUNWgmake
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    58
GMAKE=xx
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    59
for f in /usr/gnu/bin/make /usr/bin/gmake /usr/sfw/bin/gmake; do
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    60
    test -f %{?altroot}$f && GMAKE=$f
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    61
done
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    62
if [ "x$GMAKE" == xxx ]; then
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    63
    echo 'GNU make not found, please install SUNWgmake or CBEmake'
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    64
    exit 1
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    65
fi
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    66
cd $RPM_BUILD_ROOT%{_bindir}
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    67
ln -s %relroot$GMAKE make
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    68
%endif
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    69
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    70
%clean
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    71
rm -rf $RPM_BUILD_ROOT
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    72
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    73
%files
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    74
%defattr(-, root, bin)
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    75
%dir %attr (0755, root, bin) %{_bindir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    76
%{_bindir}/*
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    77
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    78
%changelog
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    79
* Wed Jun 11 2008  <[email protected]>
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    80
- update version, create symlinks for [Open]Solaris gnu make, automake, aclocal
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    81
* Mon Apr 14 2008 - [email protected]
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    82
- update deps
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    83
- use CBE.inc
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    84
* Fri Oct 14 2005  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    85
- add ld-wrapper
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    86
* Mon Sep 06 2004  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    87
- update version, fix Summary
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    88
* Mon May 24 2004  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    89
- initial version