Blame SPECS/xxhash.spec

175573
Name:		xxhash
175573
Version:	0.8.1
175573
Release:	3%{?dist}
175573
Summary:	Extremely fast hash algorithm
175573
175573
#		The source for the library (xxhash.c and xxhash.h) is BSD
175573
#		The source for the command line tool (xxhsum.c) is GPLv2+
175573
License:	BSD and GPLv2+
175573
URL:		http://www.xxhash.com/
175573
Source0:	https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
175573
175573
BuildRequires:	make
175573
BuildRequires:	gcc
175573
BuildRequires:	doxygen
175573
175573
Patch0:		1-fix-man-page-installation.patch
175573
175573
%description
175573
xxHash is an Extremely fast Hash algorithm, running at RAM speed
175573
limits. It successfully completes the SMHasher test suite which
175573
evaluates collision, dispersion and randomness qualities of hash
175573
functions. Code is highly portable, and hashes are identical on all
175573
platforms (little / big endian).
175573
175573
%package libs
175573
Summary:	Extremely fast hash algorithm - library
175573
License:	BSD
175573
175573
%description libs
175573
xxHash is an Extremely fast Hash algorithm, running at RAM speed
175573
limits. It successfully completes the SMHasher test suite which
175573
evaluates collision, dispersion and randomness qualities of hash
175573
functions. Code is highly portable, and hashes are identical on all
175573
platforms (little / big endian).
175573
175573
%package devel
175573
Summary:	Extremely fast hash algorithm - development files
175573
License:	BSD
175573
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
175573
# By setting XXH_INLINE_ALL, xxhash may be used as a header-only library.
175573
# Dependent packages that use xxhash this way must BR this virtual Provide:
175573
Provides:	%{name}-static = %{version}-%{release}
175573
175573
%description devel
175573
Development files for the xxhash library
175573
175573
%package doc
175573
Summary:	Extremely fast hash algorithm - documentation files
175573
License:	BSD
175573
BuildArch:	noarch
175573
175573
%description doc
175573
Documentation files for the xxhash library
175573
175573
%prep
175573
%setup -q -n xxHash-%{version}
175573
%patch0 -p1
175573
175573
%build
175573
# Enable runtime detection of sse2/avx2/avx512 on intel architectures
175573
%ifarch %{ix86} x86_64
175573
%global dispatch 1
175573
%else
175573
%global dispatch 0
175573
%endif
175573
175573
%make_build MOREFLAGS="%{__global_cflags} %{?__global_ldflags}" \
175573
	    DISPATCH=%{dispatch}
175573
doxygen
175573
175573
%install
175573
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
175573
rm %{buildroot}/%{_libdir}/libxxhash.a
175573
175573
%check
175573
make check
175573
make test-xxhsum-c
175573
175573
%ldconfig_scriptlets libs
175573
175573
%files
175573
%{_bindir}/xxh*sum
175573
%{_mandir}/man1/xxh*sum.1*
175573
%license cli/COPYING
175573
%doc cli/README.md
175573
175573
%files libs
175573
%{_libdir}/libxxhash.so.*
175573
%license LICENSE
175573
%doc README.md
175573
175573
%files devel
175573
%{_includedir}/xxhash.h
175573
%{_includedir}/xxh3.h
175573
%{_libdir}/libxxhash.so
175573
%{_libdir}/pkgconfig/libxxhash.pc
175573
175573
%files doc
175573
%doc doxygen/html
175573
175573
%changelog
175573
* Mon Jul 18 2022 Vladis Dronov <vdronov@redhat.com> - 0.8.1-3
175573
- Fix broken manpages (upstream commit 836f4e735cf3)
175573
- Add OSCI testing harness
175573
175573
* Fri Jun 17 2022 Vladis Dronov <vdronov@redhat.com> - 0.8.1-1
175573
- Packaging of xxhash v0.8.1 for CS and RHEL copied from Fedora 36