File superlu.spec of Package superlu

#
# spec file for package superlu (Version 3.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           superlu
BuildRequires:  gcc-fortran tcsh
License:        BSD 3-Clause
Group:          Development/Libraries/C and C++
Provides:       blas2
AutoReqProv:    on
Summary:        SuperLU matrix solver
Version:        3.0
Release:        141
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
Url:            http://crd.lbl.gov/~xiaoye/SuperLU/
Prefix:         /usr
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
make  -C CBLAS #%{?jobs:-j%jobs}
make #%{?jobs:-j%jobs}

%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/*

%changelog
* Thu Jun 22 2006 ro@suse.de
- remove selfprovides
* Mon Mar 27 2006 garloff@suse.de
- superlu-undef-code.diff: Fix undefined code (#160443).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 22 2005 garloff@suse.de
- Install header files into /usr/include/superlu/
- Update User Guide.
* Wed Dec 21 2005 garloff@suse.de
- Include EXAMPLE dir as documentation.
- Build as non-root.
- Nuke unused local vars referencing uninitialized vars.
* Wed Dec 21 2005 garloff@suse.de
- Update to SuperLU-3.0: [#133821]
  * Added "options" input argument and "stat" output argument
  for the driver routines
  * More Examples
  * Added a "symmetric mode" for (nearly) symmetric matrices
  * Better Fortran interface.
  * fixed a bug in the complex drivers sgssvx/zgssvx when the
  input matrix is stored in compressed row format.
  * prefixed the header files by "slu_".
  * Fixed a memory leak in get_perm_c() when bnz=0.
  * Changed "abs" to "fabs" in izmax1.
  * Upgraded COLAMD to the latest version (2.3).15
- Add various declarations and #include statements
- Trick compiler into not optimizing away a loop in our timing
  measurement.
* Fri Nov 25 2005 yxu@suse.de
- add missing function prototypes
* Tue Nov 15 2005 dmueller@suse.de
- avoid an endless loop during building (#133820)
* Mon May 09 2005 meissner@suse.de
- fixed 1 byte buffer overflows.
* Mon Dec 20 2004 garloff@suse.de
- Pass $(RPM_OPT_FLAGS) -Os -fPIC for files that don't need to be
  optimized.
* Sat Sep 06 2003 garloff@suse.de
- Add -fPIC to allow inclusion in dynamic lib.
* Sun Aug 10 2003 garloff@suse.de
- -O3 leads to an endless loop in dlamanch test on x86. Probably
  some compiler of FPU weirdness. Remove -O3 on x86 again.
* Thu Aug 07 2003 garloff@suse.de
- Adapt chown syntax to owner:group.
- Reenable -O3 (compiler bug fixed?), but limit automatical
  inlining.
* Wed Jun 18 2003 ro@suse.de
- added directory to filelist.
* Wed Aug 28 2002 ro@suse.de
- remove -O3 from cflags (results in endless loop).
* Wed May 08 2002 garloff@suse.de
- lib64 fix.
* Wed May 08 2002 garloff@suse.de
- Fix test scripts.
- Use BuildRoot.
* Wed May 08 2002 garloff@suse.de
- Remove BLAS, Lapack.
- Rename package into SuperLU.
* Sat Apr 20 2002 garloff@suse.de
- Disable -fast-math
- In SuperLU, use CBLAS that ships with it
* Fri Apr 19 2002 garloff@suse.de
- Update to
  * CLAPACK-3.0
  * SuperLU-2.0
- Added SuperLU user guide
* Fri Apr 19 2002 garloff@suse.de
- Fixed compilation with gcc-3.1:
  link with -lfrtbegin (which contains main formerly in g2c)
* Wed Apr 10 2002 ro@suse.de
- fix owner for README.SuperLU
* Mon Aug 07 2000 garloff@suse.de
- Use %%{_docdir} to put docu in the right place.
* Mon Aug 07 2000 garloff@suse.de
- Add -mcpu=pentiumpro for i386
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Sep 01 1999 garloff@suse.de
- First creation of package.
openSUSE Build Service is sponsored by