Only buildrequires (and build SQPR with) tbb on x86* and ia64 archs

This commit is contained in:
Deji Akingunola 2009-05-10 23:51:07 +00:00
parent 20bf40e4ff
commit 02b7af486c
2 changed files with 9 additions and 2 deletions

View File

@ -10,7 +10,10 @@ Source0: http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-
Patch0: suitesparse_build.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: atlas-devel tbb-devel
BuildRequires: atlas-devel
%ifarch %{ix86} x86_64 ia64
BuildRequires: tbb-devel
%endif
Obsoletes: umfpack <= 5.0.1
Obsoletes: ufsparse <= 2.1.1
Provides: ufsparse = %{version}-%{release}
@ -295,7 +298,11 @@ popd
pushd SPQR
pushd Lib
%ifarch %{ix86} x86_64 ia64
make CFLAGS="$RPM_OPT_FLAGS -DHAVE_TBB -DNPARTITION -fPIC"
%else
make CFLAGS="$RPM_OPT_FLAGS -DNPARTITION -fPIC"
%endif
popd
pushd ../Lib
g++ -shared -Wl,-soname,libspqr.so.%{spqr_version_major} -o \

View File

@ -52,7 +52,7 @@
# default, without timing, without TBB:
-SPQR_CONFIG =
+SPQR_CONFIG = -DHAVE_TBB -DNPARTITION
+SPQR_CONFIG = -DNPARTITION
# with timing and TBB:
# SPQR_CONFIG = -DTIMING -DHAVE_TBB
# with timing