[PyKDE] PyKDE-3.7-4 Release

Hans-Peter Jansen hpj at urpla.net
Sun Aug 17 11:03:01 BST 2003

Hi Simon,

On Sunday 17 August 2003 01:13, Simon Edwards wrote:
> Hello,
> On Friday 15 August 2003 08:21, Jim Bublitz wrote:
> > 5. Pete's spec file is in the top level directory (not sure if
> > it's current); his kdepyuic is in contrib/
> I'm looking in the PyKDE3.7-4 tarball and I don't see a contrib dir.
> or am I all mixed up here.

Here's the spec. It's more about to show/test what build.py can do
for us nowadays, than an "official" one. It should do it though.

> cheers,

-------------- next part --------------
# PyKDE.spec
# created by Hans-Peter Jansen <hpj at urpla.net> 
# based on work from: Marc Schmitt <littlewisp at gmx.net>
Name: PyKDE
License: MIT
Group: Development/Languages
Summary: Python bindings for KDE
Requires: PyQt kdelibs3
Version: 3.7
%define minor 4
Release: 4.1.lisa
URL: http://www.riverbankcomputing.co.uk/pykde/index.php
Distribution: LISA GmbH, Berlin, Germany <http://lisa-gmbh.de>
Source0: %{name}-%{version}-%{minor}.tar.gz
#Patch0: %{name}-%{version}-%{minor}-build.diff
#Patch1: PyKDE-kdepyuic.diff
#Patch2: PyKDE-postproc.diff
#Patch3: PyKDE-readme.diff
#Patch99: fixSipInclude1.diff
Buildrequires: PyQt kdelibs3-devel python
%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

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.

   Jim Bublitz

Packaging by:
   Hans-Peter Jansen <hpj at urpla.net>

Provided by:
   LISA GmbH, Berlin <http://lisa-gmbh.de>

%setup -q -n %{name}-%{version}-%{minor}
#%patch0 -p0
#%patch1 -p0
#chmod 755 kdepyuic
#%patch2 -p0
#%patch3 -p0
#%patch99 -p0
#python fixSipInclude.py -v sip/*.sip

# define empty for single CPU builds
export SMP=2
#export SMP=
[ -n "$SMP" ] && CATSPLIT=-j$SMP
# parallel make
[ -n "$SMP" ] && export MAKEFLAGS=-j$SMP
export KDEDIR=/opt/kde3
export QTDIR=/usr/lib/qt3
time python build.py \
 -d ${RPM_BUILD_ROOT}%{python_site} \
 -l qt-mt \
 -m /usr/bin/make \
 -o $KDEDIR/%_lib \
 -p /usr/bin/sip \
 -r /usr/lib/qt3/%_lib \
 -t %{python_base} \
 -v /usr/share/sip/qt \

[ -n "$SMP" ] && {
    # first build primary modules in SMP mode, because build/qmake
    # isn't smart enough to track such dependancies at present
    time { cd dcop && make && cd ../kdecore && make && cd ../kdefx \
           && make && cd ../kdeui && make && cd .. && make; }
} || time make

# not really necessary
make install
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/bin
cp postproc ${RPM_BUILD_ROOT}%{_prefix}/bin/
#cp kdepyuic ${RPM_BUILD_ROOT}%{_prefix}/bin/
cp examples/kdepyuic.py ${RPM_BUILD_ROOT}%{_prefix}/bin/kdepyuic
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/bin/kdepyuic
export SHARE=${RPM_BUILD_ROOT}%{_prefix}/share/sip/kde
mkdir -p ${SHARE}
cp -a sip/*.sip ${SHARE}/
#mkdir -p ${SHARE}/kde30
#cp -a sip/kde30/*.sip ${SHARE}/kde30/
export DOCDIR=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}
mkdir -p $DOCDIR
cp -a doc $DOCDIR/
cp -a examples $DOCDIR/
cp -a tests $DOCDIR/
cp importTest.py $DOCDIR/

%dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/*


#FIXME: naming













%changelog -n PyKDE
* 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