From f9f93fc29ce3d3d12b3c2d2d32693715a3b8a57a Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Wed, 19 Feb 2014 14:01:40 +0100 Subject: [PATCH] libxkbfile should not try to build into a pure wayland platform. Signed-off-by: Ronan Le Martret Change-Id: Icf00646146b4e9733112544145ead038773e78d9 --- packaging/libxkbfile.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packaging/libxkbfile.spec b/packaging/libxkbfile.spec index 4e2d08d..56576cd 100644 --- a/packaging/libxkbfile.spec +++ b/packaging/libxkbfile.spec @@ -1,3 +1,5 @@ +%bcond_with x + Name: libxkbfile Version: 1.0.8 Release: 1 @@ -11,6 +13,10 @@ BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xorg-macros) BuildRequires: pkgconfig(xproto) +%if !%{with x} +ExclusiveArch: +%endif + %description X.Org X11 libxkbfile runtime library. @@ -30,7 +36,7 @@ cp %{SOURCE1001} . # FIXME: We use -fno-strict-aliasing, to work around the following bug: # maprules.c:1373: warning: dereferencing type-punned pointer will break strict-aliasing rules) export CFLAGS="${CFLAGS} %{optflags} -fno-strict-aliasing" -%configure --disable-static +%configure --disable-static make %{?_smp_mflags} %install @@ -46,7 +52,7 @@ make %{?_smp_mflags} %files %manifest %{name}.manifest %defattr(-,root,root,-) -%license COPYING +%license COPYING %{_libdir}/libxkbfile.so.1 %{_libdir}/libxkbfile.so.1.0.2 -- 2.7.4