Group: Libraries
Source0: https://github.com/swaywm/wlroots/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: bc9dbfef37385dbe0f4fe129d2329be5
+Patch0: x32.patch
URL: https://github.com/swaywm/wlroots
BuildRequires: EGL-devel
BuildRequires: Mesa-libgbm-devel >= 17.1.0
%prep
%setup -q
+%ifarch x32
+%patch0 -p1
+%endif
%build
%meson build
--- /dev/null
+--- wlroots-0.12.0/util/log.c.orig 2020-11-08 15:01:44.000000000 +0100
++++ wlroots-0.12.0/util/log.c 2021-02-03 10:32:04.394433021 +0100
+@@ -47,7 +47,7 @@
+ clock_gettime(CLOCK_MONOTONIC, &ts);
+ timespec_sub(&ts, &ts, &start_time);
+
+- fprintf(stderr, "%02d:%02d:%02d.%03ld ", (int)(ts.tv_sec / 60 / 60),
++ fprintf(stderr, "%02d:%02d:%02d.%03lld ", (int)(ts.tv_sec / 60 / 60),
+ (int)(ts.tv_sec / 60 % 60), (int)(ts.tv_sec % 60),
+ ts.tv_nsec / 1000000);
+