Accepting request 643726 from home:Guillaume_G:branches:system:install:head
- Handle aarch64 and ppc64/ppc64le repos OBS-URL: https://build.opensuse.org/request/show/643726 OBS-URL: https://build.opensuse.org/package/show/system:install:head/installation-images?expand=0&rev=1166
This commit is contained in:
parent
ed03738bf8
commit
9c1928c13f
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 22 13:35:04 UTC 2018 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Handle aarch64 and ppc64/ppc64le repos
|
||||
|
||||
--------------------------------------------------------------------
|
||||
Fri Oct 19 13:07:45 UTC 2018 - snwint@suse.de
|
||||
|
||||
|
@ -34,6 +34,14 @@ ExclusiveArch: do_not_build
|
||||
%bcond_with xen
|
||||
%bcond_with xenkmp
|
||||
|
||||
# === Repo arch may differ from OBS build arch ===
|
||||
|
||||
%define the_arch %{_target_cpu}
|
||||
%ifarch ppc64 ppc64le
|
||||
%define the_arch ppc
|
||||
%endif
|
||||
|
||||
|
||||
# === sort out which flavor to build ===
|
||||
|
||||
%if "%flavor" == "openSUSE"
|
||||
@ -44,12 +52,20 @@ ExclusiveArch: do_not_build
|
||||
%if "%{the_version}" == ""
|
||||
%error "bad version string"
|
||||
%endif
|
||||
%ifarch aarch64 ppc64 ppc64le
|
||||
%define net_repo http://download.opensuse.org/ports/%{the_arch}/distribution/leap/%{the_version}/repo/oss/
|
||||
%else
|
||||
%define net_repo http://download.opensuse.org/distribution/leap/%{the_version}/repo/oss
|
||||
%endif
|
||||
%else
|
||||
%ifarch aarch64 ppc64 ppc64le
|
||||
%define net_repo http://download.opensuse.org/ports/%{the_arch}/tumbleweed/repo/oss/
|
||||
%else
|
||||
%define net_repo http://download.opensuse.org/tumbleweed/repo/oss
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%flavor" == "Kubic"
|
||||
# don't build on Leap for now
|
||||
|
Loading…
x
Reference in New Issue
Block a user