Name: E2LSH Version: 0.1 Release: 2%{?dist} Summary: Library for Nearest Neighbors Search Group: Applications/Engineering License: GPLv3+ URL: http://www.mit.edu/~andoni/LSH Source0: http://www.mit.edu/~andoni/E2LSH_gpl.tar.gz Patch0: add_lib_creation.patch BuildRequires: gcc %description E2LSH (Exact Euclidean LSH) is a package that provides a randomized solution for the high-dimensional near neighbor problem in the Euclidean space l2. After preprocessing the data set, E2LSH answers queries, typically in sublinear time, with each near neighbor being reported with a certain probability. E2LSH is based on the Locality Sensitive Hashing (LSH) scheme. %prep %setup -q %patch0 %build mkdir lib make %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_docdir} rm bin/compile cp -p bin/* %{buildroot}%{_bindir} cp -p lib/* %{buildroot}%{_libdir} cp -p gpl.txt manual.ps %{buildroot}%{_docdir} chmod 0755 %{buildroot}%{_bindir}/* chmod 0755 %{buildroot}%{_libdir}/* ldconfig -n %{buildroot}${_libdir}/* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_bindir}/* %{_libdir}/lib*.so.* %doc %{_docdir}/gpl.txt %doc %{_docdir}/manual.ps %changelog * Fri Apr 04 2014 Ryan H. Lewis - 0.1-2 - a more descriptive description * Thu Apr 03 2014 Ryan H. Lewis - 0.1-1 - initial attempt, patch added to provide a shared object