From dd33eb09d157c3fc10df534814d5addaa6712aeab43fd64dd98131c5f6d5b8c9 Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Mon, 2 Apr 2018 06:44:44 +0000 Subject: [PATCH] Accepting request 592544 from home:Guillaume_G:branches:openSUSE:Factory:ARM - Handle %arm, aarch64 and ppc* properly OBS-URL: https://build.opensuse.org/request/show/592544 OBS-URL: https://build.opensuse.org/package/show/hardware/rtl8812au?expand=0&rev=4 --- rtl8812au.changes | 5 +++++ rtl8812au.spec | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/rtl8812au.changes b/rtl8812au.changes index fc9a5d7..80dd90b 100644 --- a/rtl8812au.changes +++ b/rtl8812au.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 30 09:20:00 UTC 2018 - guillaume.gardet@opensuse.org + +- Handle %arm, aarch64 and ppc* properly + ------------------------------------------------------------------- Thu Mar 1 11:45:59 UTC 2018 - alarrosa@suse.com diff --git a/rtl8812au.spec b/rtl8812au.spec index e1ab485..523c66e 100644 --- a/rtl8812au.spec +++ b/rtl8812au.spec @@ -1,7 +1,7 @@ # # spec file for package rtl8812au # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,9 +20,9 @@ Name: rtl8812au Version: 5.2.20 Release: 0 Summary: Kernel driver for Realtek 802.11ac 8812au wifi cards -License: GPL-2.0 +License: GPL-2.0-only Group: System/Kernel -URL: https://github.com/gordboy/rtl8812au +Url: https://github.com/gordboy/rtl8812au Source0: %{name}-%{version}.tar.xz Source1: %{name}-preamble Source2: LICENSE @@ -69,6 +69,15 @@ cp "%{S:2}" source/ mkdir obj %build +%ifarch %arm +export ARCH=arm +%endif +%ifarch aarch64 +export ARCH=arm64 +%endif +%ifarch %ppc ppc64 ppc64le +export ARCH=powerpc +%endif for flavor in %{flavors_to_build} ; do cp -a source obj/$flavor pushd obj/$flavor