Name: gitea-act_runner Version: 0.3.0 Release: 2%{?dist} Summary: Gitea act runner service. License: MIT Group: System Environment/Base URL: http://gitea.infomaas.com/rpms-fedora-free/gitea-act_runner Source0: https://dl.gitea.com/act_runner/%{version}/act_runner-%{version}-linux-amd64 Source1: https://dl.gitea.com/act_runner/%{version}/act_runner-%{version}-linux-arm64 Source10: gitea-act_runner@.service Source11: config.yaml Source12: gitea-act-runner-setup Source13: gitea-act-runner.sysusers Source14: gitea-runner-podman.service BuildRequires: systemd-rpm-macros Requires: shadow-utils Requires: podman %{?systemd_requires} ExclusiveArch: x86_64 aarch64 %description Act runner is a runner for Gitea based on Gitea fork of act. This package includes official binaries and runs act_runner natively on the host. %install %{__rm} -rf %{buildroot} install -d -m 755 %{buildroot}%{_bindir} %ifarch x86_64 install -m 755 %{SOURCE0} %{buildroot}%{_bindir}/gitea-act-runner %endif %ifarch aarch64 install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/gitea-act-runner %endif install -p -D -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/gitea-act_runner@.service install -p -D -m 644 %{SOURCE14} %{buildroot}%{_unitdir}/gitea-runner-podman.service install -p -D -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/gitea-act-runner.conf install -d -m 750 %{buildroot}%{_sysconfdir}/gitea/runners install -m 640 %{SOURCE11} %{buildroot}%{_sysconfdir}/gitea/runners/runner1.yaml install -m 755 %{SOURCE12} %{buildroot}%{_bindir}/gitea-act-runner-setup install -d -m 750 %{buildroot}%{_sharedstatedir}/gitea/runners %post %sysusers_create_package gitea-act-runner %{SOURCE13} if [ $1 -eq 1 ]; then loginctl enable-linger gitea-runner || : fi if ! grep -q "gitea-runner" /etc/subuid; then LAST_ID=$(tail -n 1 /etc/subuid | cut -d: -f2) [ -z "$LAST_ID" ] && START_ID=100000 || START_ID=$((LAST_ID + 65536)) echo "gitea-runner:$START_ID:65536" >> /etc/subuid echo "gitea-runner:$START_ID:65536" >> /etc/subgid fi %systemd_post gitea-act_runner@.service %systemd_post gitea-runner-podman.service %preun %systemd_preun gitea-act_runner@.service %systemd_preun gitea-runner-podman.service %postun %systemd_postun gitea-act_runner@.service %systemd_postun gitea-runner-podman.service %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/gitea-act-runner %{_bindir}/gitea-act-runner-setup %{_unitdir}/gitea-act_runner@.service %{_unitdir}/gitea-runner-podman.service %{_sysusersdir}/gitea-act-runner.conf %defattr(-,gitea-runner,gitea-runner,750) %dir %{_sysconfdir}/gitea %dir %{_sysconfdir}/gitea/runners %config(noreplace) %{_sysconfdir}/gitea/runners/runner1.yaml %changelog * Mon Mar 17 2025 Zoran Pericic - 0.3.0-2 - Add gitea-runner-podman.service for rootless Podman API socket