[qt5-qtbase/epel7: 2/2] epel still needs bundled xbkcommon

Rex Dieter rdieter at fedoraproject.org
Fri Jul 18 18:45:32 UTC 2014


commit 1415157eb436f3fb0e281339679d3e7284941973
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Fri Jul 18 13:45:30 2014 -0500

    epel still needs bundled xbkcommon

 qt5-qtbase.spec |   17 ++++++++++++-----
 1 files 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}


More information about the scm-commits mailing list