4
|
1 |
#
|
|
2 |
# spec file for package CBEgnuawk
|
|
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: CBEgawk
|
|
12 |
Version: 3.1.6
|
|
13 |
License: GPL
|
7
|
14 |
Distribution: Desktop CBE
|
4
|
15 |
Vendor: Sun Microsystems, Inc.
|
7
|
16 |
Summary: Desktop CBE: GNU awk - pattern scanning and processing filter
|
4
|
17 |
Source: http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.gz
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
SUNW_BaseDir: %{_prefix}
|
7
|
20 |
SUNW_Category: CBE,KDE,JDS,application
|
10
|
21 |
SUNW_Rev: %{?cbe_version}%{?!cbe_version:0.0}
|
4
|
22 |
%include default-depend.inc
|
|
23 |
Requires: SUNWlibms
|
10
|
24 |
BuildRequires: %make_dep
|
4
|
25 |
|
|
26 |
%prep
|
|
27 |
%setup -q -n gawk-%version
|
|
28 |
|
|
29 |
%build
|
|
30 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
31 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
32 |
CPUS=1
|
|
33 |
fi
|
|
34 |
|
|
35 |
export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP"
|
|
36 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
37 |
export MSGFMT="/usr/bin/msgfmt"
|
|
38 |
|
|
39 |
./configure --prefix=%{_prefix} \
|
|
40 |
--libexecdir=%{_libexecdir} \
|
|
41 |
--mandir=%{_mandir} \
|
|
42 |
--datadir=%{_datadir} \
|
|
43 |
--infodir=%{_datadir}/info
|
|
44 |
|
10
|
45 |
gmake -j$CPUS
|
4
|
46 |
|
|
47 |
%install
|
10
|
48 |
gmake install DESTDIR=$RPM_BUILD_ROOT
|
4
|
49 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/gnu
|
|
50 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/info/dir
|
35
|
51 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
4
|
52 |
|
|
53 |
%clean
|
|
54 |
rm -rf $RPM_BUILD_ROOT
|
|
55 |
|
|
56 |
%files
|
|
57 |
%defattr (-, root, bin)
|
|
58 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
59 |
%{_bindir}/*
|
|
60 |
%dir %attr (0755, root, bin) %{_libexecdir}
|
|
61 |
%{_libexecdir}/*
|
|
62 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
63 |
%dir %attr(0755, root, bin) %{_datadir}/info
|
|
64 |
%dir %attr(0755, root, sys) %{_datadir}/awk
|
|
65 |
%{_datadir}/awk/*
|
|
66 |
%{_datadir}/info/*
|
|
67 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
68 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
69 |
%{_mandir}/*/*
|
|
70 |
|
|
71 |
%changelog
|
35
|
72 |
* Fri Jul 18 2008 <[email protected]>
|
|
73 |
- remove locale, prevent to build error on Nevada >= 92
|
10
|
74 |
* Wed Jun 11 2008 <[email protected]>
|
|
75 |
- update rev, gmake depedency
|
4
|
76 |
* Sun Apr 20 2008 - <[email protected]>
|
|
77 |
- adopt for CBE
|
|
78 |
* Tue Oct 30 2007 - <[email protected]>
|
|
79 |
- adopt for KBE
|
|
80 |
- bump to 3.1.6
|
|
81 |
* Wed Oct 11 2006 - [email protected]
|
|
82 |
- add postrun scripts for updating the info dir file
|
|
83 |
* Sun Jan 18 2006 - [email protected]
|
|
84 |
- rename to SFEgawk; update summary
|
|
85 |
- remove -share pkg
|
|
86 |
- make /usr/gnu/bin/awk a symlink to /usr/bin/gawk
|
|
87 |
* Thu Apr 6 2006 - [email protected]
|
|
88 |
- Move Build/Requires to be listed under base package to be useful.
|
|
89 |
* Sun Dec 4 2005 - mike kiedrowski (lakeside-AT-cybrzn-DOT-com)
|
|
90 |
- Initial spec
|