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