/[packages]/cauldron/gdu/current/SPECS/gdu.spec
ViewVC logotype

Annotation of /cauldron/gdu/current/SPECS/gdu.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1856630 - (hide annotations) (download)
Sat May 7 18:06:55 2022 UTC (3 years, 2 months ago) by joequant
File size: 1085 byte(s)
add golang requires

1 joequant 1856617 Name: gdu
2     Version: 5.13.2
3     Release: 1%{?dist}
4 joequant 1856619 Summary: Pretty fast disk usage analyzer written in Go
5 joequant 1856617 Group: File tools
6     License: MIT
7    
8     Source0: %{name}-%{version}.tar.gz
9     Requires: bash
10 joequant 1856627 Requires: golang
11 joequant 1856630 Requires: golang-bin
12 joequant 1856617
13     Provides: %{name} = %{version}
14    
15     %description
16     Pretty fast disk usage analyzer written in Go.
17    
18     %prep
19     %autosetup
20    
21    
22     %build
23     # go build -v -o %{name}
24     GO111MODULE=on CGO_ENABLED=0 go build \
25     -trimpath \
26     -buildmode=pie \
27     -mod=readonly \
28     -modcacherw \
29     -ldflags \
30     "-s -w \
31     -X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
32     -X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \
33     -X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)'" \
34     -o %{name} github.com/dundee/gdu/v5/cmd/gdu
35    
36     %install
37     rm -rf $RPM_BUILD_ROOT
38     install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
39     # install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1
40     install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1
41    
42     %check
43    
44     %post
45    
46     %preun
47    
48     %files
49     %{_bindir}/gdu
50     %{_mandir}/man1/gdu.1*

  ViewVC Help
Powered by ViewVC 1.1.30