ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 23857
en ru
SRPMs in branches
hide window
Group :: Sciences/Mathematics
Source RPM: ann
Raw spec file

%define descr \
ANN is a library written in C++, which supports data structures and \
algorithms for both exact and approximate nearest neighbor searching in \
arbitrarily high dimensions. \
In the nearest neighbor problem a set of data points in d-dimensional \
space is given. These points are preprocessed into a data structure, so \
that given any query point q, the nearest or generally k nearest points \
of P to q can be reported efficiently. The distance between two points \
can be defined in many ways. ANN assumes that distances are measured \
using any class of distance functions called Minkowski metrics. These \
include the well known Euclidean distance, Manhattan distance, and max \
distance. \
Based on our own experience, ANN performs quite efficiently for point \
sets ranging in size from thousands to hundreds of thousands, and in \
dimensions as high as 20. (For applications in significantly higher \
dimensions, the results are rather spotty, but you might try it anyway.) \
The library implements a number of different data structures, based on \
kd-trees and box-decomposition trees, and employs a couple of different \
search strategies. \
The library also comes with test programs for measuring the quality of \
performance of ANN on any particular data sets, as well as programs for \
visualizing the structure of the geometric data structures.

Name: ann
Version: 1.1.2
Release: alt5
Summary: A Library for Approximate Nearest Neighbor Searching
License: LGPL v2.1 or later
Group: Sciences/Mathematics
Packager: Eugeny A. Rostovtsev (REAL) <real at>


Requires: lib%name = %version-%release

BuildPreReq: gcc-c++


%package test
Summary: Test for ANN
Group: Sciences/Mathematics
Requires: lib%name = %version-%release

%description test

This package contains test for ANN.

%package example
Summary: Example for ANN
Group: Development/Documentation
Requires: lib%name = %version-%release

%description example

This package contains example for ANN.

%package doc
Summary: Documentation for ANN
Group: Development/Documentation
BuildArch: noarch

%description doc

This package contains documentation for ANN.

%package -n lib%name
Summary: Shared library of ANN
Group: System/Libraries

%description -n lib%name

This package contains shared library of ANN.

%package -n lib%name-devel
Summary: Development files of ANN
Group: Development/C++
Requires: lib%name = %version-%release

%description -n lib%name-devel

This package contains development files of ANN.

%package -n lib%name-devel-static
Summary: Static library of ANN
Group: Development/C++
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static

This package contains static library of ANN.

mkdir -p lib bin

%make_build linux-g++

rm -f $(find ./ -name '*.o')

install -d %buildroot%_bindir
install -d %buildroot%_libdir
install -d %buildroot%_includedir/ANN
install -d %buildroot%_datadir/%name/test
install -d %buildroot%_datadir/%name/example
install -d %buildroot%_docdir/%name

install -m755 bin/* %buildroot%_bindir
cp -P lib/* %buildroot%_libdir
chmod -x %buildroot%_libdir/*
install -p -m644 include/ANN/* %buildroot%_includedir/ANN
install -p -m644 test/*.pts test/*.in test/*.save %buildroot%_datadir/%name/test
install -p -m644 sample/* %buildroot%_datadir/%name/example
install -p -m644 doc/* %buildroot%_docdir/%name

%doc Copyright.txt License.txt ReadMe.txt

%files test
%dir %_datadir/%name

%files example
%dir %_datadir/%name

%files doc

%files -n lib%name

%files -n lib%name-devel

%files -n lib%name-devel-static

* Mon Feb 11 2019 Grigory Ustinov <grenka at> 1.1.2-alt5
- Fixed FTBFS.

* Fri Mar 11 2011 Eugeny A. Rostovtsev (REAL) <real at> 1.1.2-alt4
- Added -g into compiler flags

* Thu Feb 10 2011 Eugeny A. Rostovtsev (REAL) <real at> 1.1.2-alt3
- Rebuilt for debuginfo

* Mon Oct 18 2010 Eugeny A. Rostovtsev (REAL) <real at> 1.1.2-alt2
- Rebuilt for soname set-versions

* Fri Jun 11 2010 Eugeny A. Rostovtsev (REAL) <real at> 1.1.2-alt1
- Version 1.1.2

* Fri Sep 11 2009 Eugeny A. Rostovtsev (REAL) <real at> 1.1.1-alt1
- Initial build for Sisyphus

The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.