From 1415157eb436f3fb0e281339679d3e7284941973 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 18 Jul 2014 13:45:30 -0500 Subject: [PATCH] epel still needs bundled xbkcommon --- qt5-qtbase.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index 3d231d6..ec8f240 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -112,15 +112,22 @@ BuildRequires: pkgconfig(NetworkManager) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libpulse) pkgconfig(libpulse-mainloop-glib) %if 0%{?fedora} > 20 +%global xkbcommon -system-xkbcommon BuildRequires: pkgconfig(xcb-xkb) >= 1.10 BuildRequires: pkgconfig(xkbcommon) >= 0.4.1 BuildRequires: pkgconfig(xkbcommon-x11) >= 0.4.1 -%else -# apply our patch to support the old versions of xcb and xkbcommon +%endif +%if 0%{?fedora} && 0%{?fedora} < 20 +# else apply our patch to support the old versions of xcb and xkbcommon %global old_xcb 1 -BuildRequires: pkgconfig(xcb-xkb) +%global xkbcommon -system-xkbcommon BuildRequires: pkgconfig(xkbcommon) %endif +%if ! 0%{?xkbcommon:1} +%global xkbcommon -qt-xkbcommon +Provides: bundled(libxkbcommon) = 0.4.1 +%endif +BuildRequires: pkgconfig(xcb-xkb) BuildRequires: pkgconfig(xkeyboard-config) %if 0%{?fedora} || 0%{?rhel} > 6 %define egl 1 @@ -295,7 +302,7 @@ sed -i -e 's|^\(QMAKE_STRIP.*=\).*$|\1|g' mkspecs/common/linux.conf # move some bundled libs to ensure they're not accidentally used pushd src/3rdparty mkdir UNUSED -mv freetype libjpeg libpng zlib xcb xkbcommon UNUSED/ +mv freetype libjpeg libpng zlib xcb UNUSED/ %if "%{?sqlite}" == "-system-sqlite" mv sqlite UNUSED/ %endif @@ -351,7 +358,7 @@ popd %{?pcre} \ %{?sqlite} \ %{?tds} \ - -system-xkbcommon \ + %{?xkbcommon} \ -system-zlib make %{?_smp_mflags}