[kdebindings] use pyqt4_version_str for PyKDE4's PyQt4 runtime dep (may not strictly be required, but let's be on
Rex Dieter
rdieter at fedoraproject.org
Sun Oct 24 12:44:50 UTC 2010
commit c9e2549d6e08a0867cd7d56065e6b6742f026087
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Sat Oct 23 18:49:06 2010 -0500
use pyqt4_version_str for PyKDE4's PyQt4 runtime dep (may not strictly be required, but let's be on the safe side).
kdebindings.spec | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kdebindings.spec b/kdebindings.spec
index 7278b84..1afaff1 100644
--- a/kdebindings.spec
+++ b/kdebindings.spec
@@ -19,7 +19,7 @@
%define devel 1
%define pykde4_akonadi 1
-%define pyqt4_version 4.7
+%define pyqt4_version_min 4.7
%if 0%{?rhel}
%define falcon 0
@@ -73,7 +73,7 @@ BuildRequires: kdepimlibs-devel >= %{version}
# kdebindings does not support polkit-qt-1 yet
#BuildRequires: polkit-qt-devel
BuildRequires: python-devel
-BuildRequires: PyQt4-devel >= %{pyqt4_version}, sip-devel
+BuildRequires: PyQt4-devel >= %{pyqt4_version_min}, sip-devel
BuildRequires: qimageblitz-devel
%if 0%{?fedora}
BuildRequires: qscintilla-devel >= 2.4
@@ -114,7 +114,7 @@ KDE bindings to non-C++ languages
Group: Development/Languages
Summary: Python bindings for KDE4
Requires: kdelibs4 >= %{version}
-# FIXME/TODO: extract pyqt4_version_str from pyqtconfig.py -- Rex
+%global pyqt4_version %(python -c 'import sys, PyQt4.pyqtconfig; sys.stdout.write("%s\n" % (PyQt4.pyqtconfig._pkg_config["pyqt_version_str"]))')
Requires: PyQt4 >= %{pyqt4_version}
%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
%if ! 0%{?pykde4_akonadi}
More information about the scm-commits
mailing list