SHA256
1
0
forked from pool/runc

Accepting request 421574 from home:jordimassaguerpla:branch:V:c:add_go_arches_in_prjconf

- add go_arches in project configuration: this way, we can use the
  same spec file but decide in the project configuration if to
  use gc-go or gcc-go for some archs.

OBS-URL: https://build.opensuse.org/request/show/421574
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/runc?expand=0&rev=17
This commit is contained in:
Christian Brauner 2016-08-24 12:34:21 +00:00 committed by Git OBS Bridge
parent a8cdc9e7c2
commit 2179b88ce1
2 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 24 12:27:57 UTC 2016 - jmassaguerpla@suse.com
- add go_arches in project configuration: this way, we can use the
same spec file but decide in the project configuration if to
use gc-go or gcc-go for some archs.
-------------------------------------------------------------------
Thu Aug 18 10:35:29 UTC 2016 - jmassaguerpla@suse.com

View File

@ -16,7 +16,23 @@
#
%define go_arches %ix86 x86_64 aarch64 ppc64le
# Check if go_arches is defined in the project configuration
# Otherwise, define it here
# In order to define it in the project configuration, you need to add
#
# %define go_arches %ix86 x86_64 aarch64
# Macros:
# %go_arches %ix86 x86_64 aarch64
# :Macros
#
# The Macros is the one that defines the go_arches variable to be used
# in the spec file.
# The "define" one is to help the specfile parser of the buildservice
# to see what packages are being built. You also want to define it here
# for keeping things consistent.
%{!?go_arches: %define go_arches %ix86 x86_64 aarch64 ppc64le}
%ifarch %go_arches
%define go_tool go
%else