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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2133572 - (show annotations) (download)
Tue Dec 31 15:16:27 2024 UTC (6 months, 1 week ago) by wally
File size: 1054 byte(s)
- update RPM group to Development/Golang
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

  ViewVC Help
Powered by ViewVC 1.1.30