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.
This commit is contained in:
parent
a70efb72ac
commit
268231addc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user