diff --git a/.xxhash.metadata b/.xxhash.metadata index cb57f82..7dd71fc 100644 --- a/.xxhash.metadata +++ b/.xxhash.metadata @@ -1 +1 @@ -a92c9a9cfbef23e52f2d1b581cb9926c680d261d SOURCES/xxhash-0.8.1.tar.gz +6caf7421bbcb2be76006f31ab514d484a8d8b628 SOURCES/xxhash-0.8.3.tar.gz diff --git a/SOURCES/.gitkeep b/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitkeep diff --git a/SPECS/xxhash.spec b/SPECS/xxhash.spec index ca08100..a7380a7 100644 --- a/SPECS/xxhash.spec +++ b/SPECS/xxhash.spec @@ -1,17 +1,13 @@ Name: xxhash -Version: 0.8.1 +Version: 0.8.3 Release: 1%{?dist} Summary: Extremely fast hash algorithm -# The source for the library (xxhash.c and xxhash.h) is BSD -# The source for the command line tool (xxhsum.c) is GPLv2+ -License: BSD and GPLv2+ -URL: http://www.xxhash.com/ +# 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/ Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz -# Fix compilation on RHEL 7 ppc64le (gcc 4.8) -# https://github.com/Cyan4973/xxHash/issues/622 -# https://github.com/Cyan4973/xxHash/pull/631 -Patch0: %{name}-epel7-ppc64le.patch BuildRequires: make BuildRequires: gcc @@ -26,7 +22,7 @@ platforms (little / big endian). %package libs Summary: Extremely fast hash algorithm - library -License: BSD +License: BSD-2-Clause %description libs xxHash is an Extremely fast Hash algorithm, running at RAM speed @@ -37,7 +33,7 @@ platforms (little / big endian). %package devel Summary: Extremely fast hash algorithm - development files -License: BSD +License: BSD-2-Clause Requires: %{name}-libs%{?_isa} = %{version}-%{release} # 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: @@ -48,7 +44,7 @@ Development files for the xxhash library %package doc Summary: Extremely fast hash algorithm - documentation files -License: BSD +License: BSD-2-Clause BuildArch: noarch %description doc @@ -56,30 +52,37 @@ Documentation files for the xxhash library %prep %setup -q -n xxHash-%{version} -%patch0 -p1 %build # Enable runtime detection of sse2/avx2/avx512 on intel architectures %ifarch %{ix86} x86_64 %global dispatch 1 +# Some distribution variants build with -march=x86-64-v3. +# See xxh_x86dispatch.c. +%global moreflags_dispatch -DXXH_X86DISPATCH_ALLOW_AVX %else %global dispatch 0 +%global moreflags_dispatch %{nil} %endif -%make_build MOREFLAGS="%{__global_cflags} %{?__global_ldflags}" \ - DISPATCH=%{dispatch} +%make_build \ + MOREFLAGS="%{__global_cflags} %{?__global_ldflags} %{moreflags_dispatch}" \ + DISPATCH=%{dispatch} \ + LIBXXH_DISPATCH=%{dispatch} doxygen %install -%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} +%make_install \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + DISPATCH=%{dispatch} \ + LIBXXH_DISPATCH=%{dispatch} rm %{buildroot}/%{_libdir}/libxxhash.a %check make check make test-xxhsum-c -%ldconfig_scriptlets libs - %files %{_bindir}/xxh*sum %{_mandir}/man1/xxh*sum.1* @@ -94,6 +97,9 @@ make test-xxhsum-c %files devel %{_includedir}/xxhash.h %{_includedir}/xxh3.h +%if %{?dispatch} +%{_includedir}/xxh_x86dispatch.h +%endif %{_libdir}/libxxhash.so %{_libdir}/pkgconfig/libxxhash.pc @@ -101,6 +107,38 @@ make test-xxhsum-c %doc doxygen/html %changelog +* Thu Jan 02 2025 Mattias Ellert - 0.8.3-1 +- Update to version 0.8.3 + +* Wed Sep 25 2024 Andreas Rogge - 0.8.2-4 +- add xxh_x86dispatch.h to devel package when dispatching is enabled (rhbz#2314193) + +* Sat Jul 20 2024 Fedora Release Engineering - 0.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Mattias Ellert - 0.8.2-1 +- Update to version 0.8.2 +- Drop patch xxhash-epel7-ppc64le.patch +- Use SPDX license identifiers + +* Sat Jul 22 2023 Fedora Release Engineering - 0.8.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jun 19 2023 Florian Weimer - 0.8.1-5 +- Enable building with -march=x86-64-v3 (#2215831) + +* Sat Jan 21 2023 Fedora Release Engineering - 0.8.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 0.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Mon Nov 29 2021 Mattias Ellert - 0.8.1-1 - Update to version 0.8.1 - Drop patch xxhash-pkgconfig-version.patch (accepted upstream)