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