mirror of
https://abf.rosa.ru/djam/gitlab-runner.git
synced 2025-02-23 08:22:47 +00:00
Imported from SRPM
This commit is contained in:
commit
e45ca2be5e
2 changed files with 38 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
gitlab-runner-v13.9.0.tar.bz2: 5243778bee9e41759c7053dd40b42b2a7e8f9e57
|
36
gitlab-runner.spec
Normal file
36
gitlab-runner.spec
Normal file
|
@ -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}
|
Loading…
Add table
Reference in a new issue