%global debug_package %{nil} Name: forgejo-runner Version: 12.5.2 Release: 1 Summary: A daemon that connects to a Forgejo instance and runs jobs for continuous integration License: GPL-3.0-or-later URL: https://code.forgejo.org/forgejo/runner/ Source0: https://code.forgejo.org/forgejo/runner/archive/refs/tags/runner-v%{version}.tar.gz Source1: forgejo-runner.sysusers.conf Patch0: 0000-forgejo_runner-unit_fix.patch BuildRequires: golang BuildRequires: systemd-rpm-macros Requires: podman %description Forgejo Actions provides continuous integration driven from the files found in the .forgejo/workflows directory of a repository. Note that Forgejo does not run the jobs, it relies on the Forgejo Runner to do so. It needs to be installed separately. For more information check out: Administrator Guide: https://forgejo.org/docs/next/admin/actions/ User guide: https://forgejo.org/docs/next/user/actions/overview/ %prep %setup -q -n runner %autopatch -p1 %build export GO_LDFLAGS=" \ -X \"main.Tags=%{gotags}\" \ -X \"code.forgejo.org/forgejo/runner/v12/internal/pkg/ver.version=v%{version}\" \ " go build -ldflags "${GO_LDFLAGS}" -buildmode=pie -o ./bin/forgejo-runner ./bin/forgejo-runner generate-config > config.yml %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_sysusersdir} mkdir -p %{buildroot}%{_sysconfdir}/forgejo-runner/ mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sharedstatedir}/runner/ install -m 755 bin/forgejo-runner %{buildroot}%{_bindir}/forgejo-runner install -m 644 config.yml %{buildroot}%{_sysconfdir}/forgejo-runner/config.yml install -m 644 %{S:1} %{buildroot}%{_sysusersdir}/forgejo-runner.conf install -m 644 contrib/forgejo-runner.service %{buildroot}%{_unitdir}/forgejo-runner.service %pre %sysusers_create_compat %{S:1} loginctl enable-linger runner %post %systemd_post forgejo-runner.service systemctl --user -M runner@ enable --now podman.socket %preun %systemd_preun forgejo-runner.service %postun %systemd_postun_with_restart forgejo-runner.service %files %license LICENSE %doc README.md %attr(755, root, root) %{_bindir}/forgejo-runner %config(noreplace) %attr(644, root, root) %{_sysconfdir}/forgejo-runner/config.yml %config(noreplace) %attr(755, runner, runner) %{_sharedstatedir}/runner/ %{_sysusersdir}/forgejo-runner.conf %{_unitdir}/forgejo-runner.service %changelog * Fri Jan 16 2026 Patrick Laimbock - 12.5.2-1 - update to version 12.5.2 * Fri Jan 09 2026 Patrick Laimbock - 12.5.0-1 - update to version 12.5.0 * Thu Dec 11 2025 Grillo del Mal - 12.1.2-1 - Initial commit