2017-10-19 13:25:31 +00:00
|
|
|
Name: xxhash
|
2020-07-28 06:34:59 +00:00
|
|
|
Version: 0.8.0
|
2021-01-28 00:28:05 +00:00
|
|
|
Release: 2%{?dist}
|
2017-10-19 13:25:31 +00:00
|
|
|
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/
|
|
|
|
Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-07-28 06:34:59 +00:00
|
|
|
# Fix empty version in .pc file
|
|
|
|
# https://github.com/Cyan4973/xxHash/pull/442
|
|
|
|
Patch0: %{name}-pkgconfig-version.patch
|
2017-10-19 13:25:31 +00:00
|
|
|
|
2021-01-27 08:23:40 +00:00
|
|
|
BuildRequires: make
|
2018-04-19 14:53:19 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
2017-10-19 13:25:31 +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
|
|
|
|
License: BSD
|
|
|
|
|
|
|
|
%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
|
|
|
|
License: BSD
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for the xxhash library
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n xxHash-%{version}
|
2020-06-27 19:12:43 +00:00
|
|
|
%patch0 -p1
|
2017-10-19 13:25:31 +00:00
|
|
|
|
|
|
|
%build
|
2020-06-27 19:12:43 +00:00
|
|
|
# Enable runtime detection of sse2/avx2/avx512 on intel architectures
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
# The compiler version in EPEL 6 and 7 does not support avx
|
|
|
|
%if %{?rhel}%{!?rhel:0} == 6 || %{?rhel}%{!?rhel:0} == 7
|
|
|
|
%global dispatch 0
|
|
|
|
%else
|
|
|
|
%global dispatch 1
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
%global dispatch 0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%make_build MOREFLAGS="%{__global_cflags} %{?__global_ldflags}" \
|
|
|
|
DISPATCH=%{dispatch}
|
2017-10-19 13:25:31 +00:00
|
|
|
|
|
|
|
%install
|
2020-06-27 19:12:43 +00:00
|
|
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
2017-10-19 13:25:31 +00:00
|
|
|
rm %{buildroot}/%{_libdir}/libxxhash.a
|
|
|
|
|
|
|
|
%check
|
2018-04-19 14:53:19 +00:00
|
|
|
make check
|
2017-10-19 13:25:31 +00:00
|
|
|
make test-xxhsum-c
|
|
|
|
|
2019-01-22 17:41:22 +00:00
|
|
|
%ldconfig_scriptlets libs
|
2017-10-19 13:25:31 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/xxh*sum
|
|
|
|
%{_mandir}/man1/xxh*sum.1*
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%{_libdir}/libxxhash.so.*
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/xxhash.h
|
2020-03-06 16:21:17 +00:00
|
|
|
%{_includedir}/xxh3.h
|
2017-10-19 13:25:31 +00:00
|
|
|
%{_libdir}/libxxhash.so
|
2020-03-06 16:21:17 +00:00
|
|
|
%{_libdir}/pkgconfig/libxxhash.pc
|
2017-10-19 13:25:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-01-28 00:28:05 +00:00
|
|
|
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 06:34:59 +00:00
|
|
|
* Tue Jul 28 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.8.0-1
|
|
|
|
- Update to version 0.8.0
|
|
|
|
- Drop patches xxhash-compiler-warning-32-bit.patch (accepted upstream)
|
|
|
|
and xxhash-pkgconfig.patch (issue fixed upstream)
|
|
|
|
- Fix empty version in .pc file
|
|
|
|
|
2020-07-24 14:27:58 +00:00
|
|
|
* Fri Jul 24 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.4-2
|
|
|
|
- Fix libdir in pkg-config file
|
|
|
|
|
2020-06-27 19:12:43 +00:00
|
|
|
* Sat Jun 27 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.4-1
|
|
|
|
- Update to version 0.7.4
|
|
|
|
- Enable runtime detection of sse2/avx2/avx512 on intel architectures
|
|
|
|
- Fix compiler warning for 32 bit architectures
|
|
|
|
|
2020-03-06 16:21:17 +00:00
|
|
|
* Fri Mar 06 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.3-1
|
|
|
|
- Update to version 0.7.3
|
|
|
|
- Drop patch xxhash-gcc10-altivec.patch (accepted upstream)
|
|
|
|
|
2020-02-07 07:21:16 +00:00
|
|
|
* Fri Feb 07 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.2-3
|
|
|
|
- Fix ppc64le build with gcc 10
|
|
|
|
|
2020-01-31 05:00:41 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-09 14:52:04 +00:00
|
|
|
* Wed Oct 09 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.2-1
|
|
|
|
- Update to version 0.7.2
|
|
|
|
|
2019-08-19 09:01:38 +00:00
|
|
|
* Sat Aug 17 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.1-1
|
|
|
|
- Update to version 0.7.1
|
|
|
|
|
2019-07-27 04:43:31 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-18 12:41:25 +00:00
|
|
|
* Mon Mar 18 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.0-1
|
|
|
|
- Update to version 0.7.0
|
|
|
|
|
2019-02-03 12:54:02 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-14 09:38:45 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-04-19 14:53:19 +00:00
|
|
|
* Thu Apr 19 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.5-1
|
|
|
|
- Update to version 0.6.5
|
|
|
|
|
2018-02-09 22:11:25 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-03 09:38:19 +00:00
|
|
|
* Wed Jan 03 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.4-1
|
|
|
|
- Update to version 0.6.4
|
|
|
|
- Drop previously backported patches
|
|
|
|
|
2017-10-19 13:25:31 +00:00
|
|
|
* Thu Oct 19 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.3-2
|
|
|
|
- Correct License tag (command line tool is GPLv2+)
|
|
|
|
- Adjust Source tag to get a more descriptive tarfile name
|
|
|
|
|
|
|
|
* Wed Oct 18 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.3-1
|
|
|
|
- Initial packaging
|