Accepting request 831122 from science
- enforce GDK_BACKEND=x11 by indroducing the same wrapper as Fedora gh#prusa3d/PrusaSlicer#4691 OBS-URL: https://build.opensuse.org/request/show/831122 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/PrusaSlicer?expand=0&rev=6
This commit is contained in:
commit
c49033b1e1
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 1 11:46:30 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- enforce GDK_BACKEND=x11 by indroducing the same wrapper as Fedora
|
||||||
|
gh#prusa3d/PrusaSlicer#4691
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 20 15:50:07 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Thu Aug 20 15:50:07 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ It also works with Mach3, LinuxCNC and Machinekit controllers.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-version_%{version}
|
%setup -q -n %{name}-version_%{version}
|
||||||
sed -i 's/UNKNOWN/OpenSUSE/' version.inc
|
sed -i 's/UNKNOWN/%{release}-%{?is_opensuse:open}SUSE-%{suse_version}/' version.inc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# The build process really acquires that much memory per job. We are
|
# The build process really acquires that much memory per job. We are
|
||||||
@ -85,6 +85,17 @@ sed -i 's/UNKNOWN/OpenSUSE/' version.inc
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
# https://github.com/prusa3d/PrusaSlicer/issues/4691
|
||||||
|
# Since the binary segfaults under Wayland, we have to wrap it.
|
||||||
|
mv %{buildroot}%{_bindir}/prusa-slicer %{buildroot}%{_bindir}/prusa-slicer.wrapped
|
||||||
|
cat >> %{buildroot}%{_bindir}/prusa-slicer <<'END'
|
||||||
|
#!/bin/sh
|
||||||
|
export GDK_BACKEND=x11
|
||||||
|
exec %{_bindir}/prusa-slicer.wrapped "$@"
|
||||||
|
END
|
||||||
|
chmod 755 %{buildroot}%{_bindir}/prusa-slicer
|
||||||
|
|
||||||
for res in 32 128 192; do
|
for res in 32 128 192; do
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/
|
||||||
ln -sr %{buildroot}%{_datadir}/%{name}/icons/%{name}_${res}px.png \
|
ln -sr %{buildroot}%{_datadir}/%{name}/icons/%{name}_${res}px.png \
|
||||||
@ -137,6 +148,7 @@ find %{buildroot}%{_datadir}/%{name}/localization -type d | sed '
|
|||||||
|
|
||||||
%files -f lang-files
|
%files -f lang-files
|
||||||
%{_bindir}/prusa-slicer
|
%{_bindir}/prusa-slicer
|
||||||
|
%{_bindir}/prusa-slicer.wrapped
|
||||||
%dir %{_datadir}/%{name}/
|
%dir %{_datadir}/%{name}/
|
||||||
%{_datadir}/%{name}/{icons,models,profiles,shaders,udev}/
|
%{_datadir}/%{name}/{icons,models,profiles,shaders,udev}/
|
||||||
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
||||||
|
Loading…
x
Reference in New Issue
Block a user