--- superlu-3.0+20070106.orig/make.inc +++ superlu-3.0+20070106/make.inc @@ -14,12 +14,16 @@ # ############################################################################ # +# The machine (platform) identifier to append to the library names +# +PLAT = + # # The name of the libraries to be created/linked to # -TMGLIB = libtmglib.a -SUPERLULIB = libsuperlu_3.0.a -BLASLIB = ../libblas.a +TMGLIB = libtmglib$(PLAT).a +SUPERLULIB = libsuperlu$(PLAT).a +BLASLIB = -lblas # # The archiver and the flag(s) to use when building archive (library) @@ -29,12 +33,12 @@ ARCHFLAGS = cr RANLIB = ranlib -CC = cc -CFLAGS = -xO3 -xcg92 -FORTRAN = f77 +CC = gcc +CFLAGS = -O2 +FORTRAN = g77 FFLAGS = -O -LOADER = cc -LOADOPTS = -xO3 +LOADER = gcc +LOADOPTS = # # C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase) @@ -43,4 +47,4 @@ # # The directory in which Matlab is installed # -MATLAB = /usr/sww/pkg/matlab +MATLAB = /opt/matlab --- superlu-3.0+20070106.orig/TESTING/Makefile +++ superlu-3.0+20070106/TESTING/Makefile @@ -56,9 +56,9 @@ single: ./stest stest.out -./stest: $(SLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB) +./stest: $(SLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB) $(LOADER) $(LOADOPTS) $(SLINTST) $(ALINTST) \ - $(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@ + $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@ stest.out: stest stest.csh @echo Testing SINGLE PRECISION linear equation routines @@ -66,9 +66,9 @@ double: ./dtest dtest.out -./dtest: $(DLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB) +./dtest: $(DLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB) $(LOADER) $(LOADOPTS) $(DLINTST) $(ALINTST) \ - $(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@ + $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@ dtest.out: dtest dtest.csh @echo Testing DOUBLE PRECISION linear equation routines @@ -76,9 +76,9 @@ complex: ./ctest ctest.out -./ctest: $(CLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB) +./ctest: $(CLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB) $(LOADER) $(LOADOPTS) $(CLINTST) $(ALINTST) \ - $(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@ + $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@ ctest.out: ctest ctest.csh @echo Testing SINGLE COMPLEX linear equation routines @@ -86,9 +86,9 @@ complex16: ./ztest ztest.out -./ztest: $(ZLINTST) $(ALINTST) ../$(SUPERLULIB) $(TMGLIB) +./ztest: $(ZLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB) $(LOADER) $(LOADOPTS) $(ZLINTST) $(ALINTST) \ - $(TMGLIB) ../$(SUPERLULIB) $(BLASLIB) -lm -o $@ + $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@ ztest.out: ztest ztest.csh @echo Testing DOUBLE COMPLEX linear equation routines --- superlu-3.0+20070106.orig/SRC/Makefile +++ superlu-3.0+20070106/SRC/Makefile @@ -124,4 +124,4 @@ $(CC) $(CFLAGS) $(CDEFS) $(BLASDEF) -c $< $(VERBOSE) clean: - rm -f *.o ../libsuperlu_3.0.a + rm -f *.o libsuperlu.* --- superlu-3.0+20070106.orig/debian/runtests.sh +++ superlu-3.0+20070106/debian/runtests.sh @@ -0,0 +1,16 @@ +#! /bin/sh +# set -x +if test ! -z $1; then + test -d $1 && cp -r /usr/share/doc/libsuperlu-dev/tests $1 + cp -r /usr/share/doc/libsuperlu-dev/examples $1/EXAMPLE + gunzip $1/EXAMPLE/g10.gz + cp /usr/share/doc/libsuperlu-dev/make.inc $1 + cd $1/tests/MATGEN + make CFLAGS="-I/usr/include/superlu" + cd $1/tests/ + make CFLAGS="-I/usr/include/superlu" + cd $1/EXAMPLE/ + make CFLAGS="-I/usr/include/superlu" +else + echo "usage: $0 " +fi --- superlu-3.0+20070106.orig/debian/libsuperlu3.install +++ superlu-3.0+20070106/debian/libsuperlu3.install @@ -0,0 +1,2 @@ +shared/SRC/libsuperlu.so.* /usr/lib +README /usr/share/doc/libsuperlu3 --- superlu-3.0+20070106.orig/debian/docs +++ superlu-3.0+20070106/debian/docs @@ -0,0 +1 @@ +README --- superlu-3.0+20070106.orig/debian/rules +++ superlu-3.0+20070106/debian/rules @@ -0,0 +1,100 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +version=3.0.0 +major=3 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + -mkdir -p shared/SRC static/SRC +# +# First build the shared library +# + cd shared/SRC ; \ + srcdir=../../SRC; \ + $(MAKE) -f $$srcdir/Makefile -I $$srcdir VPATH="$$srcdir" srcdir="$srcdir" NOOPTS="-fPIC" CFLAGS="-O3 -fPIC -pipe" DEBUGFLAGS="-DNDEBUG" ; \ + gcc -shared -Wl,-soname,libsuperlu.so.$(major) -o libsuperlu.so.$(version) `ls *.o` -lblas -lm + + cd static/SRC ; \ + srcdir=../../SRC; \ + $(MAKE) -f $$srcdir/Makefile -I $$srcdir VPATH="$$srcdir" srcdir="$$srcdir" CFLAGS="-O3 -pipe" DEBUGFLAGS="-DNDEBUG" LDFLAGS="-s" ; + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -rm -rf shared static + + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + ( cd shared/SRC && ln -sf libsuperlu.so.$(version) libsuperlu.so.$(major) ) + ( cd shared/SRC && ln -sf libsuperlu.so.$(version) libsuperlu.so ) + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install -X.svn + dh_link + dh_strip + dh_compress -X.c -XMakefile + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- superlu-3.0+20070106.orig/debian/copyright +++ superlu-3.0+20070106/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Christophe Prud'homme on +Mon, 26 Jul 2004 14:14:12 +0200. + +It was downloaded from http://crd.lbl.gov/~xiaoye/SuperLU/superlu_3.0.tar.gz + +Upstream Authors: +Jim Demmel +John Gilbert +Xiaoye (Sherry) Li + +Copyright: + +Copyright (c) 2003, The Regents of the University of California, through +Lawrence Berkeley National Laboratory (subject to receipt of any required +approvals from U.S. Dept. of Energy) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +(1) Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +(2) Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. +(3) Neither the name of Lawrence Berkeley National Laboratory, U.S. Dept. of +Energy nor the names of its contributors may be used to endorse or promote +products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + --- superlu-3.0+20070106.orig/debian/README.Debian +++ superlu-3.0+20070106/debian/README.Debian @@ -0,0 +1,17 @@ +SuperLU for Debian +------------------ + +SuperLU might be useful in conjunction with some other packages like: +petsc or arpack. Otherwise it is widely used in the scientific +computing community. + +I wrote a little script so that you can run the SuperLU tests. +Just type: + +sh /usr/share/doc/libsuperlu-dev/runtests.sh /tmp + +it will run all the tests in /tmp/tests. Check the .out files to see +what happened in each tests. + + + -- Christophe Prud'homme , Fri, 7 Apr 2006 09:45:25 +0200 --- superlu-3.0+20070106.orig/debian/compat +++ superlu-3.0+20070106/debian/compat @@ -0,0 +1 @@ +5 --- superlu-3.0+20070106.orig/debian/libsuperlu3-dev.install +++ superlu-3.0+20070106/debian/libsuperlu3-dev.install @@ -0,0 +1,8 @@ +shared/SRC/libsuperlu.so /usr/lib +static/libsuperlu.a /usr/lib +SRC/*.h /usr/include/superlu +README /usr/share/doc/libsuperlu-dev +EXAMPLE/* /usr/share/doc/libsuperlu-dev/examples +TESTING/* /usr/share/doc/libsuperlu-dev/tests +make.inc /usr/share/doc/libsuperlu-dev/ +debian/runtests.sh /usr/share/doc/libsuperlu-dev/ --- superlu-3.0+20070106.orig/debian/control +++ superlu-3.0+20070106/debian/control @@ -0,0 +1,51 @@ +Source: superlu +Priority: optional +Section: devel +Maintainer: Debian Scientific Computing Team +Uploaders: Christophe Prud'homme +Build-Depends: debhelper (>= 4.0.0), gcc( >= 3.0 ), libblas-dev +Standards-Version: 3.7.3 +Vcs-Svn: svn://svn.debian.org/svn/pkg-scicomp/superlu/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-scicomp/superlu/ + +Package: libsuperlu3-dev +Section: libdevel +Architecture: any +Depends: libsuperlu3 (= ${Source-Version}), libblas-dev +Description: Direct solution of large, sparse systems of linear equations + SuperLU is a general purpose library for the direct solution of + large, sparse, nonsymmetric systems of linear equations on high + performance machines. The library is written in C and is callable from + either C or Fortran. The library routines will perform an LU + decomposition with partial pivoting and triangular system solves + through forward and back substitution. The LU factorization routines + can handle non-square matrices but the triangular solves are performed + only for square matrices. The matrix columns may be preordered (before + factorization) either through library or user supplied routines. This + preordering for sparsity is completely separate from the + factorization. Working precision iterative refinement subroutines are + provided for improved backward stability. Routines are also provided + to equilibrate the system, estimate the condition number, calculate + the relative backward error, and estimate error bounds for the refined + solutions. + +Package: libsuperlu3 +Section: libs +Architecture: any +Depends: libblas3gf, ${shlibs:Depends} +Description: Direct solution of large, sparse systems of linear equations + SuperLU is a general purpose library for the direct solution of + large, sparse, nonsymmetric systems of linear equations on high + performance machines. The library is written in C and is callable from + either C or Fortran. The library routines will perform an LU + decomposition with partial pivoting and triangular system solves + through forward and back substitution. The LU factorization routines + can handle non-square matrices but the triangular solves are performed + only for square matrices. The matrix columns may be preordered (before + factorization) either through library or user supplied routines. This + preordering for sparsity is completely separate from the + factorization. Working precision iterative refinement subroutines are + provided for improved backward stability. Routines are also provided + to equilibrate the system, estimate the condition number, calculate + the relative backward error, and estimate error bounds for the refined + solutions. --- superlu-3.0+20070106.orig/debian/changelog +++ superlu-3.0+20070106/debian/changelog @@ -0,0 +1,59 @@ +superlu (3.0+20070106-3) unstable; urgency=low + + * debian/control: changed XS-Vcs-* to Vcs-* + * Bug fix: "superlu: Please depend on libblas instead of refblas3", + thanks to Colin Tuckley (Closes: #462290). + + -- Christophe Prud'homme Fri, 22 Feb 2008 23:54:05 +0100 + +superlu (3.0+20070106-2) unstable; urgency=low + + [Christophe Prud'homme] + * debian/control: update Standards-Version, no change + * Bug fix: "superlu: Please depend on libblas instead of refblas3", + thanks to Colin Tuckley (Closes: #462290). + + -- Christophe Prud'homme Thu, 24 Jan 2008 10:22:42 +0100 + +superlu (3.0+20070106-1) unstable; urgency=low + + [ Rafael Laboissiere ] + * debian/control: Added XS-Vcs-Svn and XS-Vcs-Browser fields to the Source + section + + [Christophe Prud'homme] + * New upstream release + + -- Christophe Prud'homme Sun, 15 Jul 2007 10:00:50 +0200 + +superlu (3.0-5) unstable; urgency=low + + * Reverted libsuperlu3-dev to libsuperlu-dev + + -- Christophe Prud'homme Fri, 7 Apr 2006 10:24:43 +0200 + +superlu (3.0-4) unstable; urgency=low + + * Changed libsuperlu3-dev to libsuperlu-dev + + -- Christophe Prud'homme Fri, 7 Apr 2006 10:01:06 +0200 + +superlu (3.0-3) unstable; urgency=low + + * Changed prudhomm@mit.edu to prudhomm@debian.org + * Use pkg-scicomp-devel@lists.alioth.debian.org as new maintainer address + + -- Christophe Prud'homme Fri, 7 Apr 2006 09:49:25 +0200 + +superlu (3.0-2) unstable; urgency=low + + * fixed inconsistencies: libsuperlu3-dev vs libsuperlu-dev + + -- Christophe Prud'homme Wed, 18 Aug 2004 09:26:10 +0200 + +superlu (3.0-1) unstable; urgency=low + + * Initial Release. (closes: #265217) + + -- Christophe Prud'homme Thu, 12 Aug 2004 11:05:16 +0200 + --- superlu-3.0+20070106.orig/debian/dirs +++ superlu-3.0+20070106/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin