author | xlucas |
Tue, 28 Apr 2009 09:49:26 +0000 | |
changeset 41 | 31570364d0f1 |
parent 33 | 5a33b8534100 |
child 43 | 3074c20eff5a |
permissions | -rwxr-xr-x |
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 |
|
3 | 10 |
|
2 | 11 |
Name: CBEyasm |
33
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
12 |
Version: 0.7.1 |
2 | 13 |
License: BSD, Artisitic, GNU GPL2, GNU LGPL2 |
7 | 14 |
Group: system/cbe |
15 |
Distribution: Desktop CBE |
|
2 | 16 |
Vendor: Sun Microsystems, Inc. |
7 | 17 |
Summary: Desktop CBE: Yet another assembler |
2 | 18 |
Source: http://www.tortall.net/projects/yasm/releases/yasm-%{version}.tar.gz |
19 |
URL: http://www.tortall.net/projects/yasm/wiki |
|
33
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
20 |
Patch1: yasm-01-bin_multi_test.sh.diff |
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
21 |
Patch2: yasm-02-configure.diff |
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
22 |
Patch3: yasm-03-out_test.sh.diff |
2 | 23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
24 |
SUNW_BaseDir: %{_prefix} |
|
7 | 25 |
SUNW_Category: CBE,KDE,JDS,application |
10 | 26 |
SUNW_Rev: %{?cbe_version}%{?!cbe_version:0.0} |
2 | 27 |
%include default-depend.inc |
10 | 28 |
BuildRequires: %make_dep |
2 | 29 |
|
30 |
||
31 |
%prep |
|
32 |
%setup -q -n yasm-%{version} |
|
33
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
33 |
%patch1 -p1 -b .patch01 |
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
34 |
%patch2 -p1 -b .patch02 |
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
35 |
%patch3 -p1 -b .patch03 |
2 | 36 |
|
37 |
%build |
|
38 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
39 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
40 |
CPUS=1 |
|
41 |
fi |
|
42 |
||
43 |
# the safest way is don't setup optim |
|
44 |
export CFLAGS="" |
|
45 |
export LDFLAGS="" |
|
46 |
||
47 |
./configure --prefix=%{_prefix} \ |
|
48 |
--bindir=%{_bindir} \ |
|
49 |
--mandir=%{_mandir} \ |
|
50 |
--libdir=%{_libdir} \ |
|
51 |
--datadir=%{_datadir} \ |
|
52 |
--libexecdir=%{_libexecdir} \ |
|
53 |
--sysconfdir=%{_sysconfdir} \ |
|
54 |
--enable-shared \ |
|
55 |
--disable-static |
|
10 | 56 |
gmake -j$CPUS |
2 | 57 |
|
58 |
%install |
|
59 |
rm -rf $RPM_BUILD_ROOT |
|
10 | 60 |
gmake install DESTDIR=$RPM_BUILD_ROOT |
2 | 61 |
|
62 |
||
63 |
%clean |
|
64 |
rm -rf $RPM_BUILD_ROOT |
|
65 |
||
66 |
%files |
|
67 |
%defattr (-, root, bin) |
|
68 |
%dir %attr (0755, root, bin) %{_bindir} |
|
69 |
%{_bindir}/* |
|
70 |
%dir %attr (0755, root, bin) %{_libdir} |
|
71 |
%{_libdir}/* |
|
10 | 72 |
%dir %attr (0755,root,sys) %{_datadir} |
73 |
%dir %attr (0755,root,bin) %{_mandir} |
|
2 | 74 |
%{_mandir}/* |
75 |
%dir %attr (0755, root, bin) %{_includedir} |
|
76 |
%{_includedir}/* |
|
77 |
||
78 |
||
79 |
%changelog |
|
33
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
80 |
* Fri Jun 27 2008 <[email protected]> |
5a33b8534100
* CBEyasm.spec: bump to 0.7.1 version, fixes a few issues which has 0.6.2
xlucas
parents:
10
diff
changeset
|
81 |
- bump to 0.7.1 |
10 | 82 |
* Wed Jun 11 2008 <[email protected]> |
83 |
- update rev, gmake depedency, fix _datadir, _mandir attributes |
|
2 | 84 |
* Fri Apr 18 2008 - [email protected] |
85 |
- adopt for CBE |
|
86 |
* Sat Apr 05 2008 - [email protected] |
|
87 |
- Remove optimization flags, as they yield a broken yasm |
|
88 |
* Sat Nov 17 2007 - [email protected] |
|
89 |
- adopt for KBE |
|
90 |
- bump to 0.6.2 |
|
91 |
* Mon Apr 30 2007 - [email protected] |
|
92 |
- Initial version |