2007-01-16 00:38:16 +01:00
|
|
|
#
|
2012-02-10 17:20:11 +01:00
|
|
|
# spec file for package superlu
|
2007-01-16 00:38:16 +01:00
|
|
|
#
|
2012-02-10 17:20:11 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:38:16 +01:00
|
|
|
#
|
2009-06-18 00:26:31 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:38:16 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-06-18 00:26:31 +02:00
|
|
|
|
2007-01-16 00:38:16 +01:00
|
|
|
Name: superlu
|
|
|
|
BuildRequires: gcc-fortran tcsh
|
2011-12-06 19:06:14 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:38:16 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: blas2
|
|
|
|
Summary: SuperLU matrix solver
|
|
|
|
Version: 3.0
|
2009-06-18 00:26:31 +02:00
|
|
|
Release: 141
|
2007-01-16 00:38:16 +01:00
|
|
|
Source: ftp://ftp.netlib.org/scalapack/prototype/superlu_%{version}.tar.bz2
|
|
|
|
Source1: superlu_ug.ps.gz
|
|
|
|
Patch: superlu-3.0.diff
|
|
|
|
Patch1: superlu-overflow.patch
|
|
|
|
Patch2: superlu-include.patch
|
|
|
|
Patch3: superlu-dont-opt-away.diff
|
|
|
|
Patch4: superlu-initialize.diff
|
|
|
|
Patch5: superlu-undef-code.diff
|
2009-06-18 00:26:31 +02:00
|
|
|
Url: http://crd.lbl.gov/~xiaoye/SuperLU/
|
2007-01-16 00:38:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
SuperLU is an algorithm that uses group theory to optimize LU
|
|
|
|
decomposition of sparse matrices. It's the fastest direct solver for
|
|
|
|
linear systems that the author is aware of.
|
|
|
|
|
|
|
|
Docu can be found on http://www.netlib.org.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
xiaoye@nersc.gov
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n SuperLU_%{version}
|
|
|
|
%patch -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
#cd ../SuperLU
|
2012-02-10 17:20:11 +01:00
|
|
|
make -C CBLAS #%{?_smp_mflags}
|
|
|
|
make #%{?_smp_mflags}
|
2007-01-16 00:38:16 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_docdir}/superlu
|
|
|
|
make install_lib LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make install_blas LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT/usr/include/superlu
|
|
|
|
install -m 0644 SRC/*.h $RPM_BUILD_ROOT/usr/include/superlu/
|
|
|
|
cp -pf README $RPM_BUILD_ROOT/%{_docdir}/superlu/README.SuperLU
|
|
|
|
cp -pf %SOURCE1 $RPM_BUILD_ROOT/%{_docdir}/superlu/
|
|
|
|
cp -ax EXAMPLE $RPM_BUILD_ROOT/%{_docdir}/superlu/
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%docdir %{_docdir}/superlu
|
|
|
|
%doc %{_docdir}/superlu
|
|
|
|
%{_libdir}/libsuperlu.a
|
|
|
|
%{_libdir}/superlu_*.a
|
|
|
|
%{_libdir}/libblas2.a/
|
|
|
|
%{_libdir}/blas2_*.a
|
|
|
|
%dir /usr/include/superlu
|
|
|
|
/usr/include/superlu/*
|
|
|
|
|
2009-06-18 00:26:31 +02:00
|
|
|
%changelog
|