--- liblip-2.0.0.orig/debian/changelog +++ liblip-2.0.0/debian/changelog @@ -0,0 +1,56 @@ +liblip (2.0.0-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Add autotools-dev for updated config.{sub,guess} (Closes: #534817) + + -- Chen Baozi Thu, 05 Jun 2014 16:22:13 +0800 + +liblip (2.0.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/rules: + - Fix bashisms (Closes: #378597). + - Fix debian-rules-ignores-make-clean-error lintian warnings. + * debian/control: + - Move to new Homepage field. + - Use ${binary:Version} instead of deprecated ${Source-Version}, + fix substvar-source-version-is-deprecated lintian warning. + * debian/shlibs: + - Move to liblip2, fix shlibs-declares-dependency-on-other-package + lintian warning. + + -- Luca Falavigna Tue, 15 Jan 2008 20:48:51 +0100 + +liblip (2.0.0-1) unstable; urgency=low + + * New upstream release. + + -- Juan Esteban Monsalve Tobon Sun, 16 Jul 2006 16:13:29 +1000 + +liblip (1.2-3) unstable; urgency=low + + * New maintainer. + + -- Juan Esteban Monsalve Tobon Sun, 10 Apr 2005 12:58:01 +1000 + +liblip (1.2-2) unstable; urgency=low + + * Fixed "FTBFS with gcc-3.4: 'data' undeclared" (Closes: #280289). + Patch by Andreas Jochens . + * New maintainer's email address. + + -- Anibal Monsalve Salazar Fri, 18 Feb 2005 16:51:20 +1100 + +liblip (1.2-1) unstable; urgency=low + + * New upstream release. + + -- Anibal Monsalve Salazar Thu, 26 Aug 2004 17:53:28 +1000 + +liblip (1.0-1) unstable; urgency=low + + * Initial release (Closes: #249394). + + -- Anibal Monsalve Salazar Thu, 20 May 2004 05:46:32 +1000 + + --- liblip-2.0.0.orig/debian/control +++ liblip-2.0.0/debian/control @@ -0,0 +1,105 @@ +Source: liblip +Section: math +Priority: optional +Maintainer: Juan Esteban Monsalve Tobon +Build-Depends: libtnt-dev (>= 1.2.5-3), autotools-dev +Homepage: http://www.deakin.edu.au/~gleb/lip.html +Standards-Version: 3.7.2 + +Package: liblip2 +Section: libs +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: +Description: reliable interpolation of multivariate scattered data + Lip interpolates scattered multivariate data with a Lipschitz function. + . + Methods of interpolation of multivariate scattered data are scarce. + The programming library Lip implements a + new method by G. Beliakov, which relies on building reliable lower and + upper approximations of Lipschitz functions. If we assume that the + function that we want to interpolate is Lipschitz-continuous, we can + provide tight bounds on its values at any point, in the worse case + scenario. Thus we obtain the interpolant, which approximates the unknown + Lipschitz function f best in the worst case scenario. This translates + into reliable learning of f, something that other methods cannot do (the + error of approximation of most other methods can be infinitely large, + depending on what f generated the data). + . + Lipschitz condition implies that the rate of change of the function is + bounded: + . + |f(x)-f(y)| + +The original source was downloded from: + + http://www.deakin.edu.au/~gleb/lip.html + +Upstream author: Gleb Beliakov + +Upstream copyright notice: + + liblip -- reliable interpolation of multivariate scattered data + Copyright (C) 2004 Gleb Beliakov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + + See http://www.deakin.edu.au/~gleb/lip.html for latest updates. + +On Debian systems, the complete text of the GNU Lesser General Public +License, version 2.1, can be found in /usr/share/common-licenses/LGPL-2.1. --- liblip-2.0.0.orig/debian/rules +++ liblip-2.0.0/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f +# Copyright (C) 2004-2005 Anibal Monsalve Salazar +# Copyright (c) 2005 Juan Esteban Monsalve Tobon + +STRIP = strip --strip-unneeded --remove-section=.comment --remove-section=.note + +build: + $(checkdir) + cp -f /usr/share/misc/config.sub . + cp -f /usr/share/misc/config.guess . + ./configure --prefix=/usr --enable-shared + $(MAKE) install prefix=$(CURDIR)/shared + [ ! -f Makefile ] || $(MAKE) distclean + -rm -f config.log config.cache + ./configure --prefix=/usr --enable-static + $(MAKE) install prefix=$(CURDIR)/static + touch build + +clean: + $(checkdir) + -rm -f build + [ ! -f Makefile ] || $(MAKE) distclean + -rm -f config.log config.cache + -rm -f `find . -name "*~"` + -rm -rf tnt shared static + -rm -rf debian/tmp debian/files* core debian/substvars debian/debhelper.log + -rm -rf debian/liblip2 debian/liblip-dev + +binary-indep: checkroot build + $(checkdir) + -rm -rf debian/tmp + +binary-arch: checkroot build + $(checkdir) + -rm -rf debian/tmp + -rm -rf debian/liblip2 debian/liblip-dev + install -d debian/tmp/DEBIAN debian/liblip2/usr/share/doc/liblip2/examples + cd debian && install -d liblip2 liblip-dev + cd debian/liblip2 && install -d DEBIAN usr/share/doc usr/lib/lip + cd debian/liblip-dev && install -d DEBIAN usr/share/doc usr/lib/lip usr/include/lip + + cd debian && install -m 644 shlibs liblip2/DEBIAN + + cd shared/lib && $(STRIP) --strip-unneeded liblip.so.2.0.0 + cd static/lib && strip --strip-debug liblip.a + + mv shared/lib/liblip.so.* debian/liblip2/usr/lib/lip + mv shared/lib/liblip.so debian/liblip-dev/usr/lib/lip + sed "s/^libdir=.*/libdir=\'\/usr\/lib\/lip\'/" shared/lib/liblip.la > debian/liblip-dev/usr/lib/lip/liblip.la + mv static/lib/liblip.a debian/liblip-dev/usr/lib/lip + sed "s/^#include \"forest.h\"/#include /" static/include/interpol.h > debian/liblip-dev/usr/include/lip/interpol.h + sed "s/^#include \"memblock.h\"/#include /" static/include/forest.h > debian/liblip-dev/usr/include/lip/forest.h + mv static/include/liblip.h debian/liblip-dev/usr/include/lip + mv static/include/memblock.h debian/liblip-dev/usr/include/lip + chmod +r debian/liblip-dev/usr/include/lip/* + + cp -p debian/copyright debian/liblip2/usr/share/doc/liblip2 + cp -p debian/changelog debian/liblip2/usr/share/doc/liblip2/changelog.Debian + cp -p docs/* debian/liblip2/usr/share/doc/liblip2/ + cp -p examples/example* debian/liblip2/usr/share/doc/liblip2/examples + cp -p examples/makefile debian/liblip2/usr/share/doc/liblip2/examples + cd debian/liblip2/usr/share/doc/liblip2 && gzip -9 changelog.Debian examples/* + + ln -s liblip2 debian/liblip-dev/usr/share/doc/liblip-dev + + dpkg-shlibdeps debian/liblip2/usr/lib/lip/* + dpkg-gencontrol -isp -pliblip2 -Pdebian/liblip2 + cd debian/liblip2 && md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root.root debian/liblip2 + chmod -x debian/liblip2/usr/lib/lip/* + chmod -R go=rX debian/liblip2 + dpkg --build debian/liblip2 .. + + dpkg-gencontrol -isp -pliblip-dev -Pdebian/liblip-dev + cd debian/liblip-dev && md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root.root debian/liblip-dev + chmod -x debian/liblip-dev/usr/lib/lip/liblip.a + chmod -x debian/liblip-dev/usr/lib/lip/liblip.la + chmod -R go=rX debian/liblip-dev + dpkg --build debian/liblip-dev .. + +define checkdir + test -f debian/rules +endef + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot --- liblip-2.0.0.orig/debian/shlibs +++ liblip-2.0.0/debian/shlibs @@ -0,0 +1 @@ +liblip 2 liblip2 (>= 2.0) --- liblip-2.0.0.orig/examples/makefile +++ liblip-2.0.0/examples/makefile @@ -0,0 +1,105 @@ +############################################################################# +# # +# CLASS LIBRARY LIP FOR MULTIVARIATE SCATTERED DATA INTERPOLATION # +# # +# This makefile gives targets that show how to compile and link # +# user code to the Lip shared library and statatic library. # +# # +############################################################################# +# +# This make file show how to compile and link examples included with this +# distribution of LIP assuming different installations of the library. this +# include the following examples for both static and shared linking. +# +# liblipex: shows how to compile and link library when install +# in the library search path used to load libraries +# +# exampleprocedural: shows how to compile and link by implicitly telling +# the linker where to look for the library +# shows how to compile and link procedural C conde. +# +############################################################################ + +# location where the library is installed +MYPATH= /home/user1/liblip.2.0 + +# compiler +CC = g++ +GCC = gcc + +# Some options probably not needed: -g (which enables the debugger options). +FLAGS = -g -O -Wno-deprecated + +# Object file fo the example +OBJ1 = liblipex.o +OBJ2 = exampleprocedural.o + +# LIB_PATH used to store the path in which the library files were installed. +# The commented out assignment is for when the library is installed into the +# users home directory. NOTE: $(HOME) referes to env varialble HOME. + +#directory where the liblip.a is installed +LIB_PATH = $(MYPATH)/lib/ +#LIB_PATH = /usr/local/lib/ + +# INCLUDE_PATH used to store the path in which the *.h files have been +# placed. The commented out assignment is for when the *.h files are placed +# in the users home directory. + +#directory +INCLUDE_PATH = $(MYPATH)/include +#INCLUDE_PATH = /usr/local/include/ + +#include directories holdign the header files needed for liblip +#INCLUDE= -I$(INCLUDE_PATH)/tnt -I$(INCLUDE_PATH)/glpk -I$(INCLUDE_PATH) +INCLUDE= -I$(INCLUDE_PATH)/tnt -I$(INCLUDE_PATH) + +#location of glpklib.a this is a static library and should be compiled from source. +GLPK_STATIC_PATH=$(HOME)/glpklib/lib/ + +all: static_example2 static_example shared_example + +################################################################################# +# linking examplelint. If you have succesfully installed lip library and have +# LIB_PATH to /etc/ld.so.conf Or you have added LIB_PATH TO LD_LIBRARY_PATH +# then compiling is as eassy as this. + +# shared_example target links liblipex.o to the liblip shared library. To make +# up shared_example executable. + +shared_example: $(OBJ1) + $(CC) -o shared_example $(OBJ1) $(FLAGS) -L$(LIB_PATH) -llip -L$(GLPK_STATIC_PATH) -lglpk -lm + +# static_example target links liblipex.o to the liblip static library. To make +# up static_example executable. + +static_example: $(OBJ1) + $(CC) -o static_example -non_shared $(OBJ1) $(FLAGS) -L$(LIB_PATH) -llip -L$(GLPK_STATIC_PATH) -lglpk -lm + + +################################################################################# +# linking examplelintprocedural + +# static_example target links exampleprocedural.o to the lip static library. To make +# up static_example executable. + +static_example2:$(OBJ2) + $(CC) -o static_example2 -static $(OBJ2) $(FLAGS) $(LIB_PATH)liblip.a $(GLPK_STATIC_PATH)libglpk.a -lm + + +################################################################################# +# compiling examples to objectfiles. + +liblipex.o: liblipex.cpp + $(CC) -c liblipex.cpp $(FLAGS) $(INCLUDE) + +# compiling proccedual example using C compiler +# +exampleprocedural.o: exampleprocedural.c + $(GCC) -c exampleprocedural.c $(FLAGS) $(INCLUDE) + +.PHONY: clean all + +clean: + rm -f $(OBJ1) shared_example static_example + rm -f $(OBJ2) static_example2 --- liblip-2.0.0.orig/src/forest.h +++ liblip-2.0.0/src/forest.h @@ -86,7 +86,7 @@ using namespace std; // change this line if TNT is installed on your system to -#include "../include/tnt/tnt.h" +#include #include "memblock.h" //using namespace TNT;