--- /dev/null
+--- ../BUILD/gnome-tour-40.0/build-aux/cargo.sh.orig 2021-03-23 16:31:44.642007800 +0100
++++ ../BUILD/gnome-tour-40.0/build-aux/cargo.sh 2021-04-24 17:48:45.504234520 +0200
+@@ -2,19 +2,20 @@
+
+ export MESON_BUILD_ROOT="$1"
+ export MESON_SOURCE_ROOT="$2"
+-export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target
++export CARGO_TARGET_OPT="--target x86_64-unknown-linux-gnux32"
++export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target/x86_64-unknown-linux-gnux32
+ export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
+ FEATURES="$6"
+
+ if [ $4 = "Devel" ]
+ then
+ echo "DEBUG MODE"
+- cargo build --manifest-path \
++ cargo build $CARGO_TARGET_OPT --manifest-path \
+ "$MESON_SOURCE_ROOT"/Cargo.toml $FEATURES && \
+ cp "$CARGO_TARGET_DIR"/debug/$5 $3
+ else
+ echo "RELEASE MODE"
+- cargo build --manifest-path \
++ cargo build $CARGO_TARGET_OPT --manifest-path \
+ "$MESON_SOURCE_ROOT"/Cargo.toml $FEATURES --release && \
+ cp "$CARGO_TARGET_DIR"/release/$5 $3
+ fi
Group: X11/Applications
Source0: https://download.gnome.org/sources/gnome-tour/40/%{name}-%{version}.tar.xz
# Source0-md5: d5ca4c8a9b248017c4e75fa4722caad0
+Patch0: %{name}-x32.patch
URL: https://gitlab.gnome.org/GNOME/gnome-tour
BuildRequires: appstream-glib
BuildRequires: cargo
%prep
%setup -q
+%ifarch x32
+%patch0 -p1
+%endif
%build
%meson build