CBEgnused.spec
author xlucas
Tue, 28 Apr 2009 09:49:26 +0000
changeset 41 31570364d0f1
parent 16 517d4d668260
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 CBEgnused
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:			CBEsed
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    12
Version:		4.1.5
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 Stream Editor
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    17
Source:			ftp://ftp.gnu.org/gnu/sed/sed-%{version}.tar.gz
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    18
Patch1:			sed-01-gettext.diff
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    19
Patch2:			sed-02-portability.diff
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    20
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    21
SUNW_BaseDir:		%{_prefix}
7
fe5233293a17 2008-04-20 Lukas (Luc) Oboril <[email protected]>
xlucas
parents: 4
diff changeset
    22
SUNW_Category:		CBE,KDE,JDS,application
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    23
SUNW_Rev:		%{?cbe_version}%{?!cbe_version:0.0}
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
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
12
af4384a951ad 2008-06-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10
diff changeset
    26
BuildRequires:          SUNWgnome-base-libs-devel
af4384a951ad 2008-06-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10
diff changeset
    27
%if %(pkginfo -q SUNWlibtool && echo 1 || echo 0)
af4384a951ad 2008-06-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10
diff changeset
    28
BuildRequires:          SUNWlibtool
af4384a951ad 2008-06-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10
diff changeset
    29
%else
af4384a951ad 2008-06-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10
diff changeset
    30
BuildRequires:          CBElibtool
af4384a951ad 2008-06-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10
diff changeset
    31
%endif
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    32
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    33
%prep
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    34
%setup -q -n sed-%version
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    35
%patch1 -p1 -b .patch01
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    36
%patch2 -p1 -b .patch02
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    37
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    38
%build
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    39
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    40
if test "x$CPUS" = "x" -o $CPUS = 0; then
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    41
     CPUS=1
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    42
fi
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    43
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    44
export CFLAGS="%optflags -D_LARGEFILE64_SOURCE"
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    45
export LDFLAGS="%ldflags"
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
glib-gettextize -f 
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    48
libtoolize --copy --force
16
517d4d668260 2008-06-16 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12
diff changeset
    49
aclocal-1.10 -I config
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    50
autoheader
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    51
autoconf
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
if test -f mkinstalldirs ; then /usr/bin/true ; else ( echo "#! /bin/sh" ; echo "/usr/bin/mkdir -p \"\$@\"" ) > mkinstalldirs ; fi
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    54
chmod 755 mkinstalldirs
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
./configure --prefix=%{_prefix}  \
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    57
            --mandir=%{_mandir} \
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    58
	    --infodir=%{_infodir}
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    59
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    60
gmake -j$CPUS
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    61
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    62
%install
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    63
rm -rf $RPM_BUILD_ROOT
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    64
gmake install DESTDIR=$RPM_BUILD_ROOT
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    65
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    66
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    67
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    68
%clean
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    69
rm -rf $RPM_BUILD_ROOT
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
%files
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    72
%defattr (-, root, bin)
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    73
%dir %attr (0755, root, bin) %{_bindir}
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    74
%{_bindir}/*
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    75
%dir %attr (0755, root, sys) %{_datadir}
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    76
%dir %attr (0755, root, bin) %{_mandir}
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    77
%dir %attr (0755, root, bin) %{_mandir}/man1
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    78
%{_mandir}/man1/*.1
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    79
%dir %attr(0755, root, bin) %{_infodir}
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    80
%{_infodir}/*
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    81
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    82
%changelog
10
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    83
* Wed Jun 11 2008  <[email protected]>
a65a967018ee 2008-06-11 Laszlo (Laca) Peter <[email protected]>
laca
parents: 7
diff changeset
    84
- update rev, gmake depedency
4
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    85
* Sun Apr 20 2008 - <[email protected]>
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    86
- adopt for CBE
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    87
* Wed Oct 31 2007 - <[email protected]>
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    88
- adpot for KBE
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    89
* Sat Jan  6 2006 - [email protected]
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    90
- bump to 4.1.5
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    91
- add patches gettext.diff and portability.diff
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    92
* Tue Nov 14 2006 - Eric Boutilier
407e0b9732b0 add GNU sed, GNU awk to CBE
xlucas
parents:
diff changeset
    93
- Initial spec