/[packages]/cauldron/golang-github-cespare-xxhash/current/SPECS/golang-github-cespare-xxhash.spec
ViewVC logotype

Annotation of /cauldron/golang-github-cespare-xxhash/current/SPECS/golang-github-cespare-xxhash.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1641523 - (hide annotations) (download)
Sun Nov 1 20:47:01 2020 UTC (4 years, 8 months ago) by pterjan
File size: 1053 byte(s)
Add v2 altpath
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 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 pterjan 1641523 Release: %mkrel 2
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    

  ViewVC Help
Powered by ViewVC 1.1.30