--- slepc-3.1-p5.dfsg.orig/debian/changelog +++ slepc-3.1-p5.dfsg/debian/changelog @@ -0,0 +1,198 @@ +slepc (3.1-p5.dfsg-1) unstable; urgency=low + + [ Christophe Trophime ] + * New upstream version + + [ Christophe Prud'homme ] + * Update to -p5 + + -- Christophe Prud'homme Thu, 10 Feb 2011 12:01:14 +0100 + +slepc (3.0.0-p7.dfsg-8) unstable; urgency=low + + [Christophe Prud'homme] + * debian/control: depends on libpetsc3.0.0 to ensure that the hppa + breakage on libpetsc3.1 is bypassed + + -- Christophe Prud'homme Mon, 05 Jul 2010 16:22:27 +0200 + +slepc (3.0.0-p7.dfsg-7) unstable; urgency=low + + [Christophe Prud'homme] + * Attempt to fix build on some arches: don't let petsc try to rebuild + the shared libs + + -- Christophe Prud'homme Sun, 30 May 2010 08:35:01 +0200 + +slepc (3.0.0-p7.dfsg-6) unstable; urgency=low + + [Christophe Prud'homme] + * moved to Debian Science + * fix Depends to PETSc 3.1 and HDF5 + + -- Christophe Prud'homme Sat, 29 May 2010 12:49:20 +0200 + +slepc (3.0.0-p7.dfsg-5) unstable; urgency=low + + [Christophe Prud'homme] + * Added patch for a more verbose diagnostic at configure time + + -- Christophe Prud'homme Sat, 29 May 2010 11:44:05 +0200 + +slepc (3.0.0-p7.dfsg-4) unstable; urgency=low + + [Christophe Prud'homme] + * Bug fix: "FTBFS: ERROR: Unable to link with PETSc", thanks to Lucas + Nussbaum (Closes: #577291). + * Provide patch for PETSc 3.1 and changes in the interface + * Update Standards-Version to 3.8.4, no change + + -- Christophe Prud'homme Fri, 28 May 2010 13:50:42 +0200 + +slepc (3.0.0-p7.dfsg-3) unstable; urgency=low + + [Christophe Prud'homme] + * debian/control: fixed lintian warnings + + -- Christophe Prud'homme Sun, 03 Jan 2010 08:35:04 +0100 + +slepc (3.0.0-p7.dfsg-2) unstable; urgency=low + + [Christophe Prud'homme] + * Bug fix: "Updating the slepc Maintainer/Uploaders list", thanks to + Sandro Tosi (Closes: #550416). + + -- Christophe Prud'homme Sun, 08 Nov 2009 08:09:43 +0100 + +slepc (3.0.0-p7.dfsg-1) unstable; urgency=low + + * New upstream release (patch level 7). Includes some fixes for PGHNEP + problems and other minor fixes. + * debian/control: + - Update Standards-Version to 3.8.3. + - Force libslepc3.0.0-dev to depend on the exact same version of + libslepc3.0.0 (replace source:Version with binary:Version). + * debian/rules: Use DEB_BUILD_GNU_SYSTEM to set PETSC_ARCH such that + it does not fail on non linux-gnu architectures. + * debian/README.source: Refer to README.source for quilt. + * debian/watch: Use the dversionmangle option to remove the dfsg + + -- Johannes Ring Tue, 03 Nov 2009 08:23:03 +0100 + +slepc (3.0.0-p5.dfsg-1) unstable; urgency=low + + [ Johannes Ring ] + * New upstream release (patch level 5). Includes updated + conf/slepc_common_variables (closes: #528122). + * debian/rules: Removed docs/slepc.pdf from tarball (no sources). + * debian/control: + - Change section to debug for -dbg package (lintian warning). + - Updated Standards-Version to 3.8.2. + * debian/patches: Added patch to link SLEPc shared library against + PETSc shared libraries. + + [ Christophe Prud'homme ] + * Bug fix: "Paths broken so petsc is unable to find slepc", thanks to + root (Closes: #530625). + * debian/rules: don't fail in mv if some files are not there + + -- Christophe Prud'homme Wed, 26 Aug 2009 18:12:44 +0200 + +slepc (3.0.0-p2-1) unstable; urgency=low + + [ Christophe Prud'homme ] + * New upstream release + + Released under GNU LGPL license. + + Improved support for the case that many eigenpairs are to be + computed. This is especially so in the default eigensolver + (Krylov-Schur) for symmetric problems, as well as for SVD + computations. The user can control the behaviour of the solver with a + new parameter, mpd (see EPSSetDimensions). + + Support for harmonic projection in the default eigensolver + (Krylov-Schur), see EPSSetExtraction. This can be useful for computing + interior or rightmost eigenvalues without the need of a spectral + transformation. + + Memory usage has been optimized in most solvers. In some cases, + memory requirements have been halved with respect to the previous + versions. + + In the spectral transformations (ST) the linear solver used + internally has been changed to a direct solver by default. The user + can still employ an iterative linear solver by setting the appropriate + options. + + Added better support for Fortran 90. + + Improved support for 'make install', see the Users Manual for + details. + * debian/copyright: updated to LGPL-3 + * debian/control: Updated Standards-Version to 3.8.1 (no changes) + * debian/{control,compat}: Updated dh compat to 7 + + [ Johannes Ring ] + * Completely rewrote debian/rules. Now strongly based on debian/rules + from PETSc package. + * Removed NLU files (debian/slepc-dev.dirs, debian/slepc1.dirs, + debian/slepc-dev.install, debian/slepc1.install, debian/dirs, and + debian/examples). + * Removed NLU patches. + * debian/control: + - Removed build-dependency on quilt since there are no more patches. + - Added new package libslepc3.0.0-dbg for static debugging libraries. + - Added new package slepc3.0.0-doc for documentation and examples. + * debian/copyright: Added missing upstream author Eloy Romero. + + -- Christophe Prud'homme Thu, 19 Mar 2009 14:28:49 +0100 + +slepc (2.3.3.7-1) unstable; urgency=low + + * New upstream release: 2.3.3 with patch level 7 + + -- Christophe Prud'homme Tue, 28 Oct 2008 06:36:00 +0100 + +slepc (2.3.2-3) UNRELEASED; urgency=low + + [ Ondrej Certik ] + * Ondrej Certik added to Uploaders. + + [ Daniel Leidert ] + * debian/control: Vcs* and Homepage field transition. Fixed Vcs-Svn. + + -- Ondrej Certik Tue, 16 Oct 2007 00:55:36 +0200 + +slepc (2.3.2-2) unstable; urgency=low + + [ Christophe Prud'homme ] + * Upload slepc as libpetsc2.3.3 is now in debian + + -- Christophe Prud'homme Tue, 04 Sep 2007 21:28:07 +0200 + +slepc (2.3.2-1oc1) unstable; urgency=low + + * Unofficial build, until libpetsc2.3.3 hits the archives + * Fixed sources to built against libpetsc2.3.3 + * Updated README.Debian with building instructions + + -- Ondrej Certik Fri, 27 Jul 2007 15:08:44 +0200 + +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-3.1-p5.dfsg.orig/debian/control +++ slepc-3.1-p5.dfsg/debian/control @@ -0,0 +1,67 @@ +Source: slepc +Priority: extra +Maintainer: Debian Science Maintainers +Uploaders: Christophe Prud'homme +Build-Depends: debhelper (>= 7), quilt, python (>= 2.4.4-6), libpetsc3.1-dev (>= 3.1.dfsg-8.1), libpetsc3.1-dbg (>= 3.1.dfsg-8.1), libarpack2-dev, libarpack2-dbg, libhdf5-mpi-dev +Standards-Version: 3.9.1 +Section: libs +Homepage: http://www.grycap.upv.es/slepc/ +Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/slepc/trunk +Vcs-Browser: http://svn.debian.org/wsvn/debian-science/packages/slepc/trunk + +Package: libslepc3.1-dev +Section: libdevel +Architecture: any +Depends: libslepc3.1 (= ${binary:Version}), libpetsc3.1-dev (>= 3.1.dfsg-8.1), libarpack2-dev, libhdf5-mpi-dev, ${misc:Depends} +Suggests: libslepc3.1-dbg (= ${binary:Version}), slepc3.1-doc (= ${binary:Version}) +Conflicts: libslepc2.3.2-dev +Description: 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 static libraries, shared links, and header files + for SLEPC. + +Package: libslepc3.1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: libslepc2.3.2 +Description: 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 shared libraries for SLEPc. + +Package: libslepc3.1-dbg +Architecture: any +Section: debug +Depends: libslepc3.1-dev (= ${binary:Version}), libpetsc3.1-dbg (>= 3.1.dfsg-8.1), libarpack2-dbg, ${misc:Depends} +Description: 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 static debugging libraries for SLEPc. + +Package: slepc3.1-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Suggests: libslepc3.1-dev (= ${binary:Version}) +Description: 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 documentation and examples for SLEPc. --- slepc-3.1-p5.dfsg.orig/debian/README.source +++ slepc-3.1-p5.dfsg/debian/README.source @@ -0,0 +1,2 @@ +This package uses the quilt patch system to manage all modifications +to the upstream source (see /usr/share/doc/quilt/README.source). --- slepc-3.1-p5.dfsg.orig/debian/rules +++ slepc-3.1-p5.dfsg/debian/rules @@ -0,0 +1,283 @@ +#!/usr/bin/make -f +# Sample debian/rules file - for GNU Hello (1.3). +# Copyright 1994,1995 by Ian Jackson. +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified + +# This file is strongly based on debian/rules from the Debian PETSc package + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# SLEPC_VERSION is used for the package names, library sonames, and +# /usr/lib/slepcdir subdirectory names. +SLEPC_VERSION=3.1 + +# SLEPC_NAME is the install dir under /usr/lib and the base for package names +SLEPC_NAME=slepc$(SLEPC_VERSION) + +# PETSC_ARCH is the architecture that PETSc was configured on. +PETSC_ARCH=$(DEB_BUILD_GNU_SYSTEM) + +# PETSC_DIR is the location of PETSc. +PETSC_DIR=/usr/lib/petsc + +# These files need to be customized based on architecture and/or version. +# See the binary arch target for how they are generated. +ARCH_GENERATED_FILES=debian/lib$(SLEPC_NAME)-dev.postinst \ + debian/lib$(SLEPC_NAME)-dev.prerm + +export CPPFLAGS=-I/usr/include/petsc + +clean: + dh_testdir + -if [ -e patch ]; then \ + debian/rules unpatch; \ + fi + -mv tags thetags + dh_clean + -mv thetags tags + rm -f build* install* $(ARCH_GENERATED_FILES) + -$(MAKE) PETSC_ARCH=$(PETSC_ARCH)-c-debug PETSC_DIR=$(PETSC_DIR) \ + SLEPC_DIR=$(CURDIR) allclean + -$(MAKE) PETSC_ARCH=$(PETSC_ARCH)-c-opt PETSC_DIR=$(PETSC_DIR) \ + SLEPC_DIR=$(CURDIR) allclean +# These probably should be removed by `make clean' but aren't + rm -f `find . -name \*.pyc -print` + rm -rf $(PETSC_ARCH)-c-debug $(PETSC_ARCH)-c-opt + rm -rf lib debian/extemp + +patch: + if [ ! -e $@ ]; then \ + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2; \ + fi + touch $@ + +unpatch: + if [ -e patch ]; then \ + QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2; \ + rm -rf patch .pc; \ + fi + +build-indep: patch +# We have nothing to do by default. + touch $@ + +# With debugging=1, only static libraries are generated. +# Build optimized libs second so files are consistent with optimized. +build-arch: patch + PETSC_ARCH=$(PETSC_ARCH)-c-debug PETSC_DIR=$(PETSC_DIR) \ + SLEPC_DIR=$(CURDIR) ./configure --with-arpack-dir=/usr/lib/debug/usr/lib \ + --with-arpack-flags=-lparpack,-larpack + $(MAKE) PETSC_ARCH=$(PETSC_ARCH)-c-debug PETSC_DIR=$(PETSC_DIR) \ + SLEPC_INSTALL_DIR=/usr/lib/slepcdir/$(SLEPC_VERSION) \ + SLEPC_DIR=$(CURDIR) + PETSC_ARCH=$(PETSC_ARCH)-c-opt PETSC_DIR=$(PETSC_DIR) \ + SLEPC_DIR=$(CURDIR) ./configure --with-arpack-dir=/usr/lib \ + --with-arpack-flags=-lparpack,-larpack + $(MAKE) PETSC_ARCH=$(PETSC_ARCH)-c-opt PETSC_DIR=$(PETSC_DIR) \ + SLEPC_INSTALL_DIR=/usr/lib/slepcdir/$(SLEPC_VERSION) \ + SL_LINKER_SUFFIX_VERSIONED="so.$(SLEPC_VERSION)" \ + SLEPC_DIR=$(CURDIR) + touch $@ + +build: build-arch build-indep + touch $@ + +install-arch: build-arch +# Install conf in PETSC_DIR + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/conf + for cfile in `ls conf`; do \ + grep -v top_builddir conf/$$cfile | \ + sed "s/`echo $(CURDIR) | sed s/\\\\//\\\\\\\\\\\\//g`/\/usr\/lib\/slepcdir\/$(SLEPC_VERSION)/g" > \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/conf/$$cfile ; \ + done +# Install PETSC_ARCH/conf and PETSC_ARCH/include files in SLEPC_DIR/PETSC_ARCH/; +# replace this dir with install dir, and remove top_builddir + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/conf + for cfile in `ls $(PETSC_ARCH)-c-opt/conf`; do \ + grep -v top_builddir $(PETSC_ARCH)-c-opt/conf/$$cfile | \ + sed "s/`echo $(CURDIR) | sed s/\\\\//\\\\\\\\\\\\//g`/\/usr\/lib\/slepcdir\/$(SLEPC_VERSION)/g" > \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/conf/$$cfile ; \ + done + rm -f debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/conf/*.py + cp -a $(PETSC_ARCH)-c-opt/include debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/ +# Now conf and include for the -dbg package + install -d debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-debug/conf + for cfile in `ls $(PETSC_ARCH)-c-debug/conf`; do \ + grep -v top_builddir $(PETSC_ARCH)-c-debug/conf/$$cfile | \ + sed "s/`echo $(CURDIR) | sed s/\\\\//\\\\\\\\\\\\//g`/\/usr\/lib\/slepcdir\/$(SLEPC_VERSION)/g" > \ + debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-debug/conf/$$cfile ; \ + done + rm -f debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-debug/conf/*.py + cp -a $(PETSC_ARCH)-c-debug/include debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-debug/ +# Install headers in SLEPC_DIR/include + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/finclude + cp -p include/*.h \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include + cp -p include/finclude/*.h include/finclude/*.h90 \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/finclude + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/private + cp -p include/private/*.h \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/private + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/src/eps/impls/blopex + sed "s/..\/src/src/" < src/eps/impls/external/blopex/slepc-interface.h > \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/src/eps/impls/blopex/slepc-interface.h + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/src/eps/impls/arpack + cp -p src/eps/impls/external/arpack/arpackp.h \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/include/src/eps/impls/arpack +# Install libs in SLEPC_DIR, move shared libs to /usr/lib and symlink + install -d debian/lib$(SLEPC_NAME)/usr/lib + cp -a $(PETSC_ARCH)-c-opt/lib debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/ + cp -a $(PETSC_ARCH)-c-debug/lib debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-debug/ + for LIB in `cd $(PETSC_ARCH)-c-opt/lib && ls *.so.*` ; \ + do \ + mv debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/lib/$$LIB \ + debian/lib$(SLEPC_NAME)/usr/lib/$$LIB ; \ + ln -s ../../../../$$LIB \ + debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/$(PETSC_ARCH)-c-opt/lib/$$LIB ; \ + done +# Make legacy symlinks including C++ + install -d debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/lib + ln -s ../$(PETSC_ARCH)-c-opt/lib debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/lib/libO + ln -s ../$(PETSC_ARCH)-c-opt/lib debian/lib$(SLEPC_NAME)-dev/usr/lib/slepcdir/$(SLEPC_VERSION)/lib/libO_c++ + install -d debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/lib + ln -s ../$(PETSC_ARCH)-c-debug/lib debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/lib/libg + ln -s ../$(PETSC_ARCH)-c-debug/lib debian/lib$(SLEPC_NAME)-dbg/usr/lib/slepcdir/$(SLEPC_VERSION)/lib/libg_c++ + touch install-arch + +# Depends on install-arch because it creates SLEPC_DIR +install-indep: build-indep install-arch +ifeq ($(SLEPC_VERSION),3.1) +# Install header documentation in -doc/include + install -d debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/include/finclude + cp -p include/*.html \ + debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/include + cp -p include/finclude/*.html \ + debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/include/finclude + install -d debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/include/private + cp -p include/private/*.html \ + debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/include/private + for HEADERDOC in `cd debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/ && find include -name \*.h.html -print | sed s/.h.html/.h/`; \ + do \ + dh_link -p$(SLEPC_NAME)-doc \ + usr/lib/slepcdir/$(SLEPC_VERSION)/$$HEADERDOC \ + usr/share/doc/$(SLEPC_NAME)-doc/$$HEADERDOC; \ + done +# Install examples documentation in -doc/src directory + for TESTDIR in `find src -name examples -print | sed "s/src\///"`; \ + do \ + install -d debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/src/$$TESTDIR; \ + for TESTDOC in `find src/$$TESTDIR -name \*.html -print`; do \ + cp -a $$TESTDOC \ + debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/src/$$TESTDIR; \ + done ; \ + done +# I don't know of a way to do this "recursively" + -rmdir `find debian/slepc3.1-doc -empty -type d -print` + -rmdir `find debian/slepc3.1-doc -empty -type d -print` + -rmdir `find debian/slepc3.1-doc -empty -type d -print` + -rmdir `find debian/slepc3.1-doc -empty -type d -print` +# Install examples & makefiles into temporary directory debian/extemp + for TESTDIR in `find src -name examples -print | sed "s/src\///"`; \ + do \ + install -d debian/extemp/src/$$TESTDIR; \ + cp -a src/$$TESTDIR/* debian/extemp/src/$$TESTDIR; \ + done + for MAKEFILE in `find src -name makefile -print | sed "s/src\///"`; \ + do \ + if [ -d debian/extemp/src/`echo $$MAKEFILE | sed "s/makefile//"` ] ;\ + then \ + cp -p src/$$MAKEFILE debian/extemp/src/$$MAKEFILE; \ + fi; \ + done +# Clean up documentation from debian/extemp + rm -f `find debian/extemp -name \*.html -print` +# Pack debian/extemp/src into src.tar.gz and install + cd debian/extemp && tar czf src.tar.gz src + mv debian/extemp/src.tar.gz \ + debian/$(SLEPC_NAME)-doc/usr/share/doc/$(SLEPC_NAME)-doc/src.tar.gz + rm -rf debian/extemp +# Make links to documentation and examples from SLEPC_DIR and docs + dh_link -p$(SLEPC_NAME)-doc \ + usr/share/doc/$(SLEPC_NAME)-doc/docs \ + usr/lib/slepcdir/$(SLEPC_VERSION)/docs \ + usr/share/doc/$(SLEPC_NAME)-doc/docs/index.html \ + usr/lib/slepcdir/$(SLEPC_VERSION)/index.html \ + usr/share/doc/$(SLEPC_NAME)-doc/makefile.html \ + usr/lib/slepcdir/$(SLEPC_VERSION)/makefile.html \ + usr/share/doc/$(SLEPC_NAME)-doc/src \ + usr/lib/slepcdir/$(SLEPC_VERSION)/src + touch install-indep +endif + +install: install-arch install-indep + touch install + +binary-indep: install-indep +ifeq ($(SLEPC_VERSION),3.1) + dh_testdir -i + dh_testroot -i + dh_installdirs -i + dh_installdocs -i +# Clean up and finish + rm -f `find debian/$(SLEPC_NAME)-doc -name ?akefile -print` + rm -f `find debian/$(SLEPC_NAME)-doc -name *.cit* -print` + rm -f `find debian/$(SLEPC_NAME)-doc -empty -type f -print` + dh_installchangelogs -i + dh_compress -i -X.xbm -X.pdf + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i +endif + +binary-arch: install-arch + dh_testdir -a + dh_testroot -a + for ARCHGEN in $(ARCH_GENERATED_FILES); do \ + rm -f $$ARCHGEN ; \ + sed "s/petsc_arch/$(PETSC_ARCH)-c-opt/" < \ + `echo "$$ARCHGEN.in" | sed "s/$(SLEPC_NAME)/slepc3.1/"` | \ + sed "s/slepc_ver/$(SLEPC_VERSION)/" > $$ARCHGEN; \ + done + dh_installdirs -a + dh_installdocs -a + dh_installchangelogs -a + dh_strip -a -Xlibg$(SLEPC_BOPT_EXTRA) + dh_makeshlibs -a -m$(SLEPC_VERSION) + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +DEB_SOURCE_PACKAGE = slepc +DEB_UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p') +DEB_STRIPPED_UPSTREAM_VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | sed -n -e 's/\.dfsg.*$$//p') +USCAN_DESTDIR := $(CURDIR) + +.PHONY: binary binary-arch binary-indep clean checkroot get-orig-source +get-orig-source: + uscan --force-download --verbose --check-dirname-level 0 --destdir $(USCAN_DESTDIR) --download-version $(DEB_STRIPPED_UPSTREAM_VERSION) --upstream-version $(DEB_STRIPPED_UPSTREAM_VERSION) ; \ + set -ex ; + test -d $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig && rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig ; \ + TMPDIR=$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig; \ + mkdir $$TMPDIR; \ + cp $(USCAN_DESTDIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_STRIPPED_UPSTREAM_VERSION).orig.tar.gz "$$TMPDIR" ; \ + tar -C "$$TMPDIR" --strip-components 1 -xzf "$$TMPDIR"/$(DEB_SOURCE_PACKAGE)_$(DEB_STRIPPED_UPSTREAM_VERSION).orig.tar.gz ; \ + rm -f "$$TMPDIR"/$(DEB_SOURCE_PACKAGE)*.tar.gz ; \ + rm -f "$$TMPDIR"/docs/slepc.pdf ; \ + GZIP=-9 tar -czf \ + $(CURDIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig ; \ + rm -rf "$$TMPDIR" + --- slepc-3.1-p5.dfsg.orig/debian/watch +++ slepc-3.1-p5.dfsg/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\.dfsg\.\d+$//,downloadurlmangle=s/download.php\?filename=/distrib\//,filenamemangle=s/^.*(slepc.*?\.tgz)/$1/ \ + http://www.grycap.upv.es/slepc/download/download.htm ^.*slepc-(.+)\.tgz$ --- slepc-3.1-p5.dfsg.orig/debian/libslepc3.1-dev.postinst.in +++ slepc-3.1-p5.dfsg/debian/libslepc3.1-dev.postinst.in @@ -0,0 +1,11 @@ +#!/bin/sh -e + +# Make alternatives links +if [ "$1" = "configure" ]; then +update-alternatives --install /usr/lib/slepc slepc /usr/lib/slepcdir/slepc_ver 3100 \ + --slave /usr/include/slepc slepcinclude /usr/lib/slepcdir/slepc_ver/include \ + --slave /usr/lib/libslepc.a libslepc.a /usr/lib/slepcdir/slepc_ver/lib/libO/libslepc.a \ + --slave /usr/lib/libslepc.so libslepc.so /usr/lib/libslepc.so.slepc_ver +fi + +#DEBHELPER# --- slepc-3.1-p5.dfsg.orig/debian/slepc3.1-doc.docs +++ slepc-3.1-p5.dfsg/debian/slepc3.1-doc.docs @@ -0,0 +1 @@ +docs --- slepc-3.1-p5.dfsg.orig/debian/libslepc3.1-dev.prerm.in +++ slepc-3.1-p5.dfsg/debian/libslepc3.1-dev.prerm.in @@ -0,0 +1,8 @@ +#!/bin/sh -e + +# Remove alternatives links +if [ "$1" = "remove" ]; then + update-alternatives --remove slepc /usr/lib/slepcdir/slepc_ver +fi + +#DEBHELPER# --- slepc-3.1-p5.dfsg.orig/debian/README.Debian +++ slepc-3.1-p5.dfsg/debian/README.Debian @@ -0,0 +1,33 @@ +SLEPc for Debian +---------------- + +This source package includes the following binary packages: + + libslepc3.0.0 - shared libraries + libslepc3.0.0-dev - static libraries, shared links, and header files + libslepc3.0.0-dbg - static debugging libraries + slepc3.0.0-doc - documentation and examples + +With libslepc3.0.0-dev installed, you can build programs against it two ways: + + 1. Standard build convention: use -I/usr/include/slepc for headers and + link to optimized libraries in /usr/lib, so your resulting binaries + will only depend on libslepc3.0.0. To link against the static + debugging libs in libslepc3.0.0-dbg, add -L/usr/lib/slepc/lib/libg + when linking and set LD_LIBRARY_PATH to /usr/lib/slepc/lib/libg. + 2. PETSc/SLEPc build convention: modify the makefile from the one in + their examples directory and build with + + PETSC_DIR=/usr/lib/petsc PETSC_ARCH=`petscarch` \ + PETSC_LIB_DIR=$PETSC_DIR/$PETSC_ARCH/lib SLEPC_DIR=/usr/lib/slepc \ + SLEPC_LIB_DIR=$SLEPC_DIR/$PETSC_ARCH/lib make + +The slepc3.0.0-doc package comes with the full source code of the SLEPc +examples. Just do: + + tar xzf /usr/share/doc/slepc3.0.0-doc/src.tar.gz + +then cd src/examples, and use the PETSc/SLEPc build convention make command +above. + +See also README.Debian in the PETSc package for more releated notes. --- slepc-3.1-p5.dfsg.orig/debian/docs +++ slepc-3.1-p5.dfsg/debian/docs @@ -0,0 +1 @@ +README --- slepc-3.1-p5.dfsg.orig/debian/compat +++ slepc-3.1-p5.dfsg/debian/compat @@ -0,0 +1 @@ +7 --- slepc-3.1-p5.dfsg.orig/debian/copyright +++ slepc-3.1-p5.dfsg/debian/copyright @@ -0,0 +1,24 @@ +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 + Eloy Romero + Andres Tomas + Vicent Vidal + +Copyright: + + Copyright (c) 2002-2009, Universidad Politecnica de Valencia, Spain + +License: + + LGPL-3: /usr/share/common-licenses/LGPL-3 + + +The Debian packaging is (C) 2007, Ondrej Certik and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- slepc-3.1-p5.dfsg.orig/debian/patches/petsc-shlib-link.patch +++ slepc-3.1-p5.dfsg/debian/patches/petsc-shlib-link.patch @@ -0,0 +1,21 @@ +Link SLEPc shared library against PETSc shared libraries. + +Index: slepc-3.0.0-p7.dfsg/conf/slepc_common_variables +=================================================================== +--- slepc-3.0.0-p7.dfsg.orig/conf/slepc_common_variables 2010-05-28 13:45:15.000000000 +0200 ++++ slepc-3.0.0-p7.dfsg/conf/slepc_common_variables 2010-05-28 13:45:55.000000000 +0200 +@@ -8,7 +8,7 @@ + + PCONF = ${SLEPC_HAVE_ARPACK} ${SLEPC_HAVE_BLZPACK} ${SLEPC_HAVE_PLANSO} ${SLEPC_HAVE_TRLAN} ${SLEPC_MISSING_LAPACK} ${SLEPC_HAVE_PRIMME} + SLEPC_EXTERNAL_LIB = ${ARPACK_LIB} ${BLZPACK_LIB} ${PLANSO_LIB} ${TRLAN_LIB} ${PRIMME_LIB} +-OTHERSHAREDLIBS = ${SLEPC_EXTERNAL_LIB} ++OTHERSHAREDLIBS = ${SLEPC_EXTERNAL_LIB} ${PETSC_KSP_LIB} + + INSTALL_LIB_DIR = ${SLEPC_LIB_DIR} + CCPPFLAGS = ${PETSC_CCPPFLAGS} ${SLEPC_INCLUDE} ${PCONF} +@@ -20,4 +20,5 @@ + SLEPC_FORTRAN_LIB = + + SHLIBS = libslepc ++LIBNAME = ${SLEPC_LIB_DIR}/libslepc.a + --- slepc-3.1-p5.dfsg.orig/debian/patches/petsc31.patch +++ slepc-3.1-p5.dfsg/debian/patches/petsc31.patch @@ -0,0 +1,56 @@ +Index: slepc-3.0.0-p7.dfsg/config/makefile +=================================================================== +--- slepc-3.0.0-p7.dfsg.orig/config/makefile 2009-10-30 18:42:17.000000000 +0100 ++++ slepc-3.0.0-p7.dfsg/config/makefile 2010-05-30 08:33:18.000000000 +0200 +@@ -19,8 +19,9 @@ + # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + # + +-include ${PETSC_DIR}/conf/base ++include ${PETSC_DIR}/conf/variables ++include ${PETSC_DIR}/conf/rules + +-checklink: checklink.o chkopts ++checklink: checklink.o + ${CLINKER} -o checklink checklink.o ${TESTFLAGS} ${PETSC_KSP_LIB} + @${RM} -f checklink checklink.o +Index: slepc-3.0.0-p7.dfsg/src/eps/interface/monitor.c +=================================================================== +--- slepc-3.0.0-p7.dfsg.orig/src/eps/interface/monitor.c 2009-10-30 18:42:17.000000000 +0100 ++++ slepc-3.0.0-p7.dfsg/src/eps/interface/monitor.c 2010-05-30 08:33:00.000000000 +0200 +@@ -201,7 +201,7 @@ + PetscInt i; + int n = eps->nev; + #if !defined(PETSC_USE_COMPLEX) +- int p; ++ PetscReal p; + PetscDraw draw1; + PetscDrawLG lg1; + #endif +Index: slepc-3.0.0-p7.dfsg/src/svd/interface/svdmon.c +=================================================================== +--- slepc-3.0.0-p7.dfsg.orig/src/svd/interface/svdmon.c 2009-10-30 18:42:17.000000000 +0100 ++++ slepc-3.0.0-p7.dfsg/src/svd/interface/svdmon.c 2010-05-30 08:33:00.000000000 +0200 +@@ -188,7 +188,8 @@ + PetscDrawLG lg; + PetscErrorCode ierr; + PetscReal *x,*y; +- int p,n = svd->nsv; ++ PetscReal p; ++ int n = svd->nsv; + PetscInt i; + PetscDraw draw1; + PetscDrawLG lg1; +Index: slepc-3.0.0-p7.dfsg/src/sys/f90-mod/slepcmod.F +=================================================================== +--- slepc-3.0.0-p7.dfsg.orig/src/sys/f90-mod/slepcmod.F 2009-10-30 18:42:17.000000000 +0100 ++++ slepc-3.0.0-p7.dfsg/src/sys/f90-mod/slepcmod.F 2010-05-30 08:33:00.000000000 +0200 +@@ -19,7 +19,7 @@ + + #define PETSC_USE_FORTRAN_MODULES + +-#include "finclude/petscalldef.h" ++#include "finclude/petscdef.h" + #include "finclude/slepcalldef.h" + + module slepcstdef --- slepc-3.1-p5.dfsg.orig/debian/patches/series +++ slepc-3.1-p5.dfsg/debian/patches/series @@ -0,0 +1,3 @@ +verbose.patch +#petsc-shlib-link.patch +#petsc31.patch --- slepc-3.1-p5.dfsg.orig/debian/patches/verbose.patch +++ slepc-3.1-p5.dfsg/debian/patches/verbose.patch @@ -0,0 +1,20 @@ +Index: slepc-3.0.0-p7.dfsg/config/log.py +=================================================================== +--- slepc-3.0.0-p7.dfsg.orig/config/log.py 2010-05-29 11:39:30.000000000 +0200 ++++ slepc-3.0.0-p7.dfsg/config/log.py 2010-05-29 11:41:57.000000000 +0200 +@@ -19,7 +19,7 @@ + # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + # + +-import sys ++import sys,os + + import petscconf + +@@ -46,5 +46,6 @@ + f.write('\n') + f.close() + print string ++ os.system( 'cat ' + petscconf.ARCH + '/conf/configure.log' ) + sys.exit('ERROR: See "' + petscconf.ARCH + '/conf/configure.log" file for details') +