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:
21
fwupd.spec
21
fwupd.spec
@@ -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
|
||||
|
Reference in New Issue
Block a user