%global debug_package %{nil} # git archive --format=tar --prefix=%{name}-%{gitshort}/ %{gitshort} | xz > ~/%{name}-%{gitshort}.tar.xz %define gitshort 0d859a8 Name: farmhash Version: 20190513 Release: 1.git%{gitshort}%{?dist} Summary: FarmHash, a family of hash functions License: MIT URL: https://github.com/google/farmhash Source: %{name}-%{gitshort}.tar.xz Patch1: farmhouse-fix-build.patch BuildRequires: gcc-g++ BuildRequires: make %description A general overview of hash functions and their use is available in the file Understanding_Hash_Functions in this directory. It may be helpful to read it before using FarmHash. FarmHash provides hash functions for strings and other data. The functions mix the input bits thoroughly but are not suitable for cryptography. See "Hash Quality," below, for details on how FarmHash was tested and so on. We provide reference implementations in C++, with a friendly MIT license. All members of the FarmHash family were designed with heavy reliance on previous work by Jyrki Alakuijala, Austin Appleby, Bob Jenkins, and others. %package devel Summary: Development files for farmhash famiky of hash functions %description devel This package contains the header and static library files for farmhash famiky of hash functions. %prep %autosetup -p1 -n %{name}-%{gitshort} %build %configure %{make_build} %install %{make_install} find %{buildroot} -name '*.a' -delete %files %license COPYING %doc README %{_libdir}/libfarmhash.so.0* %files devel %doc %{_docdir}/%{name} %{_libdir}/libfarmhash.so %{_includedir}/farmhash.h %changelog * Sun May 18 2025 Peter Robinson - 20231104-1.16e8662 - Initial package