/[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 1856648 - (hide annotations) (download)
Sat May 7 18:48:34 2022 UTC (3 years, 2 months ago) by joequant
File size: 1190 byte(s)
add specs

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

  ViewVC Help
Powered by ViewVC 1.1.30