[PyKDE] Compiing pyKDE-3.11alpha5 on kde3.2.1
Hans-Peter Jansen
hpj at urpla.net
Fri Apr 23 20:02:01 BST 2004
Hi Joe,
On Friday 23 April 2004 15:51, Joachim Werner wrote:
> Hi!
>
> > Trying to compile pyKDE-3.11alpha5 I got this error message:
> > Generating the C++ source for the kdecore module...
> > sip: KPty is undefined
> > Error: Unable to create the C++ code.
>
> This should go away if you create a symlink from extra/kde320 to
> extra/kde321.
correct
> Here is how I have got things running on SUSE 9.1 final x86-64:
>
> - add the symlink to kde321
> - apply the little patch mentioned here:
>
> http://mats.imk.fraunhofer.de/pipermail/pykde/2004-April/007581.htm
>l - provide the path to the KDE lib directory (on 64bit systems it's
> /opt/kde3/lib64 instead of /opt/kde3/lib)
>
> There was one additional glitch on 64bit: make install used the
> wrong Python path, so I ended up with the PyKDE stuff in
> /usr/lib/python2.3/site-packages instead of
> /usr/lib64/python2.3/site-packages. I am still investigating where
> I can change that.
try using -d and have a look into the attached spec.
> I'm going to try to provide unofficial rpm builds on SUSE LINUX as
> time permits, starting from the first non-alpha release of PyKDE.
Me doing this job since some time. Let's try to sync our activities.
Welcome to the club.. (I'm a bit envious, because it's not even clear,
if I get a x86_64 version as a beta tester, and when it will arrive
8|)
> If anybody has got example code written in PyKDE or (even better) a
> working template that could be integrated into KDevelop I'd be
> happy to get it. Currently we only have a (rather simple) Qt
> project in KDevelop.
Well, our favourite development environment is Detlev Offenbachs
eric3, but feel free to provide one. We can take any support we get,
and this project is really worth it.
> Cheers
>
> Joe
Pete
-------------- next part --------------
# PyKDE.spec
# created by Hans-Peter Jansen <hpj at urpla.net>
Name: PyKDE
License: MIT
Group: Development/Languages
Summary: Python bindings for KDE
Requires: PyQt, kdelibs3
Version: 3.11
%define minor 10
Release: %{minor}
%define _suffix alpha5
URL: http://www.riverbankcomputing.co.uk/pykde/index.php
#Source0: %{name}-%{version}.tar.gz
Source0: %{name}-%{version}%{_suffix}.tar.gz
Source1: %{name}-readme.tar.gz
Source2: %{name}-docs.tar.gz
Patch0: %{name}-%{version}-configure.diff
Patch1: %{name}-%{version}-kfileshare-sip.diff
%define python_base %(echo `python -c "import sys; print (sys.prefix + '/%_lib/python' + sys.version[:3])"`)
%define python_site %{python_base}/site-packages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Packager: Hans-Peter Jansen <hpj at urpla.net>
Vendor: LISA GmbH, Berlin, Germany <http://lisa-gmbh.de>
#Distribution: SuSE Linux 9.1 (i586)
Distribution: SuSE Linux 9.1 (x86_64)
%description
These are the Python bindings for KDE. Included is "kdepyuic", a wrapper
around "pyuic" for KDE, and the PyKDE sip files needed for developing your
own PyKDE objects.
The documentation in placed in /usr/share/docs/packages/PyKDE.
Authors:
--------
Jim Bublitz
%prep
%setup -q -n %{name}-%{version}%{_suffix} -a1 -a2
%patch0 -p0
%patch1 -p0
#for i in $(find sip -name \*-kde320.diff); do
# o=$(echo $i | sed "s|kde320|kde321|g")
# ln -s $(basename $i) $o
#done
ln -s kde320 extra/kde321
%build
CATSPLIT=
[ -n "$SMP" ] && {
CATSPLIT=-j$SMP
export MAKEFLAGS=-j$SMP
}
export KDEDIR=/opt/kde3
export QTDIR=/usr/lib/qt3
export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS"
BUILDOPT="\
-d %{python_site} \
-n $KDEDIR/%_lib \
$CATSPLIT \
-c"
time python configure.py $BUILDOPT
DESTDIR=${RPM_BUILD_ROOT} time make
%install
DESTDIR=${RPM_BUILD_ROOT} make install
cp pykdeconfig.py ${RPM_BUILD_ROOT}%{python_site}
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/bin
cp postproc ${RPM_BUILD_ROOT}%{_prefix}/bin/
export SHARE=${RPM_BUILD_ROOT}%{_prefix}/share/sip
mkdir -p ${SHARE}
cp -a sip ${SHARE}/
export DOCDIR=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}
mkdir -p $DOCDIR
cp -a doc examples templates importTest.py $DOCDIR/
#cp -a tests $DOCDIR/
cp README* AUTHORS BUGS COPYING NEWS THANKS DETAILS ChangeLog $DOCDIR/
%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_prefix}/share/sip
#FIXME: naming
%{_prefix}/bin/postproc
%{python_site}/pykdeconfig.py
%{python_site}/dcop.py
%{python_site}/dcop.pyc
%{python_site}/libdcopcmodule.so
%{python_site}/kdecore.py
%{python_site}/kdecore.pyc
%{python_site}/libkdecorecmodule.so
%{python_site}/kdefx.py
%{python_site}/kdefx.pyc
%{python_site}/libkdefxcmodule.so
%{python_site}/kdeprint.py
%{python_site}/kdeprint.pyc
%{python_site}/libkdeprintcmodule.so
%{python_site}/kdesu.py
%{python_site}/kdesu.pyc
%{python_site}/libkdesucmodule.so
%{python_site}/kdeui.py
%{python_site}/kdeui.pyc
%{python_site}/libkdeuicmodule.so
%{python_site}/kfile.py
%{python_site}/kfile.pyc
%{python_site}/libkfilecmodule.so
%{python_site}/khtml.py
%{python_site}/khtml.pyc
%{python_site}/libkhtmlcmodule.so
%{python_site}/kio.py
%{python_site}/kio.pyc
%{python_site}/libkiocmodule.so
%{python_site}/kjs.py
%{python_site}/kjs.pyc
%{python_site}/libkjscmodule.so
%{python_site}/kparts.py
%{python_site}/kparts.pyc
%{python_site}/libkpartscmodule.so
%{python_site}/kspell.py
%{python_site}/kspell.pyc
%{python_site}/libkspellcmodule.so
%changelog -n PyKDE
* Fri Apr 23 2004 - hpj at urpla.net
- 3.11-alpha5
* Tue Mar 03 2004 - hpj at urpla.net
- 3.11-alpha3
* Sat Aug 09 2003 - hpj at urpla.net
- recompiled release 3.7-2
- improving SMP support
* Sun Apr 20 2003 - hpj at urpla.net
- recompiled for PyQt snapshot release 20030326
and PyKDE-3.5-2
* Sat Apr 19 2003 - hpj at urpla.net
- recompiled for PyQt snapshot release 20030326
* Sat Mar 01 2003 - hpj at urpla.net
- recompiled for PyQt snapshot release 20030227
* Mon Nov 25 2002 - hpj at urpla.net
- lower the requirements
- adapted to KDE 3.0.5
* Wed Oct 16 2002 - hpj at urpla.net
- adapted from Marc Schmitt
- make more SuSE lookalike
- join to one package
- correct sip/khtml_part.sip fix
More information about the PyQt
mailing list