# Disable the debuginfo gather as find-debuginfo runs out of memory on the produced executable... %global debug_package %{nil} # Author: Vladimir Panteleev Summary: Sampling disk usage profiler (TUI) Name: btdu Version: 0.6.1 Release: 1%{?dist} License: GPLv2 Url: https://github.com/CyberShadow/btdu # Upstream tags are typically prefixed with a 'v'. If not, drop the 'v' below. Source: https://github.com/CyberShadow/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Build dependencies BuildRequires: dub BuildRequires: ldc BuildRequires: ncurses-devel %description btdu is a fast, sampling-based disk usage profiler with a text user interface. It scans directory trees and provides an interactive TUI to explore space usage. %prep %setup -q -n %{name}-%{version} %build # Build with dub using LDC in release mode; --verror fails on deprecations export DFLAGS="${DFLAGS:-} -O3 -release" dub build --compiler=ldc2 --build=release --verror --force # In case you want to build with GDC (do not forget to replace "ldc" with "gdc" in BuildRequires): # export DFLAGS="${DFLAGS:-} -O3 -Wno-deprecated" # dub build --compiler=gdc -b release-debug %install install -Dpm 0755 ./%{name} "%{buildroot}%{_bindir}/%{name}" # Man page install -Dpm 0644 btdu.1 "%{buildroot}%{_mandir}/man1/%{name}.1" %check # Basic self-test: run the freshly built binary from build dir ./%{name} -h | grep '%{version}' || true %files %license COPYING %doc README.md ARCHITECTURE.md CONCEPTS.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Mon Nov 03 2025 Dejan Lekić - 0.6.1-1 - Switch build to dub (no Makefile upstream); install man page; adjust BRs and files