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