Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Build with a different Go toolset on rhel-8 #9084

Merged
merged 1 commit into from
May 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tools/cockpit.spec
Original file line number Diff line number Diff line change
@@ -50,6 +50,12 @@
%define libssh_version 0.6.0
%endif

%if 0%{?rhel} >= 8
%global go_scl_prefix go-toolset-7-
%else
%global go_scl_prefix %{nil}
%endif

Name: cockpit
Summary: A user interface for Linux servers

@@ -340,6 +346,10 @@ rm %{buildroot}/usr/share/pixmaps/cockpit-sosreport.png
Cockpit runs in a browser and can manage your network of GNU/Linux
machines.

%if 0%{?rhel} >= 8
%enable_gotoolset7
%endif

%files
%{_docdir}/%{name}/AUTHORS
%{_docdir}/%{name}/COPYING
@@ -736,8 +746,8 @@ Requires: /usr/bin/kubectl
# Requires: Needs newer localization support
Requires: %{name}-bridge >= %{required_base}
Requires: %{name}-shell >= %{required_base}
BuildRequires: golang-bin
BuildRequires: golang-src
BuildRequires: %{go_scl_prefix}golang-bin
BuildRequires: %{go_scl_prefix}golang-src
Provides: cockpit-stub = %{version}-%{release}

%description kubernetes