1
|
1 |
#
|
|
2 |
# spec file for package CBEdiff
|
|
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: CBEdiff
|
|
12 |
Version: 2.8.1
|
|
13 |
Release: 1
|
7
|
14 |
License: GPL
|
|
15 |
Group: system/cbe
|
|
16 |
Distribution: Desktop CBE
|
1
|
17 |
Vendor: Sun Microsystems, Inc.
|
10
|
18 |
Summary: Desktop CBE: GNU diff
|
1
|
19 |
Source: ftp://ftp.gnu.org/pub/gnu/diffutils/diffutils-%{version}.tar.gz
|
|
20 |
URL: http://www.gnu.org/
|
|
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 diff for the Desktop build environment
|
1
|
30 |
|
|
31 |
%prep
|
|
32 |
%setup -q -n diffutils-%{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 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
40 |
./configure \
|
|
41 |
--prefix=%{_prefix} \
|
|
42 |
--mandir=%{_mandir} \
|
|
43 |
--infodir=%{_infodir}
|
10
|
44 |
gmake -j$CPUS
|
1
|
45 |
|
|
46 |
%install
|
|
47 |
rm -rf $RPM_BUILD_ROOT
|
10
|
48 |
gmake install \
|
1
|
49 |
prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|
50 |
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
|
51 |
infodir=$RPM_BUILD_ROOT%{_infodir}
|
|
52 |
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
53 |
|
|
54 |
%clean
|
|
55 |
rm -rf $RPM_BUILD_ROOT
|
|
56 |
|
|
57 |
%files
|
|
58 |
%defattr(-, root, bin)
|
|
59 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
60 |
%{_bindir}/*
|
|
61 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
62 |
%{_mandir}/*
|
|
63 |
|
|
64 |
%changelog
|
17
|
65 |
* Mon Jun 16 2008 <[email protected]>
|
|
66 |
- move gendiff to CBEenv.spec
|
10
|
67 |
* Wed Jun 11 2008 <[email protected]>
|
|
68 |
- update rev, gmake depedency
|
1
|
69 |
* Mon Apr 14 2008 - [email protected]
|
|
70 |
- update deps
|
|
71 |
- use CBE.inc
|
|
72 |
* Tue Aug 22 2006 <[email protected]>
|
|
73 |
- fix %files attributes
|
|
74 |
- move to /opt/jdsbld by default
|
|
75 |
* Wed Aug 16 2006 <[email protected]>
|
|
76 |
- add missing deps
|
|
77 |
* Fri Dec 09 2005 <[email protected]>
|
|
78 |
- Add gendiff (taken from rpm 3.0.6, license: GPL)
|
|
79 |
* Fri Sep 02 2005 <[email protected]>
|
|
80 |
- remove unpackaged files
|
|
81 |
* Sun Sep 05 2004 <[email protected]>
|
|
82 |
- enable parallel build
|
|
83 |
* Tue Mar 09 2004 <[email protected]>
|
|
84 |
- initial version
|