summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@debian.org>2021-12-27 13:01:22 -0800
committerAdrian Bunk <bunk@debian.org>2021-12-27 13:01:22 -0800
commite073a3d3c951ac198bfe51997ca975e7027a6fc1 (patch)
treeae2f5639569dcdf7ecf960f954b6d014e4d9064f
parent316235b2bef9c7fd0bc57f8d36c0a09e4e424577 (diff)
libranlip (1.0-4.3) unstable; urgency=medium
* Non-maintainer upload. * debian/rules: Add build-{arch,indep}. (Closes: #999070) [dgit import package libranlip 1.0-4.3]
-rw-r--r--debian/changelog65
-rw-r--r--debian/compat1
-rw-r--r--debian/control85
-rw-r--r--debian/copyright54
-rwxr-xr-xdebian/rules91
-rw-r--r--debian/shlibs1
-rw-r--r--examples/ranliptest.cpp2
-rw-r--r--examples/ranliptestproc.cpp2
8 files changed, 299 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0e6a043
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,65 @@
+libranlip (1.0-4.3) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * debian/rules: Add build-{arch,indep}. (Closes: #999070)
+
+ -- Adrian Bunk <bunk@debian.org> Mon, 27 Dec 2021 23:01:22 +0200
+
+libranlip (1.0-4.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Use dh-autoreconf to ensure builds use current autofoo and build
+ on new architectures (Closes: #759434 #535999 #758031)
+
+ -- Wookey <wookey@debian.org> Thu, 21 Jan 2016 23:10:42 +0000
+
+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 <dktrkranz@ubuntu.com> 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 <esteban@v7w.com> Tue, 20 Jun 2006 14:58:46 +1000
+
+libranlip (1.0-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * C++ ABI transition
+
+ -- Luk Claes <luk@debian.org> Mon, 24 Oct 2005 19:10:30 +0200
+
+libranlip (1.0-3) unstable; urgency=low
+
+ * New maintainer.
+
+ -- Juan Esteban Monsalve Tobon <esteban@v7w.com> 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 <anibal@debian.org> Sat, 19 Feb 2005 11:37:38 +1100
+
+libranlip (1.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #249546).
+
+ -- Anibal Monsalve Salazar <A.Monsalve.Salazar@IEEE.org> Wed, 19 May 2004 21:38:33 +1000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cfa7506
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,85 @@
+Source: libranlip
+Section: math
+Priority: optional
+Maintainer: Juan Esteban Monsalve Tobon <esteban@v7w.com>
+Build-Depends: 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)|<M||x-y||.
+ .
+ From this condition, we can build an overestimate of the density, so
+ called hat function h(x)>=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)|<M||x-y||.
+ .
+ From this condition, we can build an overestimate of the density, so
+ called hat function h(x)>=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.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f954624
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,54 @@
+This Debian source package, libranlip, is maintained by
+Juan Esteban Monsalve Tobon <esteban@v7w.com>
+
+The original source was downloded from:
+
+ http://www.deakin.edu.au/~gleb/ranlip.html
+
+Upstream author: Gleb Beliakov <gleb@deakin.edu.au>
+
+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.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..990a660
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# Copyright (C) 2004-2005 Anibal Monsalve Salazar <anibal@debian.org>
+# Copyright (c) 2005 Juan Esteban Monsalve Tobon <esteban@v7w.com>
+
+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
+ -rm -rf debian/tmp debian/files* core debian/substvars
+ -rm -rf debian/libranlip1c2 debian/libranlip-dev
+ dh_autoreconf_clean
+ -rm -rf debian/*debhelper.log
+
+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 <ranlip\/ranlipdist.h>/" 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`"
+
+build-arch: build
+build-indep: build
+.PHONY: build build-arch build-indep binary binary-arch binary-indep clean checkroot
diff --git a/debian/shlibs b/debian/shlibs
new file mode 100644
index 0000000..19be9c3
--- /dev/null
+++ b/debian/shlibs
@@ -0,0 +1 @@
+libranlip 1 libranlip1c2 (>= 1)
diff --git a/examples/ranliptest.cpp b/examples/ranliptest.cpp
index ca8566d..8ba9a1f 100644
--- a/examples/ranliptest.cpp
+++ b/examples/ranliptest.cpp
@@ -42,7 +42,7 @@ using namespace std;
#include <math.h>
-#include "ranlip.h"
+#include <ranlip/ranlip.h>
class MyRnumGen:public CRanLip {
diff --git a/examples/ranliptestproc.cpp b/examples/ranliptestproc.cpp
index 55ab09a..9994e7e 100644
--- a/examples/ranliptestproc.cpp
+++ b/examples/ranliptestproc.cpp
@@ -44,7 +44,7 @@
using namespace std;
-#include "ranlipproc.h"
+#include <ranlip/ranlipproc.h>
// to measure preprocessing and generation time
clock_t clockS,clockF;