Skip to content

Commit

Permalink
Backported redistributable logic to Origin specfile
Browse files Browse the repository at this point in the history
This back-ports downstream commit 25fa795.

Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Feb 20, 2017
1 parent 05377d4 commit ab709c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions origin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,17 @@
%global os_git_vars OS_GIT_VERSION='' OS_GIT_COMMIT='' OS_GIT_MAJOR='' OS_GIT_MINOR='' OS_GIT_TREE_STATE=''
}

%{!?make_redistributable:
%if 0%{?fedora} || 0%{?epel}
%global make_redistributable 0
%global need_redistributable_set 0
%else
# Due to library availability, redistributable builds only work on x86_64
%ifarch x86_64
%global make_redistributable 1
%global need_redistributable_set 1
%else
%global make_redistributable 0
%global need_redistributable_set 0
%endif
%endif
}
%{!?make_redistributable: %global make_redistributable %{need_redistributable_set}}

%if "%{dist}" == ".el7aos"
%global package_name atomic-openshift
Expand Down

0 comments on commit ab709c2

Please sign in to comment.