1
|
1 |
#
|
|
2 |
# spec file for package CBEm4
|
|
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: CBEm4
|
9
|
12 |
Version: 1.4.9
|
1
|
13 |
License: GPL
|
|
14 |
Group: system/cbe
|
7
|
15 |
Distribution: Desktop CBE
|
1
|
16 |
Vendor: Sun Microsystems, Inc.
|
7
|
17 |
Summary: Desktop CBE: GNU m4
|
1
|
18 |
Source: ftp://ftp.gnu.org/pub/gnu/m4/m4-%{version}.tar.gz
|
|
19 |
URL: http://www.gnu.org/
|
|
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}
|
1
|
24 |
%include default-depend.inc
|
10
|
25 |
BuildRequires: %make_dep
|
1
|
26 |
|
|
27 |
%description
|
7
|
28 |
GNU m4 for the Desktop build environment
|
1
|
29 |
|
|
30 |
%prep
|
|
31 |
%setup -q -n m4-%{version}
|
|
32 |
|
|
33 |
%build
|
|
34 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
35 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
36 |
CPUS=1
|
|
37 |
fi
|
|
38 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
39 |
./configure --prefix=%{_prefix} \
|
|
40 |
--infodir=%{_infodir}
|
10
|
41 |
gmake -j$CPUS
|
1
|
42 |
|
|
43 |
%install
|
|
44 |
rm -rf $RPM_BUILD_ROOT
|
10
|
45 |
gmake install \
|
1
|
46 |
prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|
47 |
infodir=$RPM_BUILD_ROOT%{_infodir}
|
|
48 |
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
9
|
49 |
rm -rf $RPM_BUILD_ROOT%{_libdir}
|
1
|
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 |
%{_mandir}/man1
|
|
60 |
|
|
61 |
%changelog
|
10
|
62 |
* Wed Jun 11 2008 <[email protected]>
|
|
63 |
- update rev, make depedency
|
9
|
64 |
* Tue May 27 2008 <[email protected]>
|
|
65 |
- bump to 1.4.9
|
|
66 |
- remove ${_libdir} files from install
|
1
|
67 |
* Tue Aug 22 2006 <[email protected]>
|
|
68 |
- fix %files attributes
|
|
69 |
- move to /opt/jdsbld by default
|
|
70 |
* Wed Aug 16 2006 <[email protected]>
|
|
71 |
- add missing deps
|
|
72 |
- bump to 1.4.5
|
|
73 |
* Fri Sep 02 2004 <[email protected]>
|
|
74 |
- remove unpackaged files
|
|
75 |
* Sun Sep 05 2004 <[email protected]>
|
|
76 |
- enable parallel build
|
|
77 |
* Fri Mar 05 2004 <[email protected]>
|
|
78 |
- fix %files
|
|
79 |
- change the pkg category
|