4
|
1 |
#
|
|
2 |
# spec file for package CBEgnused
|
|
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: CBEsed
|
|
12 |
Version: 4.1.5
|
|
13 |
License: GPL
|
7
|
14 |
Distribution: Desktop CBE
|
4
|
15 |
Vendor: Sun Microsystems, Inc.
|
7
|
16 |
Summary: Desktop CBE: GNU Stream Editor
|
4
|
17 |
Source: ftp://ftp.gnu.org/gnu/sed/sed-%{version}.tar.gz
|
|
18 |
Patch1: sed-01-gettext.diff
|
|
19 |
Patch2: sed-02-portability.diff
|
|
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}
|
4
|
24 |
%include default-depend.inc
|
10
|
25 |
BuildRequires: %make_dep
|
12
|
26 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
27 |
%if %(pkginfo -q SUNWlibtool && echo 1 || echo 0)
|
|
28 |
BuildRequires: SUNWlibtool
|
|
29 |
%else
|
|
30 |
BuildRequires: CBElibtool
|
|
31 |
%endif
|
4
|
32 |
|
|
33 |
%prep
|
|
34 |
%setup -q -n sed-%version
|
|
35 |
%patch1 -p1 -b .patch01
|
|
36 |
%patch2 -p1 -b .patch02
|
|
37 |
|
|
38 |
%build
|
|
39 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
40 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
41 |
CPUS=1
|
|
42 |
fi
|
|
43 |
|
|
44 |
export CFLAGS="%optflags -D_LARGEFILE64_SOURCE"
|
|
45 |
export LDFLAGS="%ldflags"
|
|
46 |
|
|
47 |
glib-gettextize -f
|
|
48 |
libtoolize --copy --force
|
16
|
49 |
aclocal-1.10 -I config
|
4
|
50 |
autoheader
|
|
51 |
autoconf
|
|
52 |
|
|
53 |
if test -f mkinstalldirs ; then /usr/bin/true ; else ( echo "#! /bin/sh" ; echo "/usr/bin/mkdir -p \"\$@\"" ) > mkinstalldirs ; fi
|
|
54 |
chmod 755 mkinstalldirs
|
|
55 |
|
|
56 |
./configure --prefix=%{_prefix} \
|
|
57 |
--mandir=%{_mandir} \
|
|
58 |
--infodir=%{_infodir}
|
|
59 |
|
10
|
60 |
gmake -j$CPUS
|
4
|
61 |
|
|
62 |
%install
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
10
|
64 |
gmake install DESTDIR=$RPM_BUILD_ROOT
|
4
|
65 |
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
66 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
67 |
|
|
68 |
%clean
|
|
69 |
rm -rf $RPM_BUILD_ROOT
|
|
70 |
|
|
71 |
%files
|
|
72 |
%defattr (-, root, bin)
|
|
73 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
74 |
%{_bindir}/*
|
|
75 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
76 |
%dir %attr (0755, root, bin) %{_mandir}
|
|
77 |
%dir %attr (0755, root, bin) %{_mandir}/man1
|
|
78 |
%{_mandir}/man1/*.1
|
|
79 |
%dir %attr(0755, root, bin) %{_infodir}
|
|
80 |
%{_infodir}/*
|
|
81 |
|
|
82 |
%changelog
|
10
|
83 |
* Wed Jun 11 2008 <[email protected]>
|
|
84 |
- update rev, gmake depedency
|
4
|
85 |
* Sun Apr 20 2008 - <[email protected]>
|
|
86 |
- adopt for CBE
|
|
87 |
* Wed Oct 31 2007 - <[email protected]>
|
|
88 |
- adpot for KBE
|
|
89 |
* Sat Jan 6 2006 - [email protected]
|
|
90 |
- bump to 4.1.5
|
|
91 |
- add patches gettext.diff and portability.diff
|
|
92 |
* Tue Nov 14 2006 - Eric Boutilier
|
|
93 |
- Initial spec
|