gitlab-runner/gitlab-runner.spec

38 lines
1 KiB
RPMSpec
Raw Normal View History

2021-02-26 09:33:12 +03:00
%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
2025-02-18 08:15:48 +00:00
BuildRequires: bzip2
2021-02-26 09:33:12 +03:00
%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
2025-02-18 10:21:35 +00:00
export GOPROXY=https://proxy.golang.org,direct
2021-02-26 09:33:12 +03:00
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}