|
|
d01b04c |
Name: ann
|
|
|
d01b04c |
Version: 1.1.1
|
|
|
7063c72 |
Release: 4%{?dist}
|
|
|
d01b04c |
Summary: Library for searching Approximate Nearest Neighbors
|
|
|
d01b04c |
|
|
|
d01b04c |
Group: Applications/System
|
|
|
d01b04c |
License: LGPLv2+
|
|
|
d01b04c |
URL: http://www.cs.umd.edu/~mount/ANN
|
|
|
d01b04c |
Source0: http://www.cs.umd.edu/~mount/ANN/Files/%{version}/%{name}_%{version}.tar.gz
|
|
|
d01b04c |
Patch0: ann-make.patch
|
|
|
d01b04c |
Patch1: ann-gcc43.patch
|
|
|
d01b04c |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%description
|
|
|
d01b04c |
ANN is a library written in the C++ programming language to support both
|
|
|
d01b04c |
exact and approximate nearest neighbor searching in spaces of various
|
|
|
d01b04c |
dimensions. It was implemented by David M. Mount of the University of
|
|
|
d01b04c |
Maryland, and Sunil Arya of the Hong Kong University of Science and
|
|
|
d01b04c |
Technology. ANN (pronounced like the name ``Ann'') stands for
|
|
|
d01b04c |
Approximate Nearest Neighbors. ANN is also a testbed containing
|
|
|
d01b04c |
programs and procedures for generating data sets, collecting and
|
|
|
d01b04c |
analyzing statistics on the performance of nearest neighbor algorithms
|
|
|
d01b04c |
and data structures, and visualizing the geometric structure of these
|
|
|
d01b04c |
data structures.
|
|
|
d01b04c |
|
|
|
d01b04c |
%package libs
|
|
|
d01b04c |
Summary: Runtime files for the ANN library
|
|
|
d01b04c |
Group: System Environment/Libraries
|
|
|
d01b04c |
|
|
|
d01b04c |
%description libs
|
|
|
d01b04c |
Runtime files needed to use ANN library.
|
|
|
d01b04c |
|
|
|
d01b04c |
%package devel
|
|
|
d01b04c |
Summary: Development files for the ANN library
|
|
|
d01b04c |
Group: Development/Libraries
|
|
|
d01b04c |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
d01b04c |
|
|
|
d01b04c |
%description devel
|
|
|
d01b04c |
Development files needed to use ANN library.
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%prep
|
|
|
d01b04c |
%setup -q -n %{name}_%{version}
|
|
|
d01b04c |
%patch0 -p1 -b .make
|
|
|
d01b04c |
%patch1 -p1 -b .gcc43
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%build
|
|
|
d01b04c |
make %{?_smp_mflags} linux CFLAGS="-fPIC -DPIC $RPM_OPT_FLAGS"
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%install
|
|
|
d01b04c |
rm -rf $RPM_BUILD_ROOT
|
|
|
d01b04c |
|
|
|
d01b04c |
mkdir -p $RPM_BUILD_ROOT%{_includedir}/ANN
|
|
|
d01b04c |
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
d01b04c |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
d01b04c |
|
|
|
d01b04c |
install -p -m 0644 include/ANN/*.h $RPM_BUILD_ROOT%{_includedir}/ANN
|
|
|
d01b04c |
install -p -m 0755 lib/libANN.so.* $RPM_BUILD_ROOT%{_libdir}
|
|
|
d01b04c |
install -p -m 0755 bin/ann2fig $RPM_BUILD_ROOT%{_bindir}
|
|
|
d01b04c |
|
|
|
d01b04c |
pushd $RPM_BUILD_ROOT%{_libdir}
|
|
|
d01b04c |
ln -s libANN.so.1.0 libANN.so.1
|
|
|
d01b04c |
ln -s libANN.so.1.0 libANN.so
|
|
|
d01b04c |
popd
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%clean
|
|
|
d01b04c |
rm -rf $RPM_BUILD_ROOT
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%post libs -p /sbin/ldconfig
|
|
|
d01b04c |
|
|
|
d01b04c |
%postun libs -p /sbin/ldconfig
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%files
|
|
|
d01b04c |
%defattr(-,root,root,-)
|
|
|
d01b04c |
%{_bindir}/*
|
|
|
d01b04c |
|
|
|
d01b04c |
%files libs
|
|
|
d01b04c |
%defattr(-,root,root,-)
|
|
|
d01b04c |
%doc Copyright.txt License.txt ReadMe.txt
|
|
|
d01b04c |
%{_libdir}/*.so.*
|
|
|
d01b04c |
|
|
|
d01b04c |
%files devel
|
|
|
d01b04c |
%defattr(-,root,root,-)
|
|
|
d01b04c |
%doc doc/ANNmanual.pdf
|
|
|
d01b04c |
%{_includedir}/ANN
|
|
|
d01b04c |
%{_libdir}/*.so
|
|
|
d01b04c |
|
|
|
d01b04c |
|
|
|
d01b04c |
%changelog
|
|
|
7063c72 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
|
|
|
7063c72 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7063c72 |
|
|
|
6944413 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
|
|
|
6944413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
6944413 |
|
|
|
d01b04c |
* Sat Aug 16 2008 Dan Horak <dan[at]danny.cz> - 1.1.1-2
|
|
|
d01b04c |
- put general docs only into libs subpackage
|
|
|
d01b04c |
- update license
|
|
|
d01b04c |
|
|
|
d01b04c |
* Thu Aug 14 2008 Dan Horak <dan[at]danny.cz> - 1.1.1-1
|
|
|
d01b04c |
- initial Fedora package
|