From a6a6e6cd1e4052b4dc7c8c589e46ac9df91a6200 Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Thu, 4 Apr 2019 06:57:41 +0000 Subject: [PATCH] Don't install polkit action for Flatpak builds While building the spice-gtk RPM to construct Flatpak, we came across files being installed in prefix that aren't supported by Flatpak at the moment. Polkit being one but also spice-client-glib-usb-acl-helper --- spice-gtk.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spice-gtk.spec b/spice-gtk.spec index ba49b12..eab968f 100644 --- a/spice-gtk.spec +++ b/spice-gtk.spec @@ -153,9 +153,11 @@ spicy-screenshot is a tool to capture screen-shots of a SPICE desktop. %files -n spice-glib -f %{name}.lang %{_libdir}/libspice-client-glib-2.0.so.* %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib +%if ! 0%{?flatpak} %dir %{_libexecdir}/spice-gtk-%{_arch}/ %attr(4755, root, root) %{_libexecdir}/spice-gtk-%{_arch}/spice-client-glib-usb-acl-helper %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy +%endif %files -n spice-glib-devel %{_libdir}/libspice-client-glib-2.0.so