1
|
1 |
#
|
|
2 |
# spec file for package CBEbison
|
|
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 |
|
7
|
11 |
Name: CBEbison
|
|
12 |
License: GPL
|
|
13 |
Group: system/cbe
|
|
14 |
Version: 2.3
|
|
15 |
Distribution: Desktop CBE
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Desktop CBE: GNU parser generator
|
|
18 |
Source: ftp://ftp.gnu.org/gnu/bison/bison-%{version}.tar.bz2
|
|
19 |
URL: http://www.gnu.org/
|
|
20 |
SUNW_BaseDir: %{_prefix}
|
|
21 |
SUNW_Category: CBE,KDE,JDS,application
|
10
|
22 |
SUNW_Rev: %{?cbe_version}%{?!cbe_version:0.0}
|
7
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
1
|
24 |
%include default-depend.inc
|
10
|
25 |
BuildRequires: %make_dep
|
1
|
26 |
|
|
27 |
%prep
|
|
28 |
%setup -q -n bison-%{version}
|
|
29 |
|
|
30 |
%define INSTALL install -m755 -s
|
|
31 |
%define INSTALL_DIR install -d -m755
|
|
32 |
%define INSTALL_DATA install -m644
|
|
33 |
%define _mandir %{_datadir}/man
|
|
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 |
%if %cc_is_gcc
|
|
41 |
export CXXFLAGS="-O2 -Xlinker -i"
|
|
42 |
export CFLAGS="-O2 -Xlinker -i"
|
|
43 |
%else
|
|
44 |
export CXXFLAGS="-i -xO3 -xspace -mr -norunpath"
|
|
45 |
export CFLAGS="-i -xstrconst -mr"
|
|
46 |
%endif
|
|
47 |
./configure --prefix=%{_prefix} \
|
|
48 |
--libdir=%{_libdir} \
|
|
49 |
--mandir=%{_mandir} \
|
|
50 |
--datadir=%{_datadir} \
|
|
51 |
--infodir=%{_infodir}
|
10
|
52 |
gmake -j$CPUS
|
1
|
53 |
|
|
54 |
%install
|
|
55 |
rm -rf $RPM_BUILD_ROOT
|
10
|
56 |
gmake install DESTDIR=$RPM_BUILD_ROOT
|
|
57 |
gmake install-man DESTDIR=$RPM_BUILD_ROOT mandir=%_mandir
|
1
|
58 |
rm -rf $RPM_BUILD_ROOT%{_libdir}
|
|
59 |
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
60 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal
|
|
61 |
|
|
62 |
%clean
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
|
64 |
|
|
65 |
%files
|
|
66 |
%defattr (-, root, bin)
|
|
67 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
68 |
%{_bindir}/*
|
|
69 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
70 |
%{_datadir}/bison
|
|
71 |
%{_mandir}
|
|
72 |
|
|
73 |
%changelog
|
10
|
74 |
* Wed Jun 11 2008 <[email protected]>
|
|
75 |
- update rev, gmake depedency
|
1
|
76 |
* Mon Apr 14 2008 - [email protected]
|
|
77 |
- update deps
|
|
78 |
- use CBE.inc
|
|
79 |
* Tue Aug 22 2006 <[email protected]>
|
|
80 |
- fix %files attributes
|
|
81 |
- move to /opt/jdsbld by default
|
|
82 |
* Wed Aug 16 2006 <[email protected]>
|
|
83 |
- add missing deps
|
|
84 |
- bump to 2.3
|
|
85 |
* Fri Sep 02 2004 <[email protected]>
|
|
86 |
- remove unpackaged files
|
|
87 |
* Sun Sep 05 2004 <[email protected]>
|
|
88 |
- enable parallel build
|
|
89 |
* Fri Mar 05 2004 - <[email protected]>
|
|
90 |
- Included in the CBE, updated accordingly
|
|
91 |
* Fri Mar 05 2004 - [email protected]
|
|
92 |
- removed package root def'n
|
|
93 |
* Thu Mar 04 2004 - [email protected]
|
|
94 |
- initial version added to CVS
|