diff options
author | daniejstriata <13314239+daniejstriata@users.noreply.github.com> | 2024-04-21 15:01:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 15:01:25 +0200 |
commit | 838ab6770a2c775c0c5fcc3fd0e14321fcba1db5 (patch) | |
tree | 83fda10104757dc6d7a5092c643e8a22251cdb85 | |
parent | f0beb805ea187d29b5bc63c2636dd8a8893c5f68 (diff) |
Update gdu.spec
-rw-r--r-- | gdu.spec | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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 |