]>
Commit | Line | Data |
---|---|---|
678fe8f6 JB |
1 | Summary: xxHash - extremely fast hash algorithm |
2 | Summary(pl.UTF-8): xxHash - bardzo szybki algorytm haszowania | |
3 | Name: xxHash | |
00236a14 | 4 | Version: 0.8.2 |
678fe8f6 JB |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/Cyan4973/xxHash/releases | |
9 | Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz | |
00236a14 | 10 | # Source0-md5: a7628d7a4fd608a7573c5a3e2c856ea5 |
678fe8f6 JB |
11 | URL: https://github.com/Cyan4973/xxHash |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
b9afcf51 | 14 | %define specflags_arm -DXXH_FORCE_MEMORY_ACCESS=1 |
1d2c2db5 | 15 | |
678fe8f6 JB |
16 | %description |
17 | xxHash is an Extremely fast Hash algorithm, running at RAM speed | |
18 | limits. It successfully completes the SMHasher test suite which | |
19 | evaluates collision, dispersion and randomness qualities of hash | |
20 | functions. Code is highly portable, and hashes are identical on all | |
21 | platforms (little / big endian). | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | xxHash to niezwykle szybki algorytm haszowania, dochodzący do | |
25 | ograniczeń szybkości pamięci RAM. Przechodzi zestaw testów SMHasher, | |
26 | oceniający współczynniki kolizji, dyspersji i losowości funkcji | |
27 | haszujących. Kod jest przenośny, a wartości haszy identyczne na | |
28 | wszystkich platformach (little- i big-endian). | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for xxHash library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki xxHash | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for xxHash library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki xxHash. | |
41 | ||
42 | %package static | |
43 | Summary: Static xxHash library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka xxHash | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static xxHash library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka xxHash. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
678fe8f6 JB |
56 | |
57 | %build | |
d9829718 | 58 | CC="%{__cc}" \ |
678fe8f6 | 59 | CFLAGS="%{rpmcflags}" \ |
b9afcf51 | 60 | CPPFLAGS="%{rpmcflags}" \ |
678fe8f6 JB |
61 | LDFLAGS="%{rpmldflags}" \ |
62 | %{__make} \ | |
63 | prefix=%{_prefix} \ | |
64 | libdir=%{_libdir} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT \ | |
71 | prefix=%{_prefix} \ | |
72 | libdir=%{_libdir} | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc CHANGELOG LICENSE README.md | |
83 | %attr(755,root,root) %{_bindir}/xxhsum | |
84 | %attr(755,root,root) %{_bindir}/xxh32sum | |
85 | %attr(755,root,root) %{_bindir}/xxh64sum | |
86 | %attr(755,root,root) %{_bindir}/xxh128sum | |
87 | %attr(755,root,root) %{_libdir}/libxxhash.so.*.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/libxxhash.so.0 | |
89 | %{_mandir}/man1/xxhsum.1* | |
90 | %{_mandir}/man1/xxh32sum.1* | |
91 | %{_mandir}/man1/xxh64sum.1* | |
92 | %{_mandir}/man1/xxh128sum.1* | |
93 | ||
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %doc doc/xxhash_spec.md | |
97 | %attr(755,root,root) %{_libdir}/libxxhash.so | |
98 | %{_includedir}/xxh3.h | |
99 | %{_includedir}/xxhash.h | |
100 | %{_pkgconfigdir}/libxxhash.pc | |
101 | ||
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libxxhash.a |