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.
This commit is contained in:
parent
f2c45198b5
commit
e244ab2c08
|
@ -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 <swt@techie.net> - 2.4.2-2
|
||||
|
|
Loading…
Reference in New Issue