summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaniejstriata <13314239+daniejstriata@users.noreply.github.com>2024-04-21 15:01:25 +0200
committerGitHub <noreply@github.com>2024-04-21 15:01:25 +0200
commit838ab6770a2c775c0c5fcc3fd0e14321fcba1db5 (patch)
tree83fda10104757dc6d7a5092c643e8a22251cdb85
parentf0beb805ea187d29b5bc63c2636dd8a8893c5f68 (diff)
Update gdu.spec
-rw-r--r--gdu.spec12
1 files changed, 1 insertions, 11 deletions
diff --git a/gdu.spec b/gdu.spec
index a856b5e..22cd958 100644
--- a/gdu.spec
+++ b/gdu.spec
@@ -23,27 +23,17 @@ Pretty fast disk usage analyzer written in Go.
%autosetup -n %{name}
%build
-GO111MODULE=on CGO_ENABLED=0 go build \
+GO111MODULE=on CGO_ENABLED=1 go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags \
-%if 0%{?fedora} || 0%{?amzn}
-"-linkmode=external \
-s -w \
-X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
-X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \
-X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)'" \
-o %{name} github.com/dundee/gdu/v5/cmd/gdu
-%endif
-%if 0%{?rhel}
-"-s -w \
--X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
--X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \
--X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)'" \
--o %{name} github.com/dundee/gdu/v5/cmd/gdu
-%endif
%install