]> git.pld-linux.org Git - packages/xxHash.git/blame - xxHash.spec
up to 0.8.2
[packages/xxHash.git] / xxHash.spec
CommitLineData
678fe8f6
JB
1Summary: xxHash - extremely fast hash algorithm
2Summary(pl.UTF-8): xxHash - bardzo szybki algorytm haszowania
3Name: xxHash
00236a14 4Version: 0.8.2
678fe8f6
JB
5Release: 1
6License: BSD
7Group: Libraries
8#Source0Download: https://github.com/Cyan4973/xxHash/releases
9Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
00236a14 10# Source0-md5: a7628d7a4fd608a7573c5a3e2c856ea5
678fe8f6
JB
11URL: https://github.com/Cyan4973/xxHash
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
b9afcf51 14%define specflags_arm -DXXH_FORCE_MEMORY_ACCESS=1
1d2c2db5 15
678fe8f6
JB
16%description
17xxHash is an Extremely fast Hash algorithm, running at RAM speed
18limits. It successfully completes the SMHasher test suite which
19evaluates collision, dispersion and randomness qualities of hash
20functions. Code is highly portable, and hashes are identical on all
21platforms (little / big endian).
22
23%description -l pl.UTF-8
24xxHash to niezwykle szybki algorytm haszowania, dochodzący do
25ograniczeń szybkości pamięci RAM. Przechodzi zestaw testów SMHasher,
26oceniający współczynniki kolizji, dyspersji i losowości funkcji
27haszujących. Kod jest przenośny, a wartości haszy identyczne na
28wszystkich platformach (little- i big-endian).
29
30%package devel
31Summary: Header files for xxHash library
32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki xxHash
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description devel
37Header files for xxHash library.
38
39%description devel -l pl.UTF-8
40Pliki nagłówkowe biblioteki xxHash.
41
42%package static
43Summary: Static xxHash library
44Summary(pl.UTF-8): Statyczna biblioteka xxHash
45Group: Development/Libraries
46Requires: %{name}-devel = %{version}-%{release}
47
48%description static
49Static xxHash library.
50
51%description static -l pl.UTF-8
52Statyczna biblioteka xxHash.
53
54%prep
55%setup -q
678fe8f6
JB
56
57%build
d9829718 58CC="%{__cc}" \
678fe8f6 59CFLAGS="%{rpmcflags}" \
b9afcf51 60CPPFLAGS="%{rpmcflags}" \
678fe8f6
JB
61LDFLAGS="%{rpmldflags}" \
62%{__make} \
63 prefix=%{_prefix} \
64 libdir=%{_libdir}
65
66%install
67rm -rf $RPM_BUILD_ROOT
68
69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT \
71 prefix=%{_prefix} \
72 libdir=%{_libdir}
73
74%clean
75rm -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
This page took 0.18037 seconds and 4 git commands to generate.