## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} Name: forgejo-runner Version: 12.1.2 Release: %autorelease 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/v%{version}.tar.gz Source1: forgejo-runner.sysusers.conf Patch0: 0000-forgejo_runner-unit_fix.patch BuildRequires: golang BuildRequires: systemd-rpm-macros Requires: git %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. %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} %post %systemd_post forgejo-runner.service %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 ## START: Generated by rpmautospec * Thu Dec 11 2025 Grillo del Mal - 12.1.2-1 - Initial commit ## END: Generated by rpmautospec