1 Summary: xxHash - extremely fast hash algorithm
2 Summary(pl.UTF-8): xxHash - bardzo szybki algorytm haszowania
8 #Source0Download: https://github.com/Cyan4973/xxHash/releases
9 Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 62310678857c30fcef4128f41f711f49
11 Patch0: %{name}-pc.patch
12 URL: https://github.com/Cyan4973/xxHash
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define archcflags -DXXH_FORCE_MEMORY_ACCESS=1
20 xxHash is an Extremely fast Hash algorithm, running at RAM speed
21 limits. It successfully completes the SMHasher test suite which
22 evaluates collision, dispersion and randomness qualities of hash
23 functions. Code is highly portable, and hashes are identical on all
24 platforms (little / big endian).
26 %description -l pl.UTF-8
27 xxHash to niezwykle szybki algorytm haszowania, dochodzący do
28 ograniczeń szybkości pamięci RAM. Przechodzi zestaw testów SMHasher,
29 oceniający współczynniki kolizji, dyspersji i losowości funkcji
30 haszujących. Kod jest przenośny, a wartości haszy identyczne na
31 wszystkich platformach (little- i big-endian).
34 Summary: Header files for xxHash library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki xxHash
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for xxHash library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki xxHash.
46 Summary: Static xxHash library
47 Summary(pl.UTF-8): Statyczna biblioteka xxHash
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static xxHash library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka xxHash.
62 CFLAGS="%{rpmcflags}" \
63 CPPFLAGS="%{rpmcflags} %{?archcflags}" \
64 LDFLAGS="%{rpmldflags}" \
70 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT \
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %doc CHANGELOG LICENSE README.md
86 %attr(755,root,root) %{_bindir}/xxhsum
87 %attr(755,root,root) %{_bindir}/xxh32sum
88 %attr(755,root,root) %{_bindir}/xxh64sum
89 %attr(755,root,root) %{_bindir}/xxh128sum
90 %attr(755,root,root) %{_libdir}/libxxhash.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libxxhash.so.0
92 %{_mandir}/man1/xxhsum.1*
93 %{_mandir}/man1/xxh32sum.1*
94 %{_mandir}/man1/xxh64sum.1*
95 %{_mandir}/man1/xxh128sum.1*
98 %defattr(644,root,root,755)
99 %doc doc/xxhash_spec.md
100 %attr(755,root,root) %{_libdir}/libxxhash.so
101 %{_includedir}/xxh3.h
102 %{_includedir}/xxhash.h
103 %{_pkgconfigdir}/libxxhash.pc
106 %defattr(644,root,root,755)
107 %{_libdir}/libxxhash.a