|
|
027631 |
Name: xxhash
|
|
|
027631 |
Version: 0.8.1
|
|
|
027631 |
Release: 3%{?dist}
|
|
|
027631 |
Summary: Extremely fast hash algorithm
|
|
|
027631 |
|
|
|
027631 |
# The source for the library (xxhash.c and xxhash.h) is BSD
|
|
|
027631 |
# The source for the command line tool (xxhsum.c) is GPLv2+
|
|
|
027631 |
License: BSD and GPLv2+
|
|
|
027631 |
URL: http://www.xxhash.com/
|
|
|
027631 |
Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
027631 |
|
|
|
027631 |
BuildRequires: make
|
|
|
027631 |
BuildRequires: gcc
|
|
|
027631 |
BuildRequires: doxygen
|
|
|
027631 |
|
|
|
027631 |
Patch0: 1-fix-man-page-installation.patch
|
|
|
027631 |
|
|
|
027631 |
%description
|
|
|
027631 |
xxHash is an Extremely fast Hash algorithm, running at RAM speed
|
|
|
027631 |
limits. It successfully completes the SMHasher test suite which
|
|
|
027631 |
evaluates collision, dispersion and randomness qualities of hash
|
|
|
027631 |
functions. Code is highly portable, and hashes are identical on all
|
|
|
027631 |
platforms (little / big endian).
|
|
|
027631 |
|
|
|
027631 |
%package libs
|
|
|
027631 |
Summary: Extremely fast hash algorithm - library
|
|
|
027631 |
License: BSD
|
|
|
027631 |
|
|
|
027631 |
%description libs
|
|
|
027631 |
xxHash is an Extremely fast Hash algorithm, running at RAM speed
|
|
|
027631 |
limits. It successfully completes the SMHasher test suite which
|
|
|
027631 |
evaluates collision, dispersion and randomness qualities of hash
|
|
|
027631 |
functions. Code is highly portable, and hashes are identical on all
|
|
|
027631 |
platforms (little / big endian).
|
|
|
027631 |
|
|
|
027631 |
%package devel
|
|
|
027631 |
Summary: Extremely fast hash algorithm - development files
|
|
|
027631 |
License: BSD
|
|
|
027631 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
027631 |
# By setting XXH_INLINE_ALL, xxhash may be used as a header-only library.
|
|
|
027631 |
# Dependent packages that use xxhash this way must BR this virtual Provide:
|
|
|
027631 |
Provides: %{name}-static = %{version}-%{release}
|
|
|
027631 |
|
|
|
027631 |
%description devel
|
|
|
027631 |
Development files for the xxhash library
|
|
|
027631 |
|
|
|
027631 |
%package doc
|
|
|
027631 |
Summary: Extremely fast hash algorithm - documentation files
|
|
|
027631 |
License: BSD
|
|
|
027631 |
BuildArch: noarch
|
|
|
027631 |
|
|
|
027631 |
%description doc
|
|
|
027631 |
Documentation files for the xxhash library
|
|
|
027631 |
|
|
|
027631 |
%prep
|
|
|
027631 |
%setup -q -n xxHash-%{version}
|
|
|
027631 |
%patch0 -p1
|
|
|
027631 |
|
|
|
027631 |
%build
|
|
|
027631 |
# Enable runtime detection of sse2/avx2/avx512 on intel architectures
|
|
|
027631 |
%ifarch %{ix86} x86_64
|
|
|
027631 |
%global dispatch 1
|
|
|
027631 |
%else
|
|
|
027631 |
%global dispatch 0
|
|
|
027631 |
%endif
|
|
|
027631 |
|
|
|
027631 |
%make_build MOREFLAGS="%{__global_cflags} %{?__global_ldflags}" \
|
|
|
027631 |
DISPATCH=%{dispatch}
|
|
|
027631 |
doxygen
|
|
|
027631 |
|
|
|
027631 |
%install
|
|
|
027631 |
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
027631 |
rm %{buildroot}/%{_libdir}/libxxhash.a
|
|
|
027631 |
|
|
|
027631 |
%check
|
|
|
027631 |
make check
|
|
|
027631 |
make test-xxhsum-c
|
|
|
027631 |
|
|
|
027631 |
%ldconfig_scriptlets libs
|
|
|
027631 |
|
|
|
027631 |
%files
|
|
|
027631 |
%{_bindir}/xxh*sum
|
|
|
027631 |
%{_mandir}/man1/xxh*sum.1*
|
|
|
027631 |
%license cli/COPYING
|
|
|
027631 |
%doc cli/README.md
|
|
|
027631 |
|
|
|
027631 |
%files libs
|
|
|
027631 |
%{_libdir}/libxxhash.so.*
|
|
|
027631 |
%license LICENSE
|
|
|
027631 |
%doc README.md
|
|
|
027631 |
|
|
|
027631 |
%files devel
|
|
|
027631 |
%{_includedir}/xxhash.h
|
|
|
027631 |
%{_includedir}/xxh3.h
|
|
|
027631 |
%{_libdir}/libxxhash.so
|
|
|
027631 |
%{_libdir}/pkgconfig/libxxhash.pc
|
|
|
027631 |
|
|
|
027631 |
%files doc
|
|
|
027631 |
%doc doxygen/html
|
|
|
027631 |
|
|
|
027631 |
%changelog
|
|
|
027631 |
* Mon Jul 18 2022 Vladis Dronov <vdronov@redhat.com> - 0.8.1-3
|
|
|
027631 |
- Fix broken manpages (upstream commit 836f4e735cf3)
|
|
|
027631 |
- Add OSCI testing harness
|
|
|
027631 |
|
|
|
027631 |
* Fri Jun 17 2022 Vladis Dronov <vdronov@redhat.com> - 0.8.1-1
|
|
|
027631 |
- Packaging of xxhash v0.8.1 for CS and RHEL copied from Fedora 36
|