2020-10-15 21:17:44 +00:00
|
|
|
Name: xxhash
|
2023-09-07 13:51:15 +00:00
|
|
|
Version: 0.8.2
|
|
|
|
Release: 1%{?dist}
|
2020-10-15 21:17:44 +00:00
|
|
|
Summary: Extremely fast hash algorithm
|
|
|
|
|
2023-09-07 13:51:15 +00:00
|
|
|
# The source for the library (xxhash.c and xxhash.h) is BSD-2-Clause
|
|
|
|
# The source for the command line tool (xxhsum.c) is GPL-2.0-or-later
|
|
|
|
License: BSD-2-Clause AND GPL-2.0-or-later
|
|
|
|
URL: https://www.xxhash.com/
|
2020-10-15 21:17:44 +00:00
|
|
|
Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
2021-02-03 22:33:29 +00:00
|
|
|
BuildRequires: make
|
2020-10-15 21:17:44 +00:00
|
|
|
BuildRequires: gcc
|
2022-07-07 16:22:29 +00:00
|
|
|
BuildRequires: doxygen
|
2020-10-15 21:17:44 +00:00
|
|
|
|
|
|
|
%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 libs
|
|
|
|
Summary: Extremely fast hash algorithm - library
|
2023-09-07 13:51:15 +00:00
|
|
|
License: BSD-2-Clause
|
2020-10-15 21:17:44 +00:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
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 devel
|
|
|
|
Summary: Extremely fast hash algorithm - development files
|
2023-09-07 13:51:15 +00:00
|
|
|
License: BSD-2-Clause
|
2020-10-15 21:17:44 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2022-07-07 16:22:29 +00:00
|
|
|
# By setting XXH_INLINE_ALL, xxhash may be used as a header-only library.
|
|
|
|
# Dependent packages that use xxhash this way must BR this virtual Provide:
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2020-10-15 21:17:44 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for the xxhash library
|
|
|
|
|
2022-07-07 16:22:29 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Extremely fast hash algorithm - documentation files
|
2023-09-07 13:51:15 +00:00
|
|
|
License: BSD-2-Clause
|
2022-07-07 16:22:29 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation files for the xxhash library
|
|
|
|
|
2020-10-15 21:17:44 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n xxHash-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Enable runtime detection of sse2/avx2/avx512 on intel architectures
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%global dispatch 1
|
|
|
|
%else
|
|
|
|
%global dispatch 0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%make_build MOREFLAGS="%{__global_cflags} %{?__global_ldflags}" \
|
|
|
|
DISPATCH=%{dispatch}
|
2022-07-07 16:22:29 +00:00
|
|
|
doxygen
|
2020-10-15 21:17:44 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
|
rm %{buildroot}/%{_libdir}/libxxhash.a
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
make test-xxhsum-c
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/xxh*sum
|
|
|
|
%{_mandir}/man1/xxh*sum.1*
|
2022-07-07 16:22:29 +00:00
|
|
|
%license cli/COPYING
|
|
|
|
%doc cli/README.md
|
2020-10-15 21:17:44 +00:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%{_libdir}/libxxhash.so.*
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/xxhash.h
|
|
|
|
%{_includedir}/xxh3.h
|
|
|
|
%{_libdir}/libxxhash.so
|
|
|
|
%{_libdir}/pkgconfig/libxxhash.pc
|
|
|
|
|
2022-07-07 16:22:29 +00:00
|
|
|
%files doc
|
|
|
|
%doc doxygen/html
|
2020-10-15 21:17:44 +00:00
|
|
|
|
2022-07-07 16:22:29 +00:00
|
|
|
%changelog
|
2023-09-07 13:51:15 +00:00
|
|
|
* Thu Sep 07 2023 Vladis Dronov <vdronov@redhat.com> - 0.8.2-1
|
|
|
|
- Update to version 0.8.2
|
|
|
|
- Drop patch 1-fix-man-page-installation.patch
|
|
|
|
- Use SPDX license identifiers
|
|
|
|
|
2022-07-18 12:17:53 +00:00
|
|
|
* Mon Jul 18 2022 Vladis Dronov <vdronov@redhat.com> - 0.8.1-3
|
|
|
|
- Fix broken manpages (upstream commit 836f4e735cf3)
|
|
|
|
- Add OSCI testing harness
|
|
|
|
|
2022-07-07 16:22:29 +00:00
|
|
|
* Fri Jun 17 2022 Vladis Dronov <vdronov@redhat.com> - 0.8.1-1
|
|
|
|
- Packaging of xxhash v0.8.1 for CS and RHEL copied from Fedora 36
|