]>
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 | |
d9829718 | 4 | Version: 0.8.1 |
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 | |
d9829718 JP |
10 | # Source0-md5: b67c587f5ff4894253da0095ba7ea393 |
11 | Patch0: man-symlinks.patch | |
678fe8f6 JB |
12 | URL: https://github.com/Cyan4973/xxHash |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
1d2c2db5 JP |
15 | %ifarch %{arm} |
16 | %define archcflags -DXXH_FORCE_MEMORY_ACCESS=1 | |
17 | %endif | |
18 | ||
678fe8f6 JB |
19 | %description |
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). | |
25 | ||
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). | |
32 | ||
33 | %package devel | |
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} | |
38 | ||
39 | %description devel | |
40 | Header files for xxHash library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki xxHash. | |
44 | ||
45 | %package static | |
46 | Summary: Static xxHash library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka xxHash | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static xxHash library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka xxHash. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | ||
61 | %build | |
d9829718 | 62 | CC="%{__cc}" \ |
678fe8f6 | 63 | CFLAGS="%{rpmcflags}" \ |
1d2c2db5 | 64 | CPPFLAGS="%{rpmcflags} %{?archcflags}" \ |
678fe8f6 JB |
65 | LDFLAGS="%{rpmldflags}" \ |
66 | %{__make} \ | |
67 | prefix=%{_prefix} \ | |
68 | libdir=%{_libdir} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT \ | |
75 | prefix=%{_prefix} \ | |
76 | libdir=%{_libdir} | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc CHANGELOG LICENSE README.md | |
87 | %attr(755,root,root) %{_bindir}/xxhsum | |
88 | %attr(755,root,root) %{_bindir}/xxh32sum | |
89 | %attr(755,root,root) %{_bindir}/xxh64sum | |
90 | %attr(755,root,root) %{_bindir}/xxh128sum | |
91 | %attr(755,root,root) %{_libdir}/libxxhash.so.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libxxhash.so.0 | |
93 | %{_mandir}/man1/xxhsum.1* | |
94 | %{_mandir}/man1/xxh32sum.1* | |
95 | %{_mandir}/man1/xxh64sum.1* | |
96 | %{_mandir}/man1/xxh128sum.1* | |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %doc doc/xxhash_spec.md | |
101 | %attr(755,root,root) %{_libdir}/libxxhash.so | |
102 | %{_includedir}/xxh3.h | |
103 | %{_includedir}/xxhash.h | |
104 | %{_pkgconfigdir}/libxxhash.pc | |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libxxhash.a |