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 Wed Jun 03 15:32:46 UTC 2020 - dimstar@opensuse.org

View File

@ -17,16 +17,35 @@
# needssslcertforbuild # 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 %ifarch %{ix86} x86_64 aarch64
%bcond_without efi_fw_update %bcond_without efi_fw_update
%else %else
%bcond_with efi_fw_update %bcond_with efi_fw_update
%endif %endif
%if 0%{?is_opensuse} %if 0%{?build_openSUSE}
%global efidir opensuse %global efidir opensuse
%else %else
%global efidir sles %global efidir sles
%endif %endif
Name: fwupd Name: fwupd
Version: 1.4.2 Version: 1.4.2
Release: 0 Release: 0