debian/0000755000000000000000000000000011366136550007174 5ustar debian/watch0000644000000000000000000000016611354617167010235 0ustar # Upstream homepage is liable to change version=3 http://homepage.hispeed.ch/david.frey/ \ spline_(.*)\.tar\.gz debian/compat0000644000000000000000000000000211254014675010371 0ustar 7 debian/source/0000755000000000000000000000000011366135560010474 5ustar debian/source/format0000644000000000000000000000001411354762156011706 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000216611361443234011127 0ustar This is Debian GNU/Linux's prepackaged version of aspline. It was downloaded from: http://homepage.hispeed.ch/david.frey/ aspline is Copyright (C) 1996-2010 David Frey This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Debian packaging is Copyright (c) 1996-2009 David Frey 2009-2010 Stuart Prescott On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/rules0000755000000000000000000000042311366135504010251 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_test: # don't run the tests if suppressed with DEB_BUILD_OPTIONS=nocheck ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) export ASPLINE=$(CURDIR)/aspline ; cd debian/tests ; ./runtests endif .PHONY: override_dh_auto_test debian/patches/0000755000000000000000000000000011366135560010623 5ustar debian/patches/makefile-arch.patch0000644000000000000000000000137111365665666014354 0ustar Description: remove unneeded amd64-specific compiler directives The compiler directive "-mfpmath=sse" is amd64-specific. On i386 is just generates a harmless gcc warning but it causes a FTBFS on ppc (and presumably other architectures). The test suite checks for #578004 anyway (which this directive was added to work around) and the "-mfpmath=sse" is the default on amd64. Author: Stuart Prescott --- a/Makefile +++ b/Makefile @@ -14,7 +14,8 @@ -Wcast-qual -Wcast-align -Wshadow -Wwrite-strings -Wpointer-arith\ -Wformat\ -Wfloat-equal\ - -mfpmath=sse + +# -mfpmath=sse # -mfpmath=387 #DEFS = -D_GNU_SOURCE -DHAVE_GETLINE -DOLD_OUTPUT -DVERSION=\"1.2\" DEFS = -D_GNU_SOURCE -DHAVE_GETLINE -DVERSION=\"1.2\" debian/patches/series0000644000000000000000000000005211365664766012053 0ustar makefile-prefix.patch makefile-arch.patch debian/patches/makefile-prefix.patch0000644000000000000000000000045011354763250014713 0ustar Description: make Makefile obey $(DESTDIR) Author: Stuart Prescott --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ SRCS = utils.c OBJS = ${SRCS:.c=.o} -prefix = /usr +prefix = $(DESTDIR)/usr BINDIR = $(prefix)/bin MANDIR = $(prefix)/share/man/man1 debian/changelog0000644000000000000000000001273111365666240011055 0ustar spline (1.2-1) unstable; urgency=low * New upstream release, fixing bugs in existing package: - crash with long comment lines. - duplication of output lines due to unwanted compiler optimisation (Closes: #578004). (thanks to David Frey for his assistance in tracking down these bugs) * New maintainer, thanks to David Frey for his previous work (Closes: #527149). * Change from native to non-native package. * Patch Makefile to not have arch-specific directives. * Add a rudimentary test suite so that a reoccurence of #578004 on any arch will cause a FTBFS. * Add Homepage field. * Update package description to include citation to algorithm. * Update debian/copyright. * Change packaging to debhelper + 3.0 (quilt). * Drop unneeded prerm script. * Bump Standards Version to 3.8.4. (No changes needed). -- Stuart Prescott Tue, 27 Apr 2010 23:52:22 +0100 spline (1.1-14) unstable; urgency=low * QA upload. * Make clean not ignore errors. * Remove .svn dirs. * Rename local getline func to local_getline. (Closes: #552884). * Bump Standards Version to 3.8.3. (No changes needed). -- Barry deFreese Thu, 29 Oct 2009 21:33:09 -0400 spline (1.1-13) unstable; urgency=low * Upload with correct e-Mail address. -- David Frey Sun, 03 May 2009 23:23:37 +0200 spline (1.1-12) unstable; urgency=low * update to standard version 3.8.1.0 * fixed signed/unsigned char *-warning * orphaned package -- David Frey Sun, 26 Apr 2009 23:26:25 +0200 spline (1.1-11) unstable; urgency=low * handle DEB_BUILD_OPTIONS (closes: #438048) * fix format strings * update standard version -- David Frey Sun, 19 Aug 2007 23:44:37 +0200 spline (1.1-10) unstable; urgency=low * update Standard version. * update FSF address. -- David Frey Tue, 27 Sep 2005 00:35:56 +0200 spline (1.1-9) unstable; urgency=low * do not set link to /usr/doc in postinst (fixes lintian bug) * make -h a legal option, * fix compiler warnings in gcc-3.2 (multi-line strings) -- David Frey Sat, 15 Feb 2003 22:05:54 +0100 spline (1.1-8) unstable; urgency=low * removed lintian warnings, recompile for unstable. * changed precision from float to double, linted the code. -- David Frey Sat, 24 Aug 2002 23:57:02 +0200 spline (1.1-7) unstable; urgency=low * #include to fix build failure (closes: #105152) -- David Frey Sat, 14 Jul 2001 23:36:19 +0200 spline (1.1-6) unstable; urgency=low * changed priority to optional -- David Frey Sat, 10 Feb 2001 01:14:51 +0100 spline (1.1-5) unstable; urgency=low * recompile for woody. -- David Frey Sun, 7 Jan 2001 23:14:13 +0100 spline (1.1-4) unstable; urgency=low * moved sign-on-message into --version code. * fixed lintian error about /usr/doc/ symlink. -- David Frey Sat, 13 Nov 1999 20:38:11 +0100 spline (1.1-3) unstable; urgency=low * updates for FHS compliance: - GPL is now in /usr/share/common-licenses, - package installs documentation into /usr/share/doc/spline, - moved manpage into /usr/share/man/man1, - changed priority to extra -- David Frey Sun, 12 Sep 1999 21:17:56 +0200 spline (1.1-2) unstable; urgency=low * made aspline more spline-like: uses throughout `%g' in the printf-Formats instead of `% f', n is now the number of intervalls, i.e. min. n+1 points will be emitted. * man-page updated * simplified code * changed Maintainer address to official (and working) Debian-address. * fixed bugs found by lintian: old-FSF address and md5sums-paths starting with ".". -- David Frey Tue, 10 Feb 1998 23:08:40 +0100 spline (1.1-1) unstable; urgency=low * aspline recognizes now datasets (rows of data separated by empty lines) and doesn't try to treat them as one dataset as previous versions did. * fixed embarassing bug in the linear interpolation algorithm: aspline is now able to interpolate points on a straight line correctly. * made error message compliant with the GNU guidelines (progname:inputfile:line: ...) -- David Frey Mon, 19 Jan 1998 21:54:22 +0100 spline (1.0-7) unstable; urgency=low * deleted Replaces: and Conflicts: field out of control file (closes Bug#16419). -- David Frey Thu, 1 Jan 1998 22:08:18 +0100 spline (1.0-6) unstable; urgency=low * changed maintainer address back to * updated to Standard 2.3.0.1 * renamed md5sum to md5sums -- David Frey Sun, 21 Dec 1997 22:35:04 +0100 spline (1.0-5) unstable; urgency=low * renamed spline to aspline due to file name conflict with plotutils. -- David Frey Mon, 20 Oct 1997 18:09:37 +0200 spline (1.0-4) unstable; urgency=low * recompiled for libc6 * changed maintainer address to dFrey@debian.org * added md5sums in debian/rules -- David Frey Fri, 12 Sep 1997 22:27:26 +0200 spline (1.0-3) unstable; urgency=low * Converted to new source format -- David Frey Thu, 26 Sep 1996 00:22:53 +0159 Wed May 1 16:34:42 1996 David Frey * added Architecture field. Sat Mar 16 15:52:21 1996 David Frey * Initial release for Debian, already ELF. debian/control0000644000000000000000000000141711361716041010574 0ustar Source: spline Section: math Priority: optional Maintainer: Stuart Prescott Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.8.4 Homepage: http://homepage.hispeed.ch/david.frey/ Package: spline Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Akima spline interpolation aspline(1) interpolates an Akima-spline through a series of given points. The Akima-spline interpolation approximates a manually drawn curve better than the ordinary splines, but the second derivative is not continuous. . The Akima-spline algorithm is described in "A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures", H. Akima, J. Assoc. Comput. Mach., 17(4), 1970, pp. 589-602. doi:10.1145/321607.321609 debian/docs0000644000000000000000000000001711354763701010046 0ustar CREDITS README debian/tests/0000755000000000000000000000000011366135560010336 5ustar debian/tests/runtests0000755000000000000000000000030511362162611012142 0ustar #!/bin/sh RUN=0 FAIL=0 for i in test-* do RUN=$(($RUN+1)) if ! sh "$i" then FAIL=$(($FAIL+1)) fi done echo "Ran $RUN tests; $FAIL tests failed." if [ $FAIL -gt 0 ] then exit 1 fi debian/tests/test-outputs0000755000000000000000000000071411366133041012756 0ustar #!/bin/sh # Test whether points are duplicated in output as per bug #578004 TESTDATA=${1:-outputs.dat} ASPLINE=${ASPLINE:-aspline} for N in 0 11 20 21 30 31 35 40 41 60 61 100 101 110 111 do arg= if [ $N -gt 0 ] then arg="-n $N" fi N1=$($ASPLINE $arg $TESTDATA | wc -l) N2=$($ASPLINE $arg $TESTDATA | uniq | wc -l) if [ $N1 -ne $N2 ] then echo "Got different numbers of points when filtering: $N $N1 $N2" exit 1 fi done debian/tests/outputs.dat0000644000000000000000000000014711361442245012551 0ustar 0 0.2 0.39 0.56 0.72 0.84 0.93 0.99 1 0.97 0.91 0.81 0.68 0.52 0.33 0.14 -0.06 -0.26 -0.44 -0.61 -0.76