[PyKDE] add OBS sed hack to fix build with SIP >= 4.15
Kevin Kofler
kkofler at fedoraproject.org
Thu Sep 4 23:36:45 UTC 2014
commit bbaeb115363d16935bbc1e85d4835854f010f6e1
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Fri Sep 5 01:36:31 2014 +0200
add OBS sed hack to fix build with SIP >= 4.15
* Thu Sep 04 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> - 3.16.7-4
- add OBS sed hack to fix build with SIP >= 4.15
PyKDE.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/PyKDE.spec b/PyKDE.spec
index 411570b..d1fe86d 100644
--- a/PyKDE.spec
+++ b/PyKDE.spec
@@ -13,7 +13,7 @@ BuildRequires: libutempter-devel
Summary: Python bindings for KDE3
Name: PyKDE
Version: 3.16.7
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2
URL: http://www.riverbankcomputing.com/software/pykde/intro
@@ -84,6 +84,13 @@ unset QTDIR || : ; source /etc/profile.d/qt.sh
-d %{python_sitearch} \
-i
+# hack to fix build with SIP >= 4.15
+# from https://build.opensuse.org/request/show/238556
+sed -i 's|return KFileIconView::selectionMode()|return KFileIconView::KFileView::selectionMode()|g' kfile/sipkfileKFileIconView.cpp
+sed -i 's|KFileIconView::clear();|KFileIconView::KFileView::clear();|g' kfile/sipkfileKFileIconView.cpp
+sed -i 's|return KFileDetailView::selectionMode()|return KFileDetailView::KFileView::selectionMode()|g' kfile/sipkfileKFileDetailView.cpp
+sed -i 's|KFileDetailView::clear();|KFileDetailView::KFileView::clear();|g' kfile/sipkfileKFileDetailView.cpp
+
make %{?_smp_mflags}
@@ -111,6 +118,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Sep 04 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> - 3.16.7-4
+- add OBS sed hack to fix build with SIP >= 4.15
+
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.16.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
More information about the scm-commits
mailing list