summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Belhachemi <domibel@debian.org>2008-09-12 14:00:52 +0000
committerDominique Belhachemi <domibel@debian.org>2008-09-12 14:00:52 +0000
commit3d3a1e2c5be1f63a00cbfaf90cd023392aa7b950 (patch)
tree01b249bb8c1a890162f5945a2ea382766097cb2e
new package sparskit added
-rw-r--r--debian/README.Debian13
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control37
-rw-r--r--debian/copyright17
-rw-r--r--debian/docs1
-rw-r--r--debian/get-orig-source7
-rw-r--r--debian/patches/00list1
-rwxr-xr-xdebian/patches/50_gfortran.dpatch187
-rwxr-xr-xdebian/rules95
10 files changed, 365 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..c6a08a3
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,13 @@
+sparskit for Debian
+-------------------
+
+ln -s /usr/bin/gfortran /usr/bin/f77
+
+package: make
+make-dfsg-3.81$ grep -r f77 .
+./default.c: "CF", "cf77",
+./default.c: "FC", "f77",
+
+
+
+ -- Dominique Belhachemi <domibel@cs.tu-berlin.de> Thu, 11 Sep 2008 23:22:53 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3cf0db4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+sparskit (2.0.0-1) intrepid; urgency=low
+
+ * Initial release (Closes: #498653)
+
+ -- Dominique Belhachemi <domibel@cs.tu-berlin.de> Thu, 11 Sep 2008 23:22:53 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e43c44f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: sparskit
+Priority: optional
+Maintainer: Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>
+DM-Upload-Allowed: yes
+Uploaders: Dominique Belhachemi <domibel@cs.tu-berlin.de>
+Build-Depends: debhelper (>= 7), dpatch, gfortran
+Standards-Version: 3.8.0
+Section: libs
+Homepage: http://www-users.cs.umn.edu/~saad/software/SPARSKIT/sparskit.html
+
+Package: libsparskit-dev
+Section: libdevel
+Architecture: any
+Depends: libsparskit2 (= ${binary:Version})
+Description: A basic tool-kit for sparse matrix computations
+ SPARSKIT a basic tool-kit for sparse matrix computations. Sparskit is a general
+ purpose FORTRAN-77 library for sparse matrix computations. It has been
+ gathered over several years and includes some of the most useful tools for
+ developing and implementing sparse matrix techniques, particularly for
+ iterative solvers. If you need a simple routine for doing a sparse matrix
+ operation (e.g., adding two sparse matrices, or reordering a sparse matrix) it
+ is likely to be available in SPARSKIT. SPARSKIT also contains most of the
+ iterative accelarators and a number of efficient preconditioners.
+
+Package: libsparskit2
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: A basic tool-kit for sparse matrix computations
+ SPARSKIT a basic tool-kit for sparse matrix computations. Sparskit is a
+ general purpose FORTRAN-77 library for sparse matrix computations. It has
+ been gathered over several years and includes some of the most useful tools
+ for developing and implementing sparse matrix techniques, particularly for
+ iterative solvers. If you need a simple routine for doing a sparse matrix
+ operation (e.g., adding two sparse matrices, or reordering a sparse matrix)
+ it is likely to be available in SPARSKIT. SPARSKIT also contains most of
+ the iterative accelarators and a number of efficient preconditioners.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..91ca3d8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,17 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Debianized-By: Dominique Belhachemi <domibel@cs.tu-berlin.de>
+Debianized-Date: Thu, 11 Sep 2008 23:22:53 +0200
+Original-Source: http://www-users.cs.umn.edu/~saad/software/SPARSKIT/sparskit.html
+
+Files: *
+Copyright:
+ Copyright (C) 2005, the University of Minnesota,
+ Yousef Saad, saad AT cs dot umn dot edu
+
+License: LGPL-2.1
+ see `/usr/share/common-licenses/LGPL-2.1'
+
+Files: debian/*
+Copyright: Copyright 2008, Dominique Belhachemi <domibel@cs.tu-berlin.de>
+License: GPL-2+
+ The Debian packaging is licensed under the GPL, see `/usr/share/common-licenses/GPL'
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100644
index 0000000..1d9bcb6
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,7 @@
+wget http://www-users.cs.umn.edu/~saad/software/SPARSKIT/SPARSKIT2.tar.gz
+tar xvzf SPARSKIT2.tar.gz
+mv SPARSKIT2 sparskit-2.0.0
+tar cvzf sparskit_2.0.0.orig.tar.gz sparskit-2.0.0/
+rm SPARSKIT2.tar.gz
+
+
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..b0a598d
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1 @@
+50_gfortran.dpatch
diff --git a/debian/patches/50_gfortran.dpatch b/debian/patches/50_gfortran.dpatch
new file mode 100755
index 0000000..75ca9a2
--- /dev/null
+++ b/debian/patches/50_gfortran.dpatch
@@ -0,0 +1,187 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 50_gfortran.dpatch by <domibel@sid1500>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: replaces f77 by gfortran
+
+@DPATCH@
+diff -urNad sparskit-2.0.0~/BLASSM/makefile sparskit-2.0.0/BLASSM/makefile
+--- sparskit-2.0.0~/BLASSM/makefile 1996-08-13 01:13:02.000000000 +0200
++++ sparskit-2.0.0/BLASSM/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,8 +1,5 @@
+ FFLAGS =
+-F77 = f77
+-
+-#F77 = cf77
+-#FFLAGS = -Wf"-dp"
++F77 = gfortran
+
+ mvec.ex: rmatvec.o ../MATGEN/FDIF/functns.o ../libskit.a
+ $(F77) $(FFLAGS) -o mvec.ex rmatvec.o ../MATGEN/FDIF/functns.o ../libskit.a
+diff -urNad sparskit-2.0.0~/FORMATS/makefile sparskit-2.0.0/FORMATS/makefile
+--- sparskit-2.0.0~/FORMATS/makefile 1996-08-13 01:13:24.000000000 +0200
++++ sparskit-2.0.0/FORMATS/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,8 +1,6 @@
+ FFLAGS =
+-F77 = f77
+-
+-#F77 = cf77
+-#FFLAGS = -Wf"-dp"
++F77 = gfortran
++FC = gfortran
+
+ FILES1 = chkun.o
+ FILES2 = chkfmt1.o
+diff -urNad sparskit-2.0.0~/INFO/makefile sparskit-2.0.0/INFO/makefile
+--- sparskit-2.0.0~/INFO/makefile 2003-07-11 23:38:12.000000000 +0200
++++ sparskit-2.0.0/INFO/makefile 2008-09-12 15:06:55.000000000 +0200
+@@ -1,18 +1,14 @@
+-#
+-F77 = f77
+-#F77 = cf77
++FC = gfortran
++F77 = gfortran
+ FFLAGS = -g -Wall
+
+ FILES = rinfo1.o dinfo13.o
+ ## needs library libskit.a in whatever machine version --
+
+-LIB = -L/project/darpa/lib/PC -lskit
+-##LIB = -L/project/darpa/lib/solaris -lskit
+-
+ info1.ex: $(FILES)
+- $(F77) -o info1.ex $(FILES) $(LIB)
++ $(F77) -o info1.ex $(FILES) ../libskit.a
+
+ clean:
+ rm -f *.o *.ex core *.trace *~
+
+-.f.o : ; $(F77) $(FFLAGS) -c $*.f -o $*.o
+\ No newline at end of file
++.f.o : ; $(F77) $(FFLAGS) -c $*.f -o $*.o
+diff -urNad sparskit-2.0.0~/INOUT/makefile sparskit-2.0.0/INOUT/makefile
+--- sparskit-2.0.0~/INOUT/makefile 1996-08-13 01:13:40.000000000 +0200
++++ sparskit-2.0.0/INOUT/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,5 +1,6 @@
+ FFLAGS =
+-F77 = f77
++F77 = gfortran
++FC = gfortran
+
+ #F77 = cf77
+ #FFLAGS = -Wf"-dp"
+diff -urNad sparskit-2.0.0~/ITSOL/makefile sparskit-2.0.0/ITSOL/makefile
+--- sparskit-2.0.0~/ITSOL/makefile 1996-08-13 01:13:46.000000000 +0200
++++ sparskit-2.0.0/ITSOL/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,8 +1,6 @@
+ FFLAGS =
+-F77 = f77
+-
+-#F77 = cf77
+-#FFLAGS = -Wf"-dp"
++F77 = gfortran
++FC = gfortran
+
+ LIBS = ../libskit.a ../UNSUPP/BLAS1/blas1.o
+
+diff -urNad sparskit-2.0.0~/MATGEN/FDIF/makefile sparskit-2.0.0/MATGEN/FDIF/makefile
+--- sparskit-2.0.0~/MATGEN/FDIF/makefile 1996-08-13 01:13:56.000000000 +0200
++++ sparskit-2.0.0/MATGEN/FDIF/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,8 +1,6 @@
+ FFLAGS =
+-F77 = f77
+-
+-#F77 = cf77
+-#FFLAGS = -Wf"-dp"
++F77 = gfortran
++FC = gfortran
+
+ FILES1 = rgen5pt.o functns.o
+
+diff -urNad sparskit-2.0.0~/MATGEN/FEM/makefile sparskit-2.0.0/MATGEN/FEM/makefile
+--- sparskit-2.0.0~/MATGEN/FEM/makefile 1996-08-13 01:14:02.000000000 +0200
++++ sparskit-2.0.0/MATGEN/FEM/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,8 +1,6 @@
+ FFLAGS =
+-F77 = f77
+-
+-#F77 = cf77
+-#FFLAGS = -Wf"-dp"
++F77 = gfortran
++FC = gfortran
+
+ FILES = convdif.o functns2.o
+
+diff -urNad sparskit-2.0.0~/MATGEN/MISC/makefile sparskit-2.0.0/MATGEN/MISC/makefile
+--- sparskit-2.0.0~/MATGEN/MISC/makefile 1996-08-13 01:14:08.000000000 +0200
++++ sparskit-2.0.0/MATGEN/MISC/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,5 +1,6 @@
+ FFLAGS =
+-F77 = f77
++F77 = gfortran
++FC = gfortran
+
+ #F77 = cf77
+ #FFLAGS = -Wf"-dp"
+diff -urNad sparskit-2.0.0~/UNSUPP/MATEXP/makefile sparskit-2.0.0/UNSUPP/MATEXP/makefile
+--- sparskit-2.0.0~/UNSUPP/MATEXP/makefile 1996-08-13 01:14:17.000000000 +0200
++++ sparskit-2.0.0/UNSUPP/MATEXP/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -1,8 +1,6 @@
+ FFLAGS =
+-F77 = f77
+-
+-#F77 = cf77
+-#FFLAGS = -Wf"-dp"
++F77 = gfortran
++FC = gfortran
+
+ FILES1 = rexp.o exppro.o
+ FILES2 = rphi.o phipro.o
+diff -urNad sparskit-2.0.0~/makefile sparskit-2.0.0/makefile
+--- sparskit-2.0.0~/makefile 2001-07-13 00:01:39.000000000 +0200
++++ sparskit-2.0.0/makefile 2008-09-12 15:05:38.000000000 +0200
+@@ -20,28 +20,27 @@
+ # Last Updated: May 9, 1994.
+
+ SHELL = /bin/sh
+-F77 = f77
+-# F77 = f77
++F77 = gfortran
++FC = gfortran
+ # AR = ar rcv
+ AR = ar -rcv
+ # OPT = -c
+ # OPT = -c -static -64 -mips4 -O3 -r10000
+ OPT = -c -O
+
+-# Cray options
+-#F77 = cf77
+-#AR = bld rv
+-#OPT = -c -Wf"-dp"
+
+ #
+ # library objects
+ #
+ OBJ = BLASSM/blassm.o \
+ BLASSM/matvec.o \
++ BLASSM/rmatvec.o \
++ BLASSM/tester.o \
+ FORMATS/formats.o \
+ FORMATS/unary.o \
+ INFO/infofun.o \
+ INOUT/inout.o \
++ INOUT/chkio.f \
+ ITSOL/ilut.o \
+ ITSOL/iters.o \
+ MATGEN/FDIF/genmat.o \
+@@ -103,6 +102,10 @@
+ (cd BLASSM ; $(F77) $(OPT) blassm.f)
+ BLASSM/matvec.o: BLASSM/matvec.f
+ (cd BLASSM ; $(F77) $(OPT) matvec.f)
++BLASSM/rmatvec.o: BLASSM/rmatvec.f
++ (cd BLASSM ; $(F77) $(OPT) rmatvec.f)
++BLASSM/tester.o: BLASSM/tester.f
++ (cd BLASSM ; $(F77) $(OPT) tester.f)
+ FORMATS/formats.o: FORMATS/formats.f
+ (cd FORMATS ; $(F77) $(OPT) formats.f)
+ FORMATS/unary.o: FORMATS/unary.f
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b9c0118
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+
+PACKAGE=sparskit
+
+# DPatch
+DEB_SOURCE_PACKAGE:=$(PACKAGE)
+include /usr/share/dpatch/dpatch.make
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+get-orig-source:
+ . debian/get-orig-source
+
+configure: configure-stamp
+configure-stamp: patch-stamp
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+# $(MAKE)
+ ./dotests
+
+ touch $@
+
+clean: clean-patched unpatch
+
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+ - rm libskit.a
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp
+# $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+
+ dh_install -plibsparskit2 libskit.a usr/lib
+
+
+
+# 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_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# 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