xxhash/xxhash.spec
Ismail Dönmez e9bca0b8e9 Accepting request 642793 from home:Simmphonie
- update to version 0.6.5
  -  Improved performance on small keys, thanks to suggestions from Jens Bauer
  -  New build macro, XXH_INLINE_ALL, extremely effective for small keys of fixed length (see this article for details)
  -  XXH32() : better performance on OS-X clang by disabling auto-vectorization
  -  Improved benchmark measurements accuracy on small keys
  -  Included xxHash specification document

OBS-URL: https://build.opensuse.org/request/show/642793
OBS-URL: https://build.opensuse.org/package/show/science/xxhash?expand=0&rev=2
2018-10-18 07:34:43 +00:00

81 lines
2.4 KiB
RPMSpec

#
# spec file for package xxhash
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: xxhash
Version: 0.6.5
Release: 0
Summary: Extremely fast non-cryptographic hash algorithm
License: GPL-2.0 and BSD-2-Clause
Group: Productivity/Security
URL: https://github.com/Cyan4973/xxHash
Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}.tar.gz
%description
xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. It successfully completes the SMHasher test suite which evaluates collision, dispersion and randomness qualities of hash functions. Code is highly portable, and hashes are identical on all platforms (little / big endian).
%package -n libxxhash0
Summary: The password hash library Argon2
License: BSD-2-Clause
Group: System/Libraries
%description -n libxxhash0
The password hash library Argon2, winner of PHC
%package devel
Summary: Development files for the password hash algorithm Argon2
License: BSD-2-Clause
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libxxhash0 = %{version}
%description devel
Development files for the password hash algorithm Argon2, winner of PHC
%prep
%setup -q -n xxHash-%{version}
%build
make %{?_smp_mflags} prefix=%{_prefix} libdir=%{_libdir}
%install
%make_install prefix=%{_prefix} libdir=%{_libdir}
rm -rf %{buildroot}%{_libdir}/libxxhash.a
%post -n libxxhash0 -p /sbin/ldconfig
%postun -n libxxhash0 -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md
%{_bindir}/xxhsum
%{_bindir}/xxh32sum
%{_bindir}/xxh64sum
%{_mandir}/man1/xxh32sum.*
%{_mandir}/man1/xxh64sum.*
%{_mandir}/man1/xxhsum.*
%files -n libxxhash0
%{_libdir}/libxxhash.so.*
%files devel
%{_includedir}/xxhash.h
%{_libdir}/libxxhash.so
%changelog