debian/0000755000000000000000000000000012150133663007166 5ustar debian/control0000644000000000000000000000404412150133663010573 0ustar Source: neartree Section: libdevel Priority: extra Maintainer: Debian Science Maintainers Uploaders: Teemu Ikonen Vcs-Browser: http://git.debian.org/?p=debian-science/packages/neartree.git Vcs-Git: http://git.debian.org/git/debian-science/packages/neartree.git Homepage: http://neartree.sourceforge.net/ Build-Depends: debhelper (>= 9), libtool, libcvector2-dev Standards-Version: 3.9.4 Package: libcneartree-dev Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: libcneartree5 (= ${binary:Version}), ${misc:Depends} Conflicts: libcneartree3-dev Description: Library and headers for solving the Nearest Neighbor Problem Neartree is an API and a library for finding nearest neighbors among points in spaces of arbitrary dimensions. This package provides a C++ template, TNear.h, and C library and header files for compiling programs using Neartree. . The library uses the Nearest Neighbor algorithm after Kalantari and McDonald, (IEEE Transactions on Software Engineering, v. SE-9, pp. 631-634,1983) modified to use recursion instead of a double-linked tree and simplified so that it does less checking for things like is the distance to the right less than the distance to the left; it was found that these checks make little to no difference. Package: libcneartree5 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Library for solving the Nearest Neighbor Problem Neartree is an API and a library for finding nearest neighbors among points in spaces of arbitrary dimensions. . The library uses the Nearest Neighbor algorithm after Kalantari and McDonald, (IEEE Transactions on Software Engineering, v. SE-9, pp. 631-634,1983) modified to use recursion instead of a double-linked tree and simplified so that it does less checking for things like is the distance to the right less than the distance to the left; it was found that these checks make little to no difference. debian/libcneartree5.dirs0000644000000000000000000000001012150133663012564 0ustar usr/lib debian/metapatches/0000755000000000000000000000000012150133663011464 5ustar debian/metapatches/01_makefile0000644000000000000000000000015512150133663013465 0ustar From: Teemu Ikonen Subject: Various fixes to upstream Makefile X-git-branch: p/makefile debian/rules0000755000000000000000000000035712150133663010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export INSTALL_LIB := lib/$(DEB_HOST_MULTIARCH) %: dh $@ debian/watch0000644000000000000000000000007012150133663010214 0ustar version=3 http://sf.net/neartree/NearTree-(.*)\.tar\.gz debian/copyright0000644000000000000000000000236012150133663011122 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Name: NearTree Upstream-Contact: Herbert J. Bernstein Source: http://sourceforge.net/projects/neartree/ Copyright: 2001, 2008, 2009, 2010, 2011 Larry Andrews License: LGPL-2.1+ On Debian systems the full text of the GNU Lesser General Public License, version 2.1 can be found in the `/usr/share/common-licenses/LGPL-2.1' file. Files: rhrand.h Copyright: 2009 Rob Harrison, Larry Andrews, Herbert J. Bernstein License: LGPL-2.1+ Files: triple.h Copyright: 2010 Herbert J. Bernstein License: LGPL-2.1+ triple.h was derived from pair.h which was subject to the following notice: . Copyright (c) 1994 Hewlett-Packard Company . Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. Files: debian/* Copyright: 2009-2011 Teemu Ikonen License: LGPL-2.1+ debian/source/0000755000000000000000000000000012150133663010466 5ustar debian/source/format0000644000000000000000000000001412150133663011674 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000311012150133663011033 0ustar neartree (3.1.1-2) unstable; urgency=low * Upgrade to debhelper compat level 9 to pick up hardening flags. * Use multiarch library paths. * Add libcneartree5.symbols file. * control: - Upgrade to standards-version 3.9.4. - Add libcneartree5 dependency to libcneartree-dev. * patches/01_makefile: - Pick up (hardening) build flags from the environment. - Use a variable for library installation path to support multiarch paths. -- Teemu Ikonen Sat, 25 May 2013 15:07:24 +0200 neartree (3.1.1-1) unstable; urgency=low * New upstream version. * control: Upgrade to standards-version 3.9.2. * copyright: Fix DEP5 format URL to please lintian. Update years. -- Teemu Ikonen Wed, 28 Sep 2011 12:55:19 +0200 neartree (3.0.1-1) unstable; urgency=low * New upstream version. * Update binary package names to the new soname (5). * control: - Drop the soname version from the development package name - Conflict with the old development package libcneartree3-dev - Update to standards-version 3.9.1 - Update descriptions * Use Debian source package format '3.0 (quilt)'. * Add a DEP-3 patch header for Makefile fixes. * Do not install *.la files (closes: #622473). * copyright: - Update format to the latest DEP-5 - Add copyright info from the new upstream version -- Teemu Ikonen Fri, 15 Apr 2011 20:29:49 +0200 neartree (2.1.3-1) unstable; urgency=low * Initial release (Closes: #550849) -- Teemu Ikonen Tue, 24 Nov 2009 15:02:49 +0100 debian/patches/0000755000000000000000000000000012150133663010615 5ustar debian/patches/01_makefile.patch0000644000000000000000000001165212150133663013720 0ustar From: Teemu Ikonen Subject: Various fixes to upstream Makefile X-git-branch: p/makefile Makefile | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 5c92d8b..a4793c9 100644 --- a/Makefile +++ b/Makefile @@ -52,10 +52,10 @@ RELEASE = 3.1 # CC = gcc ifneq ($(MSYSTEM),MINGW32) -CFLAGS = -g -O2 -Wall -ansi -pedantic -DCNEARTREE_SAFE_TRIANG=1 +CFLAGS += -g -O2 -Wall -ansi -pedantic -DCNEARTREE_SAFE_TRIANG=1 TIME = time else -CFLAGS = -g -O2 -Wall -DCNEARTREE_SAFE_TRIANG=1 +CFLAGS += -g -O2 -Wall -DCNEARTREE_SAFE_TRIANG=1 TIME = endif @@ -90,9 +90,10 @@ INC = $(ROOT) EXAMPLES = $(ROOT) TESTDATA = $(ROOT) ifndef INSTALL_PREFIX -INSTALL_PREFIX = /usr/local +INSTALL_PREFIX = $(DESTDIR)/usr #INSTALL_PREFIX = $(HOME) endif +INSTALL_LIB ?= lib # # Include directories @@ -114,13 +115,13 @@ CPPLIBRARIES = -lm # CLIBRARIES = $(CVECTOR_LIBLOC) -lCVector -lm -COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c -CPPCOMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CXX) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c -LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -no-undefined -rpath $(INSTALL_PREFIX)/lib -BUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(INCLUDES) -CPPBUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CXX) -no-undefined $(CFLAGS) $(INCLUDES) -BUILD_COMMAND_DYNAMIC = $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) -shared -I$(INSTALL_PREFIX)/include -BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -static-libtool-libs -I$(INSTALL_PREFIX)/include +COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c +CPPCOMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(WARNINGS) -c +LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -no-undefined -rpath /usr/$(INSTALL_LIB) $(LDFLAGS) +BUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(LDFLAGS) +CPPBUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) -no-undefined $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) +BUILD_COMMAND_DYNAMIC = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) -no-undefined $(CFLAGS) -shared -I$(INSTALL_PREFIX)/include $(LDFLAGS) +BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) -static-libtool-libs -I$(INSTALL_PREFIX)/include $(LDFLAGS) INSTALL_COMMAND = $(LIBTOOL) --mode=install cp INSTALL_FINISH_COMMAND = $(LIBTOOL) --mode=finish @@ -225,11 +226,11 @@ all: $(LIB) $(BIN) $(SOURCE) $(HEADERS) \ $(LIB)/libCNearTree.$(LIB_EXT) \ $(BIN)/CPPMain $(BIN)/CMain $(BIN)/CPPNearTreeTest $(BIN)/CNearTreeTest $(BIN)/CNearTreeTestInst -install: all $(INSTALL_PREFIX) $(INSTALL_PREFIX)/lib $(INSTALL_PREFIX)/include \ +install: all $(INSTALL_PREFIX) $(INSTALL_PREFIX)/$(INSTALL_LIB) $(INSTALL_PREFIX)/include \ $(INC) $(LIB)/libCNearTree.$(LIB_EXT) $(INC)/TNear.h $(INC)/CNearTree.h \ $(INC)/rhrand.h $(INC)/triple.h - $(INSTALL_COMMAND) $(LIB)/libCNearTree.$(LIB_EXT) $(INSTALL_PREFIX)/lib/libCNearTree.$(LIB_EXT) - $(INSTALL_FINISH_COMMAND) $(INSTALL_PREFIX)/lib/libCNearTree.$(LIB_EXT) + $(INSTALL_COMMAND) $(LIB)/libCNearTree.$(LIB_EXT) $(INSTALL_PREFIX)/$(INSTALL_LIB)/libCNearTree.$(LIB_EXT) + $(INSTALL_FINISH_COMMAND) $(INSTALL_PREFIX)/$(INSTALL_LIB)/libCNearTree.$(LIB_EXT) -cp $(INSTALL_PREFIX)/include/TNear.h $(INSTALL_PREFIX)/include/TNear_old.h -cp $(INSTALL_PREFIX)/include/CNearTree.h $(INSTALL_PREFIX)/include/CNearTree_old.h cp $(INC)/TNear.h $(INSTALL_PREFIX)/include/TNear.h @@ -242,11 +243,11 @@ install: all $(INSTALL_PREFIX) $(INSTALL_PREFIX)/lib $(INSTALL_PREFIX)/include chmod 644 $(INSTALL_PREFIX)/include/triple.h echo "Testing final install dynamic" $(BUILD_COMMAND_DYNAMIC) $(INCLUDES) $(EXAMPLES)/CNearTreeTest.c \ - -L$(INSTALL_PREFIX)/lib -lCNearTree $(CLIBRARIES) -o $(BIN)/CNearTreeTest_dynamic + -L$(INSTALL_PREFIX)/$(INSTALL_LIB) -lCNearTree $(CLIBRARIES) -o $(BIN)/CNearTreeTest_dynamic $(BIN)/CNearTreeTest_dynamic echo "Testing final install static" $(BUILD_COMMAND_STATIC) $(INCLUDES) $(EXAMPLES)/CNearTreeTest.c \ - -L$(INSTALL_PREFIX)/lib -lCNearTree $(CLIBRARIES) -o $(BIN)/CNearTreeTest_static + -L$(INSTALL_PREFIX)/$(INSTALL_LIB) -lCNearTree $(CLIBRARIES) -o $(BIN)/CNearTreeTest_static $(BIN)/CNearTreeTest_static @@ -257,8 +258,8 @@ install: all $(INSTALL_PREFIX) $(INSTALL_PREFIX)/lib $(INSTALL_PREFIX)/include $(INSTALL_PREFIX): mkdir -p $(INSTALL_PREFIX) -$(INSTALL_PREFIX)/lib: $(INSTALL_PREFIX) - mkdir -p $(INSTALL_PREFIX)/lib +$(INSTALL_PREFIX)/$(INSTALL_LIB): $(INSTALL_PREFIX) + mkdir -p $(INSTALL_PREFIX)/$(INSTALL_LIB) $(INSTALL_PREFIX)/bin: $(INSTALL_PREFIX) mkdir -p $(INSTALL_PREFIX)/bin debian/patches/series0000644000000000000000000000002212150133663012024 0ustar 01_makefile.patch debian/compat0000644000000000000000000000000212150133663010364 0ustar 9 debian/docs0000644000000000000000000000002412150133663010035 0ustar README_NearTree.txt debian/libcneartree5.install0000644000000000000000000000002412150133663013276 0ustar usr/lib/*/lib*.so.* debian/libcneartree-dev.install0000644000000000000000000000006112150133663013766 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so debian/libcneartree5.symbols0000644000000000000000000000351612150133663013331 0ustar libCNearTree.so.5 libcneartree5 #MINVER# CNearTreeClear@Base 3.1.1 CNearTreeCompleteDelayedInsert@Base 3.1.1 CNearTreeCoords@Base 3.1.1 CNearTreeCount@Base 3.1.1 CNearTreeCreate@Base 3.1.1 CNearTreeDelayedInsert@Base 3.1.1 CNearTreeDist@Base 3.1.1 CNearTreeDistsq@Base 3.1.1 CNearTreeFarthestNeighbor@Base 3.1.1 CNearTreeFindFarthest@Base 3.1.1 CNearTreeFindInAnnulus@Base 3.1.1 CNearTreeFindInAnnulusL2LAZY@Base 3.1.1 CNearTreeFindInSphere@Base 3.1.1 CNearTreeFindInSphereL2LAZY@Base 3.1.1 CNearTreeFindKFarthest@Base 3.1.1 CNearTreeFindKNearest@Base 3.1.1 CNearTreeFindKTreeFarthest@Base 3.1.1 CNearTreeFindKTreeNearest@Base 3.1.1 CNearTreeFindOutSphere@Base 3.1.1 CNearTreeFindOutSphereL2LAZY@Base 3.1.1 CNearTreeFindTreeInAnnulus@Base 3.1.1 CNearTreeFindTreeInSphere@Base 3.1.1 CNearTreeFindTreeOutSphere@Base 3.1.1 CNearTreeFree@Base 3.1.1 CNearTreeGetDeferredSize@Base 3.1.1 CNearTreeGetDelayedSize@Base 3.1.1 CNearTreeGetDepth@Base 3.1.1 CNearTreeGetDiamEstimate@Base 3.1.1 CNearTreeGetDimEstimate@Base 3.1.1 CNearTreeGetDimEstimateEsd@Base 3.1.1 CNearTreeGetFlags@Base 3.1.1 CNearTreeGetHeight@Base 3.1.1 CNearTreeGetMeanSpacing@Base 3.1.1 CNearTreeGetNodeVisits@Base 3.1.1 CNearTreeGetSize@Base 3.1.1 CNearTreeGetVarSpacing@Base 3.1.1 CNearTreeImmediateInsert@Base 3.1.1 CNearTreeInsert@Base 3.1.1 CNearTreeLeftNearest@Base 3.1.1 CNearTreeLeftNearestNeighbor@Base 3.1.1 CNearTreeNearest@Base 3.1.1 CNearTreeNearestL2LAZY@Base 3.1.1 CNearTreeNearestNeighbor@Base 3.1.1 CNearTreeNodeCount@Base 3.1.1 CNearTreeNodeCreate@Base 3.1.1 CNearTreeNodeFree@Base 3.1.1 CNearTreeNodeInsert@Base 3.1.1 CNearTreeNodeInsert_Flip@Base 3.1.1 CNearTreeNodeReInsert_Flip@Base 3.1.1 CNearTreeObjects@Base 3.1.1 CNearTreeSetFlags@Base 3.1.1 CNearTreeSetNorm@Base 3.1.1 CNearTreeSortIn@Base 3.1.1 CNearTreeZeroIfEmpty@Base 3.1.1 debian/libcneartree-dev.dirs0000644000000000000000000000002412150133663013260 0ustar usr/lib usr/include