e91cf93
Name:		xxhash
999f4d4
Version:	0.8.1
999f4d4
Release:	1%{?dist}
e91cf93
Summary:	Extremely fast hash algorithm
e91cf93
e91cf93
#		The source for the library (xxhash.c and xxhash.h) is BSD
e91cf93
#		The source for the command line tool (xxhsum.c) is GPLv2+
e91cf93
License:	BSD and GPLv2+
e91cf93
URL:		http://www.xxhash.com/
e91cf93
Source0:	https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
999f4d4
#		Fix compilation on RHEL 7 ppc64le (gcc 4.8)
999f4d4
#		https://github.com/Cyan4973/xxHash/issues/622
999f4d4
#		https://github.com/Cyan4973/xxHash/pull/631
999f4d4
Patch0:		%{name}-epel7-ppc64le.patch
e91cf93
758e0fa
BuildRequires:	make
93b9f6f
BuildRequires:	gcc
999f4d4
BuildRequires:	doxygen
93b9f6f
e91cf93
%description
e91cf93
xxHash is an Extremely fast Hash algorithm, running at RAM speed
e91cf93
limits. It successfully completes the SMHasher test suite which
e91cf93
evaluates collision, dispersion and randomness qualities of hash
e91cf93
functions. Code is highly portable, and hashes are identical on all
e91cf93
platforms (little / big endian).
e91cf93
e91cf93
%package libs
e91cf93
Summary:	Extremely fast hash algorithm - library
e91cf93
License:	BSD
e91cf93
e91cf93
%description libs
e91cf93
xxHash is an Extremely fast Hash algorithm, running at RAM speed
e91cf93
limits. It successfully completes the SMHasher test suite which
e91cf93
evaluates collision, dispersion and randomness qualities of hash
e91cf93
functions. Code is highly portable, and hashes are identical on all
e91cf93
platforms (little / big endian).
e91cf93
e91cf93
%package devel
e91cf93
Summary:	Extremely fast hash algorithm - development files
e91cf93
License:	BSD
e91cf93
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
c670a2f
# By setting XXH_INLINE_ALL, xxhash may be used as a header-only library.
c670a2f
# Dependent packages that use xxhash this way must BR this virtual Provide:
c670a2f
Provides:	%{name}-static = %{version}-%{release}
e91cf93
e91cf93
%description devel
e91cf93
Development files for the xxhash library
e91cf93
999f4d4
%package doc
999f4d4
Summary:	Extremely fast hash algorithm - documentation files
999f4d4
License:	BSD
999f4d4
BuildArch:	noarch
999f4d4
999f4d4
%description doc
999f4d4
Documentation files for the xxhash library
999f4d4
e91cf93
%prep
e91cf93
%setup -q -n xxHash-%{version}
e2be4a9
%patch0 -p1
e91cf93
e91cf93
%build
e2be4a9
# Enable runtime detection of sse2/avx2/avx512 on intel architectures
e2be4a9
%ifarch %{ix86} x86_64
e2be4a9
%global dispatch 1
e2be4a9
%else
e2be4a9
%global dispatch 0
e2be4a9
%endif
e2be4a9
e2be4a9
%make_build MOREFLAGS="%{__global_cflags} %{?__global_ldflags}" \
e2be4a9
	    DISPATCH=%{dispatch}
999f4d4
doxygen
e91cf93
e91cf93
%install
e2be4a9
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
e91cf93
rm %{buildroot}/%{_libdir}/libxxhash.a
e91cf93
e91cf93
%check
93b9f6f
make check
e91cf93
make test-xxhsum-c
e91cf93
2eadcbf
%ldconfig_scriptlets libs
e91cf93
e91cf93
%files
e91cf93
%{_bindir}/xxh*sum
e91cf93
%{_mandir}/man1/xxh*sum.1*
999f4d4
%license cli/COPYING
999f4d4
%doc cli/README.md
e91cf93
e91cf93
%files libs
e91cf93
%{_libdir}/libxxhash.so.*
e91cf93
%license LICENSE
e91cf93
%doc README.md
e91cf93
e91cf93
%files devel
e91cf93
%{_includedir}/xxhash.h
7c83bf7
%{_includedir}/xxh3.h
e91cf93
%{_libdir}/libxxhash.so
7c83bf7
%{_libdir}/pkgconfig/libxxhash.pc
e91cf93
999f4d4
%files doc
999f4d4
%doc doxygen/html
999f4d4
e91cf93
%changelog
999f4d4
* Mon Nov 29 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.8.1-1
999f4d4
- Update to version 0.8.1
999f4d4
- Drop patch xxhash-pkgconfig-version.patch (accepted upstream)
999f4d4
- Fix compilation on RHEL 7 ppc64le (gcc 4.8)
999f4d4
- The x86 dispatch code now enables sse2 and avx2 separately, it can now use
999f4d4
  sse2 on EPEL 7 without trying to use avx2 which is not supported by gcc 4.8
999f4d4
- Add documentation package - doxygen mark-up was added
999f4d4
74e1194
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
74e1194
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
74e1194
c670a2f
* Thu Jun 10 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.0-3
c670a2f
- Add virtual Provide for xxhash-static in xxhash-devel
c670a2f
5effcec
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
5effcec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5effcec
ac5117e
* Tue Jul 28 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.8.0-1
ac5117e
- Update to version 0.8.0
ac5117e
- Drop patches xxhash-compiler-warning-32-bit.patch (accepted upstream)
ac5117e
  and xxhash-pkgconfig.patch (issue fixed upstream)
ac5117e
- Fix empty version in .pc file
ac5117e
8a0c716
* Fri Jul 24 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.4-2
8a0c716
- Fix libdir in pkg-config file
8a0c716
e2be4a9
* Sat Jun 27 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.4-1
e2be4a9
- Update to version 0.7.4
e2be4a9
- Enable runtime detection of sse2/avx2/avx512 on intel architectures
e2be4a9
- Fix compiler warning for 32 bit architectures
e2be4a9
7c83bf7
* Fri Mar 06 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.3-1
7c83bf7
- Update to version 0.7.3
7c83bf7
- Drop patch xxhash-gcc10-altivec.patch (accepted upstream)
7c83bf7
fab53c2
* Fri Feb 07 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.2-3
fab53c2
- Fix ppc64le build with gcc 10
fab53c2
0423446
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
0423446
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0423446
0af5fbe
* Wed Oct 09 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.2-1
0af5fbe
- Update to version 0.7.2
0af5fbe
c2fc54f
* Sat Aug 17 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.1-1
c2fc54f
- Update to version 0.7.1
c2fc54f
28a0687
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
28a0687
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
28a0687
39c693e
* Mon Mar 18 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.0-1
39c693e
- Update to version 0.7.0
39c693e
611384e
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-3
611384e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
611384e
51b34ef
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-2
51b34ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
51b34ef
93b9f6f
* Thu Apr 19 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.5-1
93b9f6f
- Update to version 0.6.5
93b9f6f
8481979
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
8481979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8481979
f7784d7
* Wed Jan 03 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.4-1
f7784d7
- Update to version 0.6.4
f7784d7
- Drop previously backported patches
f7784d7
e91cf93
* Thu Oct 19 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.3-2
e91cf93
- Correct License tag (command line tool is GPLv2+)
e91cf93
- Adjust Source tag to get a more descriptive tarfile name
e91cf93
e91cf93
* Wed Oct 18 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.6.3-1
e91cf93
- Initial packaging