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