1 |
# Generated by go2rpm 1 |
2 |
%bcond_without check |
3 |
|
4 |
# https://github.com/cespare/xxhash |
5 |
%global goipath github.com/cespare/xxhash |
6 |
Version: 2.1.2 |
7 |
|
8 |
%global goaltipaths github.com/cespare/xxhash/v2 |
9 |
|
10 |
%gometa |
11 |
|
12 |
%global common_description %{expand: |
13 |
A Go implementation of the 64-bit xxHash algorithm (XXH64).} |
14 |
|
15 |
%global golicenses LICENSE.txt |
16 |
%global godocs README.md |
17 |
|
18 |
Name: %{goname} |
19 |
Release: %mkrel 2 |
20 |
Summary: A Go implementation of the 64-bit xxHash algorithm (XXH64) |
21 |
Group: Development/Golang |
22 |
|
23 |
License: MIT |
24 |
URL: %{gourl} |
25 |
Source0: %{gosource} |
26 |
|
27 |
%description |
28 |
%{common_description} |
29 |
|
30 |
%gopkg |
31 |
|
32 |
%prep |
33 |
%goprep |
34 |
|
35 |
%build |
36 |
for cmd in xxhsum; do |
37 |
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd |
38 |
done |
39 |
|
40 |
%install |
41 |
%gopkginstall |
42 |
install -m 0755 -vd %{buildroot}%{_bindir} |
43 |
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ |
44 |
|
45 |
%if %{with check} |
46 |
%check |
47 |
%gocheck |
48 |
%endif |
49 |
|
50 |
%files |
51 |
%license LICENSE.txt |
52 |
%doc README.md |
53 |
%{_bindir}/* |
54 |
|
55 |
%gopkgfiles |
56 |
|