2018-03-18 14:09:27 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package xxhash
|
|
|
|
|
#
|
2024-05-06 00:05:32 +02:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-03-18 14:09:27 +01:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-10-18 09:34:43 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-18 14:09:27 +01:00
|
|
|
|
#
|
|
|
|
|
|
2018-10-18 09:34:43 +02:00
|
|
|
|
|
2018-03-18 14:09:27 +01:00
|
|
|
|
Name: xxhash
|
2024-12-30 20:53:13 +01:00
|
|
|
|
Version: 0.8.3
|
2018-03-18 14:09:27 +01:00
|
|
|
|
Release: 0
|
2018-12-04 15:57:05 +01:00
|
|
|
|
Summary: Non-cryptographic hash algorithm
|
2021-07-06 17:44:57 +02:00
|
|
|
|
License: BSD-2-Clause AND GPL-2.0-only
|
2018-10-18 09:34:43 +02:00
|
|
|
|
Group: Productivity/Security
|
|
|
|
|
URL: https://github.com/Cyan4973/xxHash
|
2024-12-30 20:53:13 +01:00
|
|
|
|
Source: https://github.com/Cyan4973/xxHash/archive/v%version.tar.gz
|
2024-08-14 17:12:56 +02:00
|
|
|
|
Patch1: test-tools-do-not-override-cflags.patch
|
2024-09-03 04:12:29 +02:00
|
|
|
|
Patch2: inline.patch
|
Accepting request 939999 from home:dirkmueller:Factory
- update to 0.8.1:
* perf : much improved performance for XXH3 streaming variants, notably on
gcc and msvc
* perf : improved XXH64 speed and latency on small inputs
* perf : small XXH32 speed and latency improvement on small inputs of random
size
* perf : minor stack usage improvement for XXH32 and XXH64
* api : new experimental variants XXH3_*_withSecretandSeed()
* api : update XXH3_generateSecret(), can no generate secret of any size (>=
XXH3_SECRET_SIZE_MIN)
* cli : xxhsum can now generate and check XXH3 checksums, using command `-H3`
* build: can build xxhash without XXH3, with new build macro XXH_NO_XXH3
* build: fix xxh_x86dispatch build with MSVC, by @apankrat
* build: XXH_INLINE_ALL can always be used safely, even after XXH_NAMESPACE
or a previous XXH_INLINE_ALL
* build: improved PPC64LE vector support
* install: fix pkgconfig
* install: compatibility with Haiku
* doc : code comments made compatible with doxygen
* misc : XXH_ACCEPT_NULL_INPUT_POINTER is no longer necessary, all functions
can accept NULL input pointers, as long as size == 0
* misc : complete refactor of CI tests on Github Actions, offering much
larger coverage
* misc : xxhsum code base split into multiple specialized units, within
directory cli/
- add 836f4e735cf368542f14005e41d2f84ec29dfd60.patch (fix manpage installation)
OBS-URL: https://build.opensuse.org/request/show/939999
OBS-URL: https://build.opensuse.org/package/show/science/xxhash?expand=0&rev=15
2021-12-15 15:04:41 +01:00
|
|
|
|
BuildRequires: gcc-c++
|
2024-08-14 17:12:56 +02:00
|
|
|
|
BuildRequires: pkg-config
|
2024-12-30 20:53:13 +01:00
|
|
|
|
BuildRequires: time
|
2024-08-14 17:12:56 +02:00
|
|
|
|
%{?suse_build_hwcaps_libs}
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2018-12-04 15:57:05 +01:00
|
|
|
|
xxHash is a hash algorithm. It completes the SMHasher test suite which
|
|
|
|
|
evaluates collision, dispersion and randomness qualities of hash functions.
|
|
|
|
|
Hashes are identical on all platforms.
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%package -n libxxhash0
|
2024-08-14 17:12:56 +02:00
|
|
|
|
Summary: Non-cryptographic hash algorithm
|
2018-03-18 14:09:27 +01:00
|
|
|
|
License: BSD-2-Clause
|
2018-10-18 09:34:43 +02:00
|
|
|
|
Group: System/Libraries
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%description -n libxxhash0
|
2024-08-14 17:12:56 +02:00
|
|
|
|
xxHash is a hash algorithm. It completes the SMHasher test suite which
|
|
|
|
|
evaluates collision, dispersion and randomness qualities of hash functions.
|
|
|
|
|
Hashes are identical on all platforms.
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%package devel
|
2024-08-14 17:12:56 +02:00
|
|
|
|
Summary: Headers for xxHash, a non-cryptographic hash algorithm
|
2018-03-18 14:09:27 +01:00
|
|
|
|
License: BSD-2-Clause
|
2018-10-18 09:34:43 +02:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2024-12-30 20:53:13 +01:00
|
|
|
|
Requires: %name = %version
|
|
|
|
|
Requires: libxxhash0 = %version
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%description devel
|
2024-08-14 17:12:56 +02:00
|
|
|
|
Headers and other development files for xxHash.
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
2024-12-30 20:53:13 +01:00
|
|
|
|
%autosetup -p1 -n xxHash-%version
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2024-08-14 17:12:56 +02:00
|
|
|
|
# ALLOW_AVX just means "we guarantee we policed our %%optflags".
|
2024-12-30 20:53:13 +01:00
|
|
|
|
export CFLAGS="%optflags -DXXH_X86DISPATCH_ALLOW_AVX=1"
|
2024-08-14 17:12:56 +02:00
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2024-05-06 00:04:56 +02:00
|
|
|
|
export LDFLAGS="%{?build_ldflags}"
|
2024-09-03 04:07:04 +02:00
|
|
|
|
# DISPATCH=1 if you want AVX2/AVX512. But it does not seem to perform any
|
|
|
|
|
# better than the lowest-denomimation code on at least the 1135G7 and 5950X
|
|
|
|
|
# CPUs, and for both LP64 as well as ILP32 — it seems to be all within margin
|
|
|
|
|
# of error.
|
2024-12-30 20:53:13 +01:00
|
|
|
|
%make_build prefix=%_prefix libdir=%_libdir
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2024-12-30 20:53:13 +01:00
|
|
|
|
export CFLAGS="%optflags -DXXH_X86DISPATCH_ALLOW_AVX=1"
|
|
|
|
|
export CXXFLAGS="%optflags"
|
2024-05-06 00:04:56 +02:00
|
|
|
|
export LDFLAGS="%{?build_ldflags}"
|
2024-12-30 20:53:13 +01:00
|
|
|
|
%make_install prefix=%_prefix libdir=%_libdir
|
|
|
|
|
rm -rf %buildroot%_libdir/libxxhash.a
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
2019-12-19 16:27:44 +01:00
|
|
|
|
%check
|
2024-12-30 20:53:13 +01:00
|
|
|
|
export CFLAGS="%optflags"
|
|
|
|
|
export CXXFLAGS="%optflags"
|
2024-05-06 00:04:56 +02:00
|
|
|
|
export LDFLAGS="%{?build_ldflags}"
|
2021-12-20 12:12:42 +01:00
|
|
|
|
# not safe for parallel execution as it removes xxhash.o and recreates it with different flags
|
2024-05-06 00:04:56 +02:00
|
|
|
|
# the list is taken from test-all with non-working/irrelevant ones (such as ones that change the toolchain) removed
|
|
|
|
|
%make_build -j1 test test-unicode listL120 trailingWhitespace test-xxh-nnn-sums
|
2019-12-19 16:27:44 +01:00
|
|
|
|
|
2024-05-06 00:05:32 +02:00
|
|
|
|
%ldconfig_scriptlets -n libxxhash0
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%files
|
2018-10-18 09:34:43 +02:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
2024-12-30 20:53:13 +01:00
|
|
|
|
%_bindir/xxh*
|
|
|
|
|
%_mandir/man1/xxh*
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%files -n libxxhash0
|
2024-12-30 20:53:13 +01:00
|
|
|
|
%_libdir/libxxhash.so.*
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%files devel
|
2024-12-30 20:53:13 +01:00
|
|
|
|
%_includedir/*.h
|
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
%_libdir/libxxhash.so
|
2018-03-18 14:09:27 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|