From e244ab2c08ee13de732a60a8525d3cb7e2e9b779 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 24 Oct 2022 17:58:39 +0200 Subject: [PATCH] Don't ship udev rules for flatpak builds Work around flatpak module build FTBFS by dropping udev rules. They are only used when installed on the host, not in flatpak containers so we can get rid of an unneccesary file at the same time. --- prusa-slicer.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prusa-slicer.spec b/prusa-slicer.spec index 024fb16..2ce7834 100644 --- a/prusa-slicer.spec +++ b/prusa-slicer.spec @@ -359,6 +359,8 @@ find %buildroot%_datadir/PrusaSlicer/localization -type d | sed ' # remove the flatpak data on non flatpak builds %if 0%{?flatpak} rm -rf %buildroot%_datadir/PrusaSlicer/data/ +# Remove udev rules that aren't needed for flatpak builds +rm -f %buildroot%_prefix/lib/udev/rules.d/90-3dconnexion.rules %endif %check @@ -385,8 +387,8 @@ desktop-file-validate %buildroot%_datadir/applications/PrusaGcodeviewer.desktop %_datadir/PrusaSlicer/{icons,models,profiles,shaders,shapes,udev,applications}/ %else %_datadir/PrusaSlicer/{icons,models,profiles,shaders,shapes,udev,applications,data}/ -%endif %_udevrulesdir/90-3dconnexion.rules +%endif %changelog * Thu Aug 04 2022 Scott Talbert - 2.4.2-2