# Fedora review: # http://bugzilla.redhat.com/190367 Summary: Python bindings for KDE Name: PyKDE Version: 3.16.0 Release: 11%{?dist} License: GPLv2 URL: http://www.riverbankcomputing.co.uk/pykde/ Source0: http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-%{version}.tar.gz Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: PyKDE-3.16.0-konsolepart.patch # http://mats.imk.fraunhofer.de/pipermail/pykde/2006-November/014627.html Patch2: PyKDE-3.16.0-kmimetype.patch # http://mats.imk.fraunhofer.de/pipermail/pykde/2006-December/015025.html Patch3: PyKDE-3.16.0-python25.patch Patch4: http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-3.16.0-sip-4.7.patch BuildRequires: python-devel >= 2.3 %global python_ver %(%{__python} -c "import sys ; print sys.version[:3]") %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") BuildRequires: sip-devel >= 4.7 BuildRequires: PyQt-devel ## try to leave this unversioned, for now -- Rex Requires: PyQt #global pyqt_ver %(pyuic -version 2>&1 | cut -d' ' -f5) #if 0%{?pyqt_ver} > 2 #Requires: PyQt = %{pyqt_ver} #endif BuildRequires: kdelibs3-devel kdebase3 %global kdelibs_ver %((kde-config --version 2>/dev/null || echo KDE 3.5.8) | grep '^KDE' | cut -d' ' -f2 | cut -d'-' -f1) Requires: kdelibs3 >= %{kdelibs_ver} # for libkonsolepart.* Requires: kdebase3 %description These are the Python bindings for KDE. %package devel Summary: %{name} SIP files Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: sip-devel #Obsoletes: %{name}-docs < %{version}-%{release} Provides: %{name}-docs = %{version}-%{release} %description devel Sip files and documentation needed for developing with %{name} %prep %setup -q %{?snapshot:-n %{name}-snapshot%{snapshot}} %patch1 -p1 -b .konsolepart %patch2 -p1 -b .kmimetype %patch4 -p1 -b .sip-4.7 %build unset QTDIR || : ; source /etc/profile.d/qt.sh %{__python} configure.py -L %{_lib} -d %{python_sitearch} # smp broken, do the best we can make -k %{?_smp_mflags} || make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir} make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README THANKS %{_bindir}/* %{_libdir}/libkonsolepart.* %{python_sitearch}/* %files devel %defattr(-,root,root,-) %doc doc/* examples %{_datadir}/sip/* %changelog * Sat Nov 24 2007 Rex Dieter 3.16.0-11 - (Build)Requires: s/kdelibs/kdelibs3/, s/kdebase/kdebase3/ * Fri Nov 23 2007 Rex Dieter 3.16.0-9 - sip-4.7 patch (#396441) * Sat Aug 25 2007 Rex Dieter 3.16.0-7 - License: GPLv2 - respin (BuildID) * Thu Feb 15 2007 Rex Dieter 3.16.0-6 - BR: sip-devel >= 4.5.2 - patch for python-2.5 * Thu Nov 09 2006 Rex Dieter 3.16.0-5 - kmimetype patch - devel: Requires: sip-devel * Wed Nov 08 2006 Rex Dieter 3.16.0-3 - (unversioned) Requires: PyQt - rebuild for PyQt-3.17 (fc7+) * Wed Oct 04 2006 Rex Dieter 3.16.0-2 - respin * Mon Sep 25 2006 Rex Dieter 3.16.0-1 - 3.16.0 - no longer own %%_datadir/sip, sip-devel does now (#206633) * Thu Sep 07 2006 Rex Dieter 3.15.2-0.6.20060422 - fc6 respin * Fri Jul 21 2006 Rex Dieter 3.15.2-0.5.20060422 - %%doc AUTHORS COPYING - License: GPL * Fri May 12 2006 Rex Dieter 3.15.2-0.4.20060422 - drop sip-abi crud, rely (only) on Requires: PyQt * Fri Apr 28 2006 Rex Dieter 3.15.2-0.3.20060422 - fix busted Requires wrt sip-abi * Thu Apr 27 2006 Rex Dieter 3.15.2-0.2.20060422 - respin for sip-4.4.3 - use sip-abi, sip-abi-min * Wed Apr 19 2006 Rex Dieter 3.15.2-0.1.20060422 - 20060422 snapshot * Fri Apr 08 2005 Rex Dieter 3.11.4-0.1.20050316.kde - 20050316 snapshot * Tue Dec 21 2004 Rex Dieter 3.11.3-0.6.kde - Req: python-abi = %%python_ver * Wed Dec 15 2004 Rex Dieter 3.11.3-0.5.kde - rebuild against 3.3.2 - cleaner lib64 fix * Fri Oct 08 2004 Rex Dieter 3.11.3-0.4.kde - lib64 fixes (thanks Bryan O'Sullivan ) - kde-3.3.1 fixes - sip3: BR: sip-3.11.2 * Tue Sep 21 2004 Rex Dieter 3.11.3-0.3.kde - rebuild against sip-3.11/sip-4.1, PyKDE-3.13 * Tue Sep 7 2004 Rex Dieter 3.11.3-0.1 - -devel: include classref(-docs subpkg?), examples * Fri Aug 27 2004 Rex Dieter 3.11.3-0.fdr.1 - 3.11.3 * Tue Jul 20 2004 Rex Dieter 3.11.1-0.fdr.1 - use/Requires: %%{python_sitearch} * Mon Jul 06 2004 Rex Dieter 3.11.1-0.fdr.0 - 3.11.1 * Tue Jun 01 2004 Rex Dieter 3.11-0.fdr.0.1.rc1 - 3.11rc1 * Thu Dec 04 2003 Rex Dieter 3.8.0-0.fdr.0 - 3.8.0 * Wed Dec 03 2003 Rex Dieter 3.7.4-0.fdr.2 - cleanup - add Fedora Core support * Wed Sep 17 2003 Rex Dieter 3.7.4-0.fdr.1 - rebuild against newer sip/PyQT/kdelibs * Tue Aug 19 2003 Rex Dieter 3.7.4-0.fdr.0 - 3.7-4 * Mon Aug 11 2003 Rex Dieter 3.7.3-0.fdr.0 - 3.7-3 - fedora'ize * Wed Apr 30 2003 Rex Dieter 3.5-2-0.0 - NOTE: This version does *not* work with PyQt/sip v3.6. Guess we'll have to wait fo an updated/fixed version. - kde-redhat versioning. - NOTE: rh73 pkg built with/for python2.