commit e45ca2be5ea21d2a36ae2a44a9327e4fa6a2b200 Author: Sergey Zhemoitel Date: Fri Feb 26 09:33:12 2021 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..3ca6a30 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + gitlab-runner-v13.9.0.tar.bz2: 5243778bee9e41759c7053dd40b42b2a7e8f9e57 diff --git a/gitlab-runner.spec b/gitlab-runner.spec new file mode 100644 index 0000000..ffbbc3b --- /dev/null +++ b/gitlab-runner.spec @@ -0,0 +1,36 @@ +%define debug %nil +%define debug_package %nil + +Name: gitlab-runner +Version: 13.9.0 +Release: 1 +Summary: GitLab runner +URL: https://gitlab.com/gitlab-org/gitlab-runner +Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 +License: MIT +Group: Development/Other +BuildRequires: go >= 1.11 +BuildRequires: git-core +BuildRequires: upx + + +%description +GitLab Runner is the open source project that is used to +run your CI/CD jobs and send the results back to GitLab + +%prep +%setup -qn %{name}-v%{version} + +%build +go build -o bin/%{name} -ldflags="-s -w -X gitlab.com/gitlab-org/%{name}/common.VERSION=%{version} \ + -X gitlab.com/gitlab-org/%{name}/common.NAME=%{name} \ + -X gitlab.com/gitlab-org/%{name}/common.BUILT=ROSA" + +upx bin/%{name} + +%install +install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} + +%files +%doc README.md LICENSE +%{_bindir}/%{name} \ No newline at end of file