Name: superfile Version: 1.1.5 Release: %autorelease Summary: Pretty fancy and modern terminal file manager License: MIT URL: https://superfile.netlify.app/ Source0: https://github.com/yorukot/superfile/archive/refs/heads/main.zip BuildRequires: golang BuildRequires: git BuildRequires: tree %description Pretty fancy and modern terminal file manager %prep # %setup -q -n %{name} -c -a 0 rm -rf superfile gzip -q -d %{SOURCE0} cd .. tree %global _missing_build_ids_terminate_build 0 %define debug_package %{nil} %build cd .. tree cd ../SOURCES/%{name}-main # ./build.sh # CGO_ENABLED=1 go build -o ./bin/spf CGO_ENABLED=1 go build -o ./bin/spf -ldflags=-linkmode=external %install mkdir -p %{buildroot}/usr/bin cd ../SOURCES%{name}-main cp ./bin/spf %{buildroot}/usr/bin %files /usr/bin/spf %changelog %autochangelog