Skip to content

Commit

Permalink
improved spec file for 5.28.0 (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
danie-dejager authored May 7, 2024
1 parent c08cf14 commit a4e573e
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions gdu.spec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Name: gdu
Version: 5.27.0
Release: 1
Version: 5.28.0
Release: 2
Summary: Pretty fast disk usage analyzer written in Go

License: MIT
URL: https://github.com/dundee/gdu

Source0: https://github.com/dundee/gdu/archive/refs/tags/%{version}.tar.gz
Source0: https://github.com/dundee/gdu/archive/refs/tags/v%{version}.tar.gz

BuildRequires: golang
BuildRequires: systemd-rpm-macros
Expand All @@ -20,22 +20,21 @@ Pretty fast disk usage analyzer written in Go.
%global debug_package %{nil}

%prep
%autosetup -n %{name}
%autosetup -n %{name}-%{version}

%build
GO111MODULE=on CGO_ENABLED=1 go build \
GO111MODULE=on CGO_ENABLED=0 go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags \
-s -w \
-X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
"-s -w \
-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

%install
rm -rf $RPM_BUILD_ROOT
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
Expand All @@ -52,6 +51,13 @@ install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1
%{_mandir}/man1/gdu.1.gz

%changelog
* Sun Apr 21 2024 Danie de Jager - 5.28.0-1
- feat: delete/empty items in background by @dundee in #336
- feat: add --show-item-count (-C) option by @ramgp in #332
- feat: add --no-delete option by @ramgp in #333
- feat: ignore item by pressing I by @dundee in #345
- feat: delete directory items in parallel by @dundee in #340
- feat: add --sequential option for sequential scanning by @dundee in #322
* Sun Feb 18 2024 Danie de Jager - 5.27.0-1
- feat: export in interactive mode by @kadogo in #298
- feat: handle vim-style navigation in confirmation by @samihda in #283
Expand Down

0 comments on commit a4e573e

Please sign in to comment.