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