1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
%global import_path gitea.com/gitea/act_runner Name: gitea-act Version: 0.1.6 Release: alt1 Summary: Act runner is a runner for Gitea based on Gitea fork of act. License: MIT Group: Other Url: https://%import_path Packager: Stepan Paksashvili <paksa@altlinux.org> Source: %name-%version.tar Source2: %name.service ExclusiveArch: %go_arches BuildRequires(pre): rpm-macros-systemd BuildRequires(pre): rpm-build-golang BuildRequires: golang Requires: docker-engine %description %summary. %prep %setup %build export BUILDDIR="$PWD/.build" export IMPORT_PATH="%import_path" export GOFLAGS="-mod=vendor" export LDFLAGS="-X gitea.com/gitea/act_runner/internal/pkg/ver.version=%version" export GOPATH="$BUILDDIR:%go_path" %golang_prepare %golang_build . %install export BUILDDIR="$PWD/.build" export IGNORE_SOURCE=1 mkdir -p %buildroot{%_bindir,%_unitdir,%_tmpfilesdir,%_sysconfdir/%name,%_sharedstatedir/%name} pushd $BUILDDIR/src/$IMPORT_PATH %golang_install popd mv %buildroot%_bindir/act_runner %buildroot%_bindir/%name rm -rf %buildroot%go_root %buildroot%_bindir/%name generate-config > %buildroot%_sysconfdir/%name/config.yaml install -m 0644 %SOURCE2 %buildroot%_unitdir/%name.service %pre groupadd -r -f _%name > /dev/null 2>&1 ||: useradd -r -g _%name -s /dev/null -c "gitea-act services" -M -d %_sharedstatedir/%name _%name > /dev/null 2>&1 ||: usermod -aG docker _%name %post %systemd_post %name.service %preun %systemd_preun %name.service %files %doc README.md LICENSE altlinux/altREADME.md %_unitdir/%name.service %attr(0770,root,_%name) %dir %_sysconfdir/%name %attr(0640,root,_%name) %config(noreplace) %_sysconfdir/%name/config.yaml %attr(0770,root,_%name) %dir %_sharedstatedir/%name %_bindir/%name %changelog * Thu May 04 2023 Stepan Paksashvili <paksa@altlinux.org> 0.1.6-alt1 - 0.1.6 * Tue May 02 2023 Stepan Paksashvili <paksa@altlinux.org> 0.1.5-alt1 - Initial build for ALT