Name: dinfo Version: 1.2.3.003 Release: 1%{?autorelease} Summary: A cool tool to get some informations from directory and files, with json, yaml and html output support License: GPL-3.0-or-later URL: https://github.com/SCSDC-co/DINFO Source0: %{name}-%{version}.tar.gz BuildRequires: dotnet-sdk-9.0 Requires: libicu %define debug_package %{nil} %global __os_install_post /usr/lib/rpm/brp-compress %{nil} %global _enable_debug_package 0 %description Dinfo is a C# tool that provides detailed information about a directory. It uses Spectre.Console to create a clean and colorful TUI, showing files, lines, size, permissions, and file type statistics. %prep %autosetup %build dotnet restore ./src/tui/dinfo.tui.csproj dotnet publish ./src/tui/dinfo.tui.csproj -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true -o dinfo_build %install mv dinfo_build/dinfo . chmod +x dinfo rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} cp dinfo $RPM_BUILD_ROOT/%{_bindir} %files %{_bindir}/dinfo %changelog %autochangelog