%global debug_package %{nil} %global build_ldflags %{nil} Name: forgejo Version: 9.0.3 Release: 1%{?dist} Summary: Beyond coding, we forge License: GPL-3.0-or-later URL: https://codeberg.org/forgejo/forgejo Source0: %{URL}/releases/download/v%{version}/forgejo-src-%{version}.tar.gz BuildRequires: golang BuildRequires: nodejs BuildRequires: make Requires: git Requires: git-lfs %description Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job. %prep %setup -q -n forgejo-src-%{version} %build TAGS="bindata timetzdata" make build %install install -Dm755 gitea --target-directory %{buildroot}%{_bindir} mv %{buildroot}%{_bindir}/gitea %{buildroot}%{_bindir}/forgejo %files %license LICENSE %{_bindir}/forgejo