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