mirror of
https://abf.rosa.ru/djam/gitlab-runner.git
synced 2025-02-22 18:12:57 +00:00
38 lines
No EOL
1 KiB
RPMSpec
38 lines
No EOL
1 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: gitlab-runner
|
|
Version: 17.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
|
|
BuildRequires: bzip2
|
|
|
|
|
|
%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
|
|
export GOPROXY=https://proxy.golang.org,direct
|
|
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} |