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