1
|
1 |
#
|
|
2 |
# spec file for package CBEflex
|
|
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: CBEflex
|
7
|
12 |
Version: 2.5.33
|
1
|
13 |
License: BSD
|
|
14 |
Group: system/cbe
|
7
|
15 |
Distribution: Desktop CBE
|
1
|
16 |
Vendor: Sun Microsystems, Inc.
|
7
|
17 |
Summary: Desktop CBE: flex: a lexical analyser
|
1
|
18 |
Source: http://kent.dl.sourceforge.net/sourceforge/flex/flex-%{version}.tar.bz2
|
|
19 |
URL: http://flex.sourceforge.net/
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
SUNW_BaseDir: %{_prefix}
|
7
|
22 |
SUNW_Category: CBE,KDE,JDS,application
|
10
|
23 |
SUNW_Rev: %{?cbe_version}%{?!cbe_version:0.0}
|
1
|
24 |
%include default-depend.inc
|
10
|
25 |
BuildRequires: %make_dep
|
1
|
26 |
|
|
27 |
%prep
|
|
28 |
rm -rf %name-%version
|
|
29 |
mkdir %name-%version
|
|
30 |
%setup -q -n flex-%{version}
|
|
31 |
|
|
32 |
%build
|
|
33 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
34 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
35 |
CPUS=1
|
|
36 |
fi
|
10
|
37 |
export CFLAGS="$RPM_OPT_FLAGS %c99flag"
|
1
|
38 |
./configure --prefix=%{_prefix} \
|
|
39 |
--libdir=%{_libdir} \
|
|
40 |
--mandir=%{_mandir} \
|
|
41 |
--infodir=%{_infodir} \
|
|
42 |
--disable-nls
|
10
|
43 |
gmake -j$CPUS
|
1
|
44 |
|
|
45 |
%install
|
|
46 |
rm -rf $RPM_BUILD_ROOT
|
10
|
47 |
gmake DESTDIR=$RPM_BUILD_ROOT install
|
1
|
48 |
rm -rf $RPM_BUILD_ROOT%{_libdir}
|
|
49 |
rm -rf $RPM_BUILD_ROOT%{_includedir}
|
|
50 |
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
51 |
|
|
52 |
%clean
|
|
53 |
rm -rf $RPM_BUILD_ROOT
|
|
54 |
|
|
55 |
%files
|
|
56 |
%defattr (-, root, bin)
|
|
57 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
58 |
%{_bindir}/*
|
|
59 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
60 |
%{_datadir}/*
|
|
61 |
|
|
62 |
%changelog
|
10
|
63 |
* Wed Jun 11 2008 <[email protected]>
|
|
64 |
- update rev, gmake depedency, use c99flag
|
1
|
65 |
* Mon Apr 14 2008 - [email protected]
|
|
66 |
- update deps
|
|
67 |
- use CBE.inc
|
|
68 |
* Mon Aug 21 2006 <[email protected]>
|
|
69 |
- move to /opt/jdsbld by default
|
|
70 |
* Wed Aug 16 2006 <[email protected]>
|
|
71 |
- add missing deps
|
|
72 |
- bump to 2.5.33
|
|
73 |
* Tue Aug 1 2006 - [email protected]
|
|
74 |
- add -xc99 (fix from Doug Scott)
|
|
75 |
* Fri Sep 02 2004 <[email protected]>
|
|
76 |
- remove unpackaged files
|
|
77 |
* Sun Sep 05 2004 <[email protected]>
|
|
78 |
- enable parallel build
|
|
79 |
* Fri Mar 05 2004 <[email protected]>
|
|
80 |
- fix %files
|
|
81 |
- change the pkg category
|