CBEbison.spec
author xlucas
Tue, 28 Apr 2009 09:49:26 +0000
changeset 41 31570364d0f1
parent 10 a65a967018ee
permissions -rw-r--r--
2009-03-16 Lukas (Luc) Oboril <[email protected]> * bump pkgbuild to latest version 1.3.98.4 * add Sun Studio Express 03/09 as known compiler
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 CBEbison
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
7
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    11
Name:			CBEbison
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    12
License:		GPL
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    13
Group:			system/cbe
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    14
Version:		2.3
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    15
Distribution:		Desktop CBE
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    16
Vendor:			Sun Microsystems, Inc.
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    17
Summary:		Desktop CBE: GNU parser generator
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    18
Source:			ftp://ftp.gnu.org/gnu/bison/bison-%{version}.tar.bz2
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    19
URL:			http://www.gnu.org/
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    20
SUNW_BaseDir:		%{_prefix}
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    21
SUNW_Category:		CBE,KDE,JDS,application
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    22
SUNW_Rev:		%{?cbe_version}%{?!cbe_version:0.0}
7
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 1
diff changeset
    23
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    24
%include default-depend.inc
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    25
BuildRequires: %make_dep
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    26
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    27
%prep
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    28
%setup -q -n bison-%{version}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    29
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    30
%define INSTALL install -m755 -s
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    31
%define INSTALL_DIR install -d -m755
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    32
%define INSTALL_DATA install -m644
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    33
%define _mandir %{_datadir}/man
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    34
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    35
%build
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    36
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    37
if test "x$CPUS" = "x" -o $CPUS = 0; then
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    38
  CPUS=1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    39
fi
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    40
%if %cc_is_gcc
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    41
  export CXXFLAGS="-O2 -Xlinker -i"
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    42
  export CFLAGS="-O2 -Xlinker -i"
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    43
%else
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    44
  export CXXFLAGS="-i -xO3 -xspace -mr -norunpath"
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    45
  export CFLAGS="-i -xstrconst -mr"
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    46
%endif
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    47
./configure --prefix=%{_prefix} \
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    48
  --libdir=%{_libdir} \
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    49
  --mandir=%{_mandir} \
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    50
  --datadir=%{_datadir} \
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    51
  --infodir=%{_infodir}
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    52
gmake -j$CPUS
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    53
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    54
%install
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    55
rm -rf $RPM_BUILD_ROOT
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    56
gmake install DESTDIR=$RPM_BUILD_ROOT
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    57
gmake install-man DESTDIR=$RPM_BUILD_ROOT mandir=%_mandir
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    58
rm -rf $RPM_BUILD_ROOT%{_libdir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    59
rm -rf $RPM_BUILD_ROOT%{_infodir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    60
rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    61
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    62
%clean
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    63
rm -rf $RPM_BUILD_ROOT
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    64
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    65
%files
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    66
%defattr (-, root, bin)
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    67
%dir %attr (0755, root, bin) %{_bindir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    68
%{_bindir}/*
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    69
%dir %attr(0755, root, sys) %{_datadir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    70
%{_datadir}/bison
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    71
%{_mandir}
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    72
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    73
%changelog
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    74
* Wed Jun 11 2008  <[email protected]>
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    75
- update rev, gmake depedency
1
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    76
* Mon Apr 14 2008 - [email protected]
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    77
- update deps
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    78
- use CBE.inc
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    79
* Tue Aug 22 2006  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    80
- fix %files attributes
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    81
- move to /opt/jdsbld by default
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    82
* Wed Aug 16 2006  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    83
- add missing deps
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    84
- bump to 2.3
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    85
* Fri Sep 02 2004  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    86
- remove unpackaged files
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    87
* Sun Sep 05 2004  <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    88
- enable parallel build
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    89
* Fri Mar 05 2004 - <[email protected]>
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    90
- Included in the CBE, updated accordingly
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    91
* Fri Mar 05 2004 - [email protected]
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    92
- removed package root def'n
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    93
* Thu Mar 04 2004 - [email protected]
102c9870ef63 initial import -- still incomplete
laca
parents:
diff changeset
    94
- initial version added to CVS