[packages/gnome-2048] - added x32 patch
qboosh
qboosh at pld-linux.org
Sun Aug 9 19:54:16 CEST 2026
commit 4cb810766b5732baf0e4a69822fed0a8a6b09d2e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Aug 9 19:54:16 2026 +0200
- added x32 patch
gnome-2048-x32.patch | 19 +++++++++++++++++++
gnome-2048.spec | 7 ++++++-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/gnome-2048.spec b/gnome-2048.spec
index 626736e..f4a60d1 100644
--- a/gnome-2048.spec
+++ b/gnome-2048.spec
@@ -11,6 +11,7 @@ Source0: https://download.gnome.org/sources/gnome-2048/50/%{name}-%{version}.tar
# cargo vendor-filterer --platform='*-unknown-linux-*' --tier=2
Source1: %{name}-vendor-%{version}.tar.xz
# Source1-md5: 865bda79838867acd0e8e3651c70b5d6
+Patch0: %{name}-x32.patch
URL: https://wiki.gnome.org/Apps/2048
BuildRequires: AppStream
BuildRequires: cargo
@@ -26,6 +27,7 @@ BuildRequires: rpmbuild(macros) >= 2.042
BuildRequires: rust
BuildRequires: tar >= 1:1.22
BuildRequires: vala >= 2:0.24.0
+BuildRequires: vala-libadwaita >= 1.8
BuildRequires: xz
BuildRequires: yelp-tools
Requires(post,postun): glib2 >= 1:2.80.0
@@ -34,7 +36,7 @@ Requires: glib2 >= 1:2.80.0
Requires: gtk4 >= 4.16.0
Requires: hicolor-icon-theme
Requires: libadwaita >= 1.8
-ExclusiveArch: %rust_arches
+ExclusiveArch: %{rust_arches}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -45,6 +47,9 @@ Klon popularnej gry 2048 przeznaczony dla środowiska GNOME.
%prep
%setup -q -a1
+%ifarch x32
+%patch -P0 -p1
+%endif
# use offline registry
CARGO_HOME="$(pwd)/.cargo"
diff --git a/gnome-2048-x32.patch b/gnome-2048-x32.patch
new file mode 100644
index 0000000..7dd36d5
--- /dev/null
+++ b/gnome-2048-x32.patch
@@ -0,0 +1,19 @@
+--- gnome-2048-50.2/src/meson.build.orig 2026-04-22 01:13:52.000000000 +0200
++++ gnome-2048-50.2/src/meson.build 2026-08-09 19:44:09.902074134 +0200
+@@ -1,6 +1,7 @@
+ cargo_options = [
+ '--manifest-path', meson.project_source_root() / 'Cargo.toml',
+ '--target-dir', meson.project_build_root() / 'src',
++ '--target', 'x86_64-unknown-linux-gnux32',
+ ]
+
+ if profile == 'debug'
+@@ -42,7 +43,7 @@ custom_target(
+ install_dir: bindir,
+ output: meson.project_name(),
+ command: [
+- 'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@',
++ 'cp', 'src' / 'x86_64-unknown-linux-gnux32' / rust_target / meson.project_name(), '@OUTPUT@',
+ ]
+ )
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnome-2048.git/commitdiff/4cb810766b5732baf0e4a69822fed0a8a6b09d2e
More information about the pld-cvs-commit
mailing list