--- libranlip-1.0.orig/debian/copyright +++ libranlip-1.0/debian/copyright @@ -0,0 +1,54 @@ +This Debian source package, libranlip, is maintained by +Juan Esteban Monsalve Tobon + +The original source was downloded from: + + http://www.deakin.edu.au/~gleb/ranlip.html + +Upstream author: Gleb Beliakov + +Upstream copyright notice: + + libranlip -- reliable interpolation of multivariate scattered data + Copyright (C) 2004 Gleb Beliakov + + 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; either version 2 of the License, or (at + your option) any later version. + + 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. + + + See http://www.deakin.edu.au/~gleb/lip.html for latest updates. + + + discrete.c + This file is a modification of discrete.c from gsl library. + Modified by G.Beliakov (gleb@deakin.edu.au) for ranlip package + + Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough + + 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; either version 2 of the License, or (at + your option) any later version. + + 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. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. --- libranlip-1.0.orig/debian/shlibs +++ libranlip-1.0/debian/shlibs @@ -0,0 +1 @@ +libranlip 1 libranlip1c2 (>= 1) --- libranlip-1.0.orig/debian/changelog +++ libranlip-1.0/debian/changelog @@ -0,0 +1,57 @@ +libranlip (1.0-4.1ubuntu1) trusty; urgency=low + + * Use debhelper and its autoreconf helper to correctly build shared + libraries on newer arches, resolving FTBFS. + + -- Daniel T Chen Mon, 24 Mar 2014 16:21:01 -0400 + +libranlip (1.0-4.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/rules: + - Fix bashisms (Closes: #378598). + - Fix debian-rules-ignores-make-clean-error lintian warnings. + * debian/control: + - Use ${binary:Version}, fix substvar-source-version-is-deprecated + lintian warning. + - Move to new Homepage field. + * debian/shlibs: + - Move to libranlip1c2, fix shlibs-declares-dependency-on-other-package + lintian warning. + + -- Luca Falavigna Wed, 16 Jan 2008 23:26:08 +0100 + +libranlip (1.0-4) unstable; urgency=low + + * ACK NMU. + * Set Standards-Version to 3.7.2. + * Fixed old-fsf-address-in-copyright-file. + + -- Juan Esteban Monsalve Tobon Tue, 20 Jun 2006 14:58:46 +1000 + +libranlip (1.0-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * C++ ABI transition + + -- Luk Claes Mon, 24 Oct 2005 19:10:30 +0200 + +libranlip (1.0-3) unstable; urgency=low + + * New maintainer. + + -- Juan Esteban Monsalve Tobon Sun, 10 Apr 2005 13:29:02 +1000 + +libranlip (1.0-2) unstable; urgency=low + + * Maintainer's new email address. + * Removed unnecessary build-depends. + + -- Anibal Monsalve Salazar Sat, 19 Feb 2005 11:37:38 +1100 + +libranlip (1.0-1) unstable; urgency=low + + * Initial release (Closes: #249546). + + -- Anibal Monsalve Salazar Wed, 19 May 2004 21:38:33 +1000 + --- libranlip-1.0.orig/debian/control +++ libranlip-1.0/debian/control @@ -0,0 +1,86 @@ +Source: libranlip +Section: math +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Juan Esteban Monsalve Tobon +Build-Depends: debhelper, dh-autoreconf +Homepage: http://www.deakin.edu.au/~gleb/ranlip.html +Standards-Version: 3.7.2 + +Package: libranlip1c2 +Section: libs +Priority: optional +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: libranlip1 +Description: generates random variates with multivariate Lipschitz density + RanLip generates random variates with an arbitrary multivariate + Lipschitz density. + . + While generation of random numbers from a variety of distributions is + implemented in many packages (like GSL library + http://www.gnu.org/software/gsl/ and UNURAN library + http://statistik.wu-wien.ac.at/unuran/), generation of random variate + with an arbitrary distribution, especially in the multivariate case, is + a very challenging task. RanLip is a method of generation of random + variates with arbitrary Lipschitz-continuous densities, which works in + the univariate and multivariate cases, if the dimension is not very + large (say 3-10 variables). + . + Lipschitz condition implies that the rate of change of the function (in + this case, probability density p(x)) is bounded: + . + |p(x)-p(y)|=p(x), using a number of values of p(x) at some + points. The more values we use, the better is the hat function. The + method of acceptance/rejection then works as follows: generatea random + variate X with density h(x); generate an independent uniform on (0,1) + random number Z; if p(X)<=Z h(X), then return X, otherwise repeat all + the above steps. + . + RanLip constructs a piecewise constant hat function of the required + density p(x) by subdividing the domain of p (an n-dimensional rectangle) + into many smaller rectangles, and computes the upper bound on p(x) + within each of these rectangles, and uses this upper bound as the value + of the hat function. + +Package: libranlip-dev +Section: libdevel +Priority: optional +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libtnt-dev, libranlip1c2 (= ${binary:Version}) +Description: generates random variates with multivariate Lipschitz density + RanLip generates random variates with an arbitrary multivariate + Lipschitz density. + . + While generation of random numbers from a variety of distributions is + implemented in many packages (like GSL library + http://www.gnu.org/software/gsl/ and UNURAN library + http://statistik.wu-wien.ac.at/unuran/), generation of random variate + with an arbitrary distribution, especially in the multivariate case, is + a very challenging task. RanLip is a method of generation of random + variates with arbitrary Lipschitz-continuous densities, which works in + the univariate and multivariate cases, if the dimension is not very + large (say 3-10 variables). + . + Lipschitz condition implies that the rate of change of the function (in + this case, probability density p(x)) is bounded: + . + |p(x)-p(y)|=p(x), using a number of values of p(x) at some + points. The more values we use, the better is the hat function. The + method of acceptance/rejection then works as follows: generatea random + variate X with density h(x); generate an independent uniform on (0,1) + random number Z; if p(X)<=Z h(X), then return X, otherwise repeat all + the above steps. + . + RanLip constructs a piecewise constant hat function of the required + density p(x) by subdividing the domain of p (an n-dimensional rectangle) + into many smaller rectangles, and computes the upper bound on p(x) + within each of these rectangles, and uses this upper bound as the value + of the hat function. + --- libranlip-1.0.orig/debian/rules +++ libranlip-1.0/debian/rules @@ -0,0 +1,87 @@ +#!/usr/bin/make -f +# Copyright (C) 2004-2005 Anibal Monsalve Salazar +# Copyright (c) 2005 Juan Esteban Monsalve Tobon + +STRIP = strip --remove-section=.comment --remove-section=.note + +build: + $(checkdir) + dh_autoreconf + ./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 shared static + dh_autoreconf_clean + dh_clean + +binary-indep: checkroot build + $(checkdir) + -rm -rf debian/tmp + +binary-arch: checkroot build + $(checkdir) + -rm -rf debian/tmp + -rm -rf debian/libranlip1c2 debian/libranlip-dev + install -d debian/tmp/DEBIAN debian/libranlip1c2/usr/share/doc/libranlip1c2/examples + cd debian && install -d libranlip1c2 libranlip-dev + cd debian/libranlip1c2 && install -d DEBIAN usr/share/doc usr/lib/ranlip + cd debian/libranlip-dev && install -d DEBIAN usr/share/doc usr/lib/ranlip usr/include/ranlip + + cd debian && install -m 644 shlibs libranlip1c2/DEBIAN + + cd shared/lib && $(STRIP) --strip-unneeded libranlip.so.1.0.0 + cd static/lib && strip --strip-debug libranlip.a + + mv shared/lib/libranlip.so.* debian/libranlip1c2/usr/lib/ranlip + mv shared/lib/libranlip.so debian/libranlip-dev/usr/lib/ranlip + sed "s/^libdir=.*/libdir=\'\/usr\/lib\/ranlip\'/" shared/lib/libranlip.la > debian/libranlip-dev/usr/lib/ranlip/libranlip.la + mv static/lib/libranlip.a debian/libranlip-dev/usr/lib/ranlip + sed "s/^#include \"ranlipdist.h\"/#include /" static/include/ranlip.h > debian/libranlip-dev/usr/include/ranlip/ranlip.h + mv static/include/ranlipdist.h static/include/ranlipproc.h debian/libranlip-dev/usr/include/ranlip + chmod +r debian/libranlip-dev/usr/include/ranlip/* + + cp -p debian/copyright debian/libranlip1c2/usr/share/doc/libranlip1c2 + cp -p debian/changelog debian/libranlip1c2/usr/share/doc/libranlip1c2/changelog.Debian + cp -p docs/ranlip.ps debian/libranlip1c2/usr/share/doc/libranlip1c2/ + cp -p examples/ranliptest* examples/makefile debian/libranlip1c2/usr/share/doc/libranlip1c2/examples + cd debian/libranlip1c2/usr/share/doc/libranlip1c2 && gzip -9 changelog.Debian ranlip.ps examples/* + + ln -s libranlip1c2 debian/libranlip-dev/usr/share/doc/libranlip-dev + + dpkg-shlibdeps debian/libranlip1c2/usr/lib/ranlip/* + dpkg-gencontrol -isp -plibranlip1c2 -Pdebian/libranlip1c2 + cd debian/libranlip1c2 && md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root.root debian/libranlip1c2 + chmod -x debian/libranlip1c2/usr/lib/ranlip/* + chmod -R go=rX debian/libranlip1c2 + dpkg --build debian/libranlip1c2 .. + + dpkg-gencontrol -isp -plibranlip-dev -Pdebian/libranlip-dev + cd debian/libranlip-dev && md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root.root debian/libranlip-dev + chmod -x debian/libranlip-dev/usr/lib/ranlip/libranlip.a debian/libranlip-dev/usr/lib/ranlip/libranlip.la + chmod -R go=rX debian/libranlip-dev + dpkg --build debian/libranlip-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 --- libranlip-1.0.orig/examples/ranliptestproc.cpp +++ libranlip-1.0/examples/ranliptestproc.cpp @@ -44,7 +44,7 @@ using namespace std; -#include "ranlipproc.h" +#include // to measure preprocessing and generation time clock_t clockS,clockF; --- libranlip-1.0.orig/examples/ranliptest.cpp +++ libranlip-1.0/examples/ranliptest.cpp @@ -42,7 +42,7 @@ #include -#include "ranlip.h" +#include class MyRnumGen:public CRanLip {