--- slepc-2.3.2.orig/src/sys/slepcinit.c +++ slepc-2.3.2/src/sys/slepcinit.c @@ -123,8 +123,10 @@ */ #if defined(PETSC_USE_DYNAMIC_LIBRARIES) - ierr = PetscStrcpy(libs,SLEPC_LIB_DIR);CHKERRQ(ierr); + //ierr = PetscStrcpy(libs,SLEPC_LIB_DIR);CHKERRQ(ierr); + ierr = PetscStrcpy(libs,"/usr/lib");CHKERRQ(ierr); ierr = PetscStrcat(libs,"/libslepc");CHKERRQ(ierr); + //ierr = PetscStrcat(libs,"/libslepc.so.2.3.2");CHKERRQ(ierr); ierr = PetscDLLibraryRetrieve(PETSC_COMM_WORLD,libs,dlib,1024,&found);CHKERRQ(ierr); if (found) { ierr = PetscDLLibraryAppend(PETSC_COMM_WORLD,&DLLibrariesLoaded,libs);CHKERRQ(ierr); --- slepc-2.3.2.orig/src/sys/ftn-custom/zslepc_start.c +++ slepc-2.3.2/src/sys/ftn-custom/zslepc_start.c @@ -54,8 +54,10 @@ } #if defined(PETSC_USE_DYNAMIC_LIBRARIES) - *ierr = PetscStrcpy(libs,SLEPC_LIB_DIR);if (*ierr) return; + //*ierr = PetscStrcpy(libs,SLEPC_LIB_DIR);if (*ierr) return; + *ierr = PetscStrcpy(libs,"/usr/lib");if (*ierr) return; *ierr = PetscStrcat(libs,"/libslepc");if (*ierr) return; + //*ierr = PetscStrcat(libs,"/libslepc.so.2.3.2");if (*ierr) return; *ierr = PetscDLLibraryRetrieve(PETSC_COMM_WORLD,libs,dlib,1024,&found);if (*ierr) return; if (found) { *ierr = PetscDLLibraryAppend(PETSC_COMM_WORLD,&DLLibrariesLoaded,libs);if (*ierr) return; --- slepc-2.3.2.orig/debian/control +++ slepc-2.3.2/debian/control @@ -0,0 +1,40 @@ +Source: slepc +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian Scientific Computing Team +Uploaders: Christophe Prud'homme +Build-Depends: debhelper (>= 5), python (>= 2.4.4-6), libpetsc2.3.3-dev +Standards-Version: 3.7.2 +Section: non-free/libs +XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-scicomp/slepc/ +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-scicomp/slepc/ + +Package: libslepc2.3.2-dev +Section: non-free/libdevel +Architecture: any +Depends: libslepc2.3.2 (>= ${source:Version}) +Description: SLEPc - the Scalable Library for Eigenvalue Problem Computations + SLEPc is a software library for the solution of large scale sparse eigenvalue + problems on parallel computers. It is an extension of PETSc and can be used + for either standard or generalized eigenproblems, with real or complex + arithmetic. It can also be used for computing a partial SVD of a large, + sparse, rectangular matrix. + . + Install this package if you need to compile or link against SLEPc. + . + Homepage: http://www.grycap.upv.es/slepc + +Package: libslepc2.3.2 +Section: non-free/libs +Architecture: any +Depends: ${shlibs:Depends} +Description: SLEPc - the Scalable Library for Eigenvalue Problem Computations + SLEPc is a software library for the solution of large scale sparse eigenvalue + problems on parallel computers. It is an extension of PETSc and can be used + for either standard or generalized eigenproblems, with real or complex + arithmetic. It can also be used for computing a partial SVD of a large, + sparse, rectangular matrix. + . + This package contains the runtime dynamic library. + . + Homepage: http://www.grycap.upv.es/slepc --- slepc-2.3.2.orig/debian/dirs +++ slepc-2.3.2/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- slepc-2.3.2.orig/debian/slepc-dev.dirs +++ slepc-2.3.2/debian/slepc-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- slepc-2.3.2.orig/debian/compat +++ slepc-2.3.2/debian/compat @@ -0,0 +1 @@ +5 --- slepc-2.3.2.orig/debian/changelog +++ slepc-2.3.2/debian/changelog @@ -0,0 +1,30 @@ +slepc (2.3.2-1ubuntu1) jaunty; urgency=low + + * Move to build with libpetsc2.3.3-dev. + + -- James Westby Tue, 13 Jan 2009 13:50:04 +0000 + +slepc (2.3.2-1) unstable; urgency=low + + * Upload to debian non-free + + -- Christophe Prud'homme Mon, 09 Jul 2007 09:25:24 +0200 + +slepc (2.3.2-0oc3) unstable; urgency=low + + * Moved the package to non-free + + -- Ondrej Certik Thu, 05 Jul 2007 00:55:44 +0200 + +slepc (2.3.2-0oc2) unstable; urgency=low + + * copy SLEPc examples into the -dev package + + -- Ondrej Certik Wed, 04 Jul 2007 23:25:54 +0200 + +slepc (2.3.2-0oc1) unstable; urgency=low + + * Initial debian package + + -- Ondrej Certik Tue, 26 Jun 2007 11:18:31 +0200 + --- slepc-2.3.2.orig/debian/slepc-dev.install +++ slepc-2.3.2/debian/slepc-dev.install @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/lib/*.la +usr/share/pkgconfig/* --- slepc-2.3.2.orig/debian/slepc1.dirs +++ slepc-2.3.2/debian/slepc1.dirs @@ -0,0 +1 @@ +usr/lib --- slepc-2.3.2.orig/debian/copyright +++ slepc-2.3.2/debian/copyright @@ -0,0 +1,51 @@ +This package was debianized by Ondrej Certik on +Tue, 26 Jun 2007 11:18:31 +0200. + +It was downloaded from http://www.grycap.upv.es/slepc/ + +Upstream Authors: + + Vicente Hernandez + Jose E. Roman + Andres Tomas + Vicent Vidal + +Copyright: + + Copyright (c) 2002-2006, Universidad Politecnica de Valencia, Spain + +License: + + This software is provided 'as is', with absolutely no warranty, expressed or + implied. Any use is at your own risk. In no event shall the authors be liable + for any direct or indirect damages arising in any way out of the use of this + software. + + The user will acknowledge (using references [1] or [2]) the contribution of + SLEPc in any publication of material dependent upon the use of the package. + The user will reasonably endeavour to notify the authors of the package of + this publication. + + The user can modify the code but, at no time shall the right or title to all + or any part of this package pass to the user. Contributions are welcome + relating to any alteration or addition made to this package for the purposes + of extending the capabilities or enhancing its performance. Credit will be + given in the documentation for contributed code. + + This package (or a modified version) may not be sold. It is freely available + and it can be redistributed provided that redistribution comprises all files + including this copyright notice. No license is required for research use. For + commercial use, written permission must be granted by the authors. + + + [1] V. Hernandez, J. E. Roman and V. Vidal (2005), + SLEPc: A Scalable and Flexible Toolkit for the Solution of Eigenvalue Problems + ACM Trans. Math. Softw. 31(3), 351-362. + + [2] V. Hernandez, J. E. Roman and V. Vidal (2002), + SLEPc Users Manual, Technical Report DSIC-II/24/02, + Universidad Politecnica de Valencia, Spain. + + +The Debian packaging is (C) 2007, Ondrej Certik and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- slepc-2.3.2.orig/debian/docs +++ slepc-2.3.2/debian/docs @@ -0,0 +1 @@ +README --- slepc-2.3.2.orig/debian/rules +++ slepc-2.3.2/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +SLEPC_VERSION = 2.3.2 + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + + PETSC_DIR=/usr/lib/petsc SLEPC_DIR=`pwd` config/configure.py + #PETSC_DIR=/usr/lib/petsc SLEPC_DIR=`pwd` config/configure.py --with-arpack-dir=/usr/lib --with-arpack-flags=-lparpack,-larpack + + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + PETSC_DIR=/usr/lib/petsc SLEPC_DIR=`pwd` $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) allclean + + dh_clean + +slepcbin = $(CURDIR)/debian/libslepc$(SLEPC_VERSION) +slepcdev = $(CURDIR)/debian/libslepc$(SLEPC_VERSION)-dev + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir -p $(slepcbin)/usr/lib + mkdir -p $(slepcdev)/usr/lib + mkdir -p $(slepcdev)/usr/include/slepc + libdir=`grep "PETSc arch" make_log_linux-gnu-c-opt | cut -d ":" -f 2 | cut -c 2-`; \ + mkdir lib/$${libdir}/tmp-petsc-shlib; \ + cd lib/$${libdir}/tmp-petsc-shlib; \ + /usr/bin/ar x ../libslepc.a; \ + gcc -shared -Wl,-soname,libslepc.so.$(SLEPC_VERSION) -o ../libslepc.so.$(SLEPC_VERSION) *.o; \ + cd ../../..; \ + cp lib/$${libdir}/libslepc.so.$(SLEPC_VERSION) $(slepcbin)/usr/lib/ ; \ + cp lib/$${libdir}/libslepc.a $(slepcdev)/usr/lib/ + ln -s /usr/lib/libslepc.so.$(SLEPC_VERSION) $(slepcdev)/usr/lib/libslepc.so + cp include/*.h $(slepcdev)/usr/include/slepc + +# 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_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + 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 --- slepc-2.3.2.orig/debian/slepc1.install +++ slepc-2.3.2/debian/slepc1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- slepc-2.3.2.orig/debian/README.Debian +++ slepc-2.3.2/debian/README.Debian @@ -0,0 +1,9 @@ +slepc for Debian +---------------- + +Compile your files with: + +gcc -I/usr/include/slepc -I/usr/include/petsc -I/usr/include/mpi -c -o ex1.o ex1.c +gcc -o ex1 ex1.o -lpetsc -lpetscdm -lpetscksp -lpetscmat -lpetscsnes -lpetscts -lpetscvec -lslepc + + -- Ondrej Certik Tue, 26 Jun 2007 11:18:31 +0200 --- slepc-2.3.2.orig/debian/examples +++ slepc-2.3.2/debian/examples @@ -0,0 +1 @@ +src/examples/*