From 22139bfa249332a1a7c1411e2c8c8dd88ca2c597 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 9 Jun 2022 16:02:36 +0200 Subject: [PATCH] Build linux backend on s390 This was disabled due to the lack of libusb1 in 2010. However, that is not a dependency anymore, and while imobiledevice is missing the configuration will be picked up automatically. --- upower.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upower.spec b/upower.spec index 2ca89a9..6a59794 100644 --- a/upower.spec +++ b/upower.spec @@ -13,8 +13,10 @@ BuildRequires: sqlite-devel BuildRequires: git BuildRequires: gettext BuildRequires: libgudev1-devel +%define idevice disabled %ifnarch s390 s390x %if ! 0%{?rhel} +%define idevice enabled BuildRequires: libimobiledevice-devel %endif %endif @@ -55,12 +57,10 @@ Developer documentation for for libupower-glib. %build %meson \ + -Didevice=%{idevice} \ -Dman=true \ -Dgtk-doc=true \ - -Dintrospection=enabled \ -%ifarch s390 s390x - -Dos_backend=dummy -%endif + -Dintrospection=enabled %meson_build