2
|
1 |
#
|
|
2 |
# spec file for package CBEyasm
|
|
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 |
%define _prefix /tmp
|
|
11 |
Name: CBEyasm
|
|
12 |
Version: 0.6.2
|
|
13 |
License: BSD, Artisitic, GNU GPL2, GNU LGPL2
|
|
14 |
Distribution: JDS CBE
|
|
15 |
Vendor: Sun Microsystems, Inc.
|
|
16 |
Summary: JDS CBE: Yet another assembler
|
|
17 |
Source: http://www.tortall.net/projects/yasm/releases/yasm-%{version}.tar.gz
|
|
18 |
URL: http://www.tortall.net/projects/yasm/wiki
|
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
20 |
SUNW_BaseDir: %{_prefix}
|
|
21 |
SUNW_Category: JDS,CBE,application
|
|
22 |
SUNW_Rev: @CBE_VERSION@
|
|
23 |
%include default-depend.inc
|
|
24 |
|
|
25 |
|
|
26 |
%prep
|
|
27 |
%setup -q -n yasm-%{version}
|
|
28 |
|
|
29 |
%build
|
|
30 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
31 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
32 |
CPUS=1
|
|
33 |
fi
|
|
34 |
|
|
35 |
# the safest way is don't setup optim
|
|
36 |
export CFLAGS=""
|
|
37 |
export LDFLAGS=""
|
|
38 |
|
|
39 |
./configure --prefix=%{_prefix} \
|
|
40 |
--bindir=%{_bindir} \
|
|
41 |
--mandir=%{_mandir} \
|
|
42 |
--libdir=%{_libdir} \
|
|
43 |
--datadir=%{_datadir} \
|
|
44 |
--libexecdir=%{_libexecdir} \
|
|
45 |
--sysconfdir=%{_sysconfdir} \
|
|
46 |
--enable-shared \
|
|
47 |
--disable-static
|
|
48 |
make -j$CPUS
|
|
49 |
|
|
50 |
%install
|
|
51 |
rm -rf $RPM_BUILD_ROOT
|
|
52 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
53 |
|
|
54 |
|
|
55 |
%clean
|
|
56 |
rm -rf $RPM_BUILD_ROOT
|
|
57 |
|
|
58 |
%files
|
|
59 |
%defattr (-, root, bin)
|
|
60 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
61 |
%{_bindir}/*
|
|
62 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
63 |
%{_libdir}/*
|
|
64 |
%dir %attr (0755,root,sys) %{_mandir}
|
|
65 |
%{_mandir}/*
|
|
66 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
67 |
%{_includedir}/*
|
|
68 |
|
|
69 |
|
|
70 |
%changelog
|
|
71 |
* Fri Apr 18 2008 - [email protected]
|
|
72 |
- adopt for CBE
|
|
73 |
* Sat Apr 05 2008 - [email protected]
|
|
74 |
- Remove optimization flags, as they yield a broken yasm
|
|
75 |
* Sat Nov 17 2007 - [email protected]
|
|
76 |
- adopt for KBE
|
|
77 |
- bump to 0.6.2
|
|
78 |
* Mon Apr 30 2007 - [email protected]
|
|
79 |
- Initial version
|