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