mirror of
https://abf.rosa.ru/djam/gitlab-runner.git
synced 2025-02-23 08:22:47 +00:00
36 lines
980 B
RPMSpec
36 lines
980 B
RPMSpec
|
%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}
|