Browse code

Allow users to pass in `make_redistributable` to the Origin spec file

In order to allow for users building the Origin RPMs on a RHEL system
to only build the native Linux binaries needed to use the RPMs for a
full install, we need to allow the user to pass in the `make_redis-
tributable` flag and only set it automatically if it is not passed in.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

Steve Kuznetsov authored on 2016/10/25 23:50:25
Showing 1 changed files
... ...
@@ -29,11 +29,13 @@
29 29
 %global os_git_vars OS_GIT_VERSION='' OS_GIT_COMMIT='' OS_GIT_MAJOR='' OS_GIT_MINOR='' OS_GIT_TREE_STATE=''
30 30
 }
31 31
 
32
+%{!?make_redistributable:
32 33
 %if 0%{?fedora} || 0%{?epel}
33 34
 %global make_redistributable 0
34 35
 %else
35 36
 %global make_redistributable 1
36 37
 %endif
38
+}
37 39
 
38 40
 %if "%{dist}" == ".el7aos"
39 41
 %global package_name atomic-openshift