Skip to content

Commit

Permalink
Update gdu.spec
Browse files Browse the repository at this point in the history
final fix or amzn builds.
  • Loading branch information
danie-dejager authored and dundee committed Feb 12, 2024
1 parent f0ff1f2 commit 7ccd987
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gdu.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: gdu
Version: 5.25.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Pretty fast disk usage analyzer written in Go

License: MIT
Expand All @@ -10,7 +10,7 @@ Source0: %{name}-%{version}.tar.gz

BuildRequires: golang
BuildRequires: systemd-rpm-macros
Requires: git
BuildRequires: git

Provides: %{name} = %{version}

Expand All @@ -30,17 +30,17 @@ GO111MODULE=on CGO_ENABLED=0 go build \
-mod=readonly \
-modcacherw \
-ldflags \
%if 0%{?fedora} || 0%{?amzn2023}
%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.Version=v%{version}' \
-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.Version=v%{version}' \
-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
Expand All @@ -63,7 +63,7 @@ install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1
%{_mandir}/man1/gdu.1.gz

%changelog
* Fri Dec 1 2023 Danie de Jager - 5.25.0-2
* Fri Dec 1 2023 Danie de Jager - 5.25.0-3
- Improved SPEC to build on AL2023.
* Tue Jun 6 2023 Danie de Jager - 5.25.0-1
- feat: use unicode block elements in size bar in #255
Expand Down

0 comments on commit 7ccd987

Please sign in to comment.