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 |
guillomovitch |
1756580 |
Version: 2.1.2 |
7 |
pterjan |
1641411 |
|
8 |
pterjan |
1641523 |
%global goaltipaths github.com/cespare/xxhash/v2 |
9 |
|
|
|
10 |
pterjan |
1641411 |
%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 |
guillomovitch |
1756580 |
Release: %mkrel 1 |
20 |
pterjan |
1641411 |
Summary: A Go implementation of the 64-bit xxHash algorithm (XXH64) |
21 |
|
|
Group: Development/Other |
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 |
|
|
|