/[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 1856619 - (hide annotations) (download)
Sat May 7 17:52:15 2022 UTC (3 years, 2 months ago) by joequant
File size: 1035 byte(s)
fix spec

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    
11     Provides: %{name} = %{version}
12    
13     %description
14     Pretty fast disk usage analyzer written in Go.
15    
16     %prep
17     %autosetup
18    
19    
20     %build
21     # go build -v -o %{name}
22     GO111MODULE=on CGO_ENABLED=0 go build \
23     -trimpath \
24     -buildmode=pie \
25     -mod=readonly \
26     -modcacherw \
27     -ldflags \
28     "-s -w \
29     -X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
30     -X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \
31     -X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)'" \
32     -o %{name} github.com/dundee/gdu/v5/cmd/gdu
33    
34     %install
35     rm -rf $RPM_BUILD_ROOT
36     install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
37     # install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1
38     install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1
39    
40     %check
41    
42     %post
43    
44     %preun
45    
46     %files
47     %{_bindir}/gdu
48     %{_mandir}/man1/gdu.1*

  ViewVC Help
Powered by ViewVC 1.1.30