From 268231addcb0c6950d752453aadbc01d2d63c1e4 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 17 Dec 2023 15:27:43 -0500 Subject: [PATCH] Fix flatpak build File dependencies must only be used when the location is fixed. However, perl is now built for flatpak consumption, meaning that pod2man in the flatpak buildroot is in /app/bin, not /usr/bin. Avoid any ambiguity by using the package name instead. Also, polkit has changed to enabled to default, so it now needs to be disabled for flatpak builds. --- pcsc-lite.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsc-lite.spec b/pcsc-lite.spec index 4234a52..6e70bb9 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -21,7 +21,7 @@ BuildRequires: doxygen BuildRequires: graphviz BuildRequires: systemd-devel BuildRequires: systemd-rpm-macros -BuildRequires: /usr/bin/pod2man +BuildRequires: perl-podlators %if %{with_polkit} BuildRequires: polkit-devel %endif @@ -95,8 +95,8 @@ done %build %configure \ --disable-static \ -%if %{with_polkit} - --enable-polkit \ +%if ! %{with_polkit} + --disable-polkit \ %endif --with-systemdsystemunitdir=%{_unitdir} \ --enable-usbdropdir=%{_libdir}/pcsc/drivers