1
|
1 |
#
|
|
2 |
# spec file for package CBEautomake
|
|
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: CBEautomake
|
|
12 |
License: GPL
|
|
13 |
Group: system/cbe
|
|
14 |
Version: 1.10.1
|
|
15 |
%define am_19_version 1.9.6
|
|
16 |
Release: 1
|
|
17 |
Distribution: JDS CBE
|
|
18 |
Vendor: Sun Microsystems, Inc.
|
|
19 |
Summary: JDS CBE: GNU automake
|
|
20 |
Source: ftp://ftp.gnu.org/pub/gnu/automake/automake-%{version}.tar.bz2
|
|
21 |
Source1: ftp://ftp.gnu.org/pub/gnu/automake/automake-%{am_19_version}.tar.bz2
|
|
22 |
URL: http://www.gnu.org/
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
SUNW_BaseDir: %{_prefix}
|
|
25 |
SUNW_Category: JDS,CBE,application
|
|
26 |
SUNW_Rev: @CBE_VERSION@
|
|
27 |
%include default-depend.inc
|
|
28 |
Requires: SUNWperl584core
|
|
29 |
Requires: CBEm4
|
|
30 |
|
|
31 |
%description
|
|
32 |
GNU automake for the JDS build environment
|
|
33 |
|
|
34 |
%prep
|
|
35 |
%setup -q -c -n %name-%{version}
|
|
36 |
bzcat %SOURCE1 | tar xf -
|
|
37 |
|
|
38 |
%build
|
|
39 |
cd automake-%{am_19_version}
|
|
40 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
41 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
42 |
CPUS=1
|
|
43 |
fi
|
|
44 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
45 |
./configure \
|
|
46 |
--prefix=%{_prefix} \
|
|
47 |
--infodir=%{_infodir}
|
|
48 |
make -j$CPUS
|
|
49 |
|
|
50 |
cd ../automake-%{version}
|
|
51 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
52 |
./configure \
|
|
53 |
--prefix=%{_prefix} \
|
|
54 |
--infodir=%{_infodir}
|
|
55 |
make -j$CPUS
|
|
56 |
|
|
57 |
%install
|
|
58 |
rm -rf $RPM_BUILD_ROOT
|
|
59 |
cd automake-%{am_19_version}
|
|
60 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
61 |
cd ../automake-%{version}
|
|
62 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
63 |
|
|
64 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/aclocal
|
|
65 |
|
|
66 |
# make aclocal always look for macros in /usr/share/aclocal
|
|
67 |
test "%{_datadir}" = "/usr/share" || \
|
|
68 |
echo "/usr/share/aclocal" > $RPM_BUILD_ROOT%{_datadir}/aclocal/dirlist
|
|
69 |
|
|
70 |
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
71 |
|
|
72 |
# make automake-1.10 the default
|
|
73 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
74 |
rm automake
|
|
75 |
ln -s automake-1.10 automake
|
|
76 |
|
|
77 |
%clean
|
|
78 |
rm -rf $RPM_BUILD_ROOT
|
|
79 |
|
|
80 |
%files
|
|
81 |
%defattr(-, root, bin)
|
|
82 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
83 |
%{_bindir}/*
|
|
84 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
85 |
%{_datadir}/aclocal-*
|
|
86 |
%{_datadir}/automake-*
|
|
87 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
88 |
%{_datadir}/doc/automake
|
|
89 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
90 |
%{_datadir}/aclocal/*
|
|
91 |
|
|
92 |
%changelog
|
|
93 |
* Mon Apr 14 2008 - [email protected]
|
|
94 |
- update deps
|
|
95 |
- use CBE.inc
|
|
96 |
* Mon Mar 3 2008 - [email protected]
|
|
97 |
- bump to 1.10.1
|
|
98 |
- create automake symlink explicitely
|
|
99 |
* Mon Mar 26 2007 - [email protected]
|
|
100 |
- bump to 1.10 but include 1.9.6 too
|
|
101 |
* Tue Aug 22 2006 <[email protected]>
|
|
102 |
- fix %files attributes
|
|
103 |
- move to /opt/jdsbld by default
|
|
104 |
* Wed Aug 16 2006 <[email protected]>
|
|
105 |
- add missing deps
|
|
106 |
* Tue Oct 18 2005 - <[email protected]>
|
|
107 |
- add /usr/share/aclocal to the default search path
|
|
108 |
* Wed Aug 31 2005 - <[email protected]>
|
|
109 |
- update to 1.9.6
|
|
110 |
* Sun Sep 05 2004 - <[email protected]>
|
|
111 |
- enable parallel build
|
|
112 |
* Fri Mar 05 2004 - <[email protected]>
|
|
113 |
- fix %files
|
|
114 |
- change the pkg category
|