SHA256
1
0
forked from pool/fwupd

Accepting request 822889 from home:yfjiang:branches:Base:System

- Build the package separately for openSUSE and SLE using
  _multibuild (jsc#SLE-11744).

OBS-URL: https://build.opensuse.org/request/show/822889
OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=73
This commit is contained in:
Marcus Meissner 2020-07-27 05:56:09 +00:00 committed by Git OBS Bridge
parent 2e5f94c3c6
commit 9f04dce2a1
3 changed files with 30 additions and 1 deletions

4
_multibuild Normal file
View File

@ -0,0 +1,4 @@
<multibuild>
<package>openSUSE</package>
<package>SLE</package>
</multibuild>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 24 06:52:18 UTC 2020 - Yifan Jiang <yfjiang@suse.com>
- Build the package separately for openSUSE and SLE using
_multibuild (jsc#SLE-11744).
-------------------------------------------------------------------
Wed Jun 03 15:32:46 UTC 2020 - dimstar@opensuse.org

View File

@ -17,16 +17,35 @@
# needssslcertforbuild
%define flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == ""
ExclusiveArch: %{nil}
%else
%define branding_name %{flavor}
%if "%{flavor}" == "SLE"
%define build_SLE 1
%else
%define build_openSUSE 1
%endif
%endif
%if (0%{?build_SLE} && 0%{?is_opensuse}) || (0%{?build_openSUSE} && ! 0%{?is_opensuse})
# Don't build SLE branding on openSUSE and vice-versa
ExclusiveArch: %{nil}
%endif
%ifarch %{ix86} x86_64 aarch64
%bcond_without efi_fw_update
%else
%bcond_with efi_fw_update
%endif
%if 0%{?is_opensuse}
%if 0%{?build_openSUSE}
%global efidir opensuse
%else
%global efidir sles
%endif
Name: fwupd
Version: 1.4.2
Release: 0