# Do not try to package empty debug_package %global debug_package %{nil} Name: forgejo-runner Version: 4.0.1 Release: 1%{?dist} Summary: A daemon for Forgejo instances that runs jobs for continuous integration License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-SA-4.0 AND ISC AND MIT URL: https://code.forgejo.org/forgejo/runner/archive/v%{version}.tar.gz Source0: runner-v%{version}.tar.gz Source1: runner-v%{version}-vendor.tar.gz Source3: config.yml BuildRequires: golang >= 1.21 %if 0%{?fedora} || 0%{?rhel} >= 9 BuildRequires: go-rpm-macros %endif Requires: openssl-libs Recommends: container-tools %description The Forgejo runner is a daemon that fetches work-flows to run from a Forgejo instance, executes them, sends back with the logs and ultimately reports its success or failure. %prep %setup -T -b 0 -a 1 -q -n runner %build export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS} -s -w" go build \ -trimpath \ -buildmode=pie \ -mod=vendor \ -modcacherw \ -ldflags "-linkmode=external -X gitea.com/gitea/act_runner/internal/pkg/ver.version=v%{version}" -o %{name} ./%{name} generate-config > config.dist.yml %install mkdir -p %{buildroot}%{_bindir} install -m 0755 %{name} %{buildroot}%{_bindir}/%{name} mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/config.yml install -m 0644 config.dist.yml %{buildroot}%{_sysconfdir}/%{name}/config.dist.yml %verifyscript %{_bindir}/forgejo-runner --version %files %doc RELEASE-NOTES.md README.md %license LICENSE vendor/modules.txt %{_bindir}/%{name} %dir %{_sysconfdir}/%{name} %{_sysconfdir}/%{name}/config.yml %{_sysconfdir}/%{name}/config.dist.yml %changelog * Fri Nov 01 2024 Builder - 4.0.1-1 - Update to 4.0.1 * Mon Aug 26 2024 Builder - 3.5.1-1 - Update to 3.5.1 * Fri Jun 07 2024 Builder - 3.5.0-1 - Update to 3.5.0 * Tue Apr 23 2024 Builder - 3.4.1-7 - Add openssl requires - Takes labels found in config.yml into account (5e51d8ed42) * Sun Apr 14 2024 Builder - 3.4.1-5 - Relax deps * Fri Apr 12 2024 Builder - 3.4.1-4 - Cache server disable as default config * Thu Apr 04 2024 Builder - 3.4.1-2 - Integration bug fixes * Wed Apr 03 2024 Builder - 3.4.1-1 - Initial build with vendored modules - Explicit bundled list