%define prefix %(kde-config --prefix) Name: PyKDE Version: 3.16.7 Release: 1mamba Summary: Python bindings for KDE Group: Development/Languages Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.riverbankcomputing.co.uk/pykde/ Source: http://www.riverbankcomputing.com/static/Downloads/PyKDE3/PyKDE-%{version}.tar.bz2 License: GPL BuildRequires: kdebase-devel BuildRequires: libGL-devel BuildRequires: libGLU-devel BuildRequires: libXmu-devel BuildRequires: PyQt BuildRequires: python-sip BuildRequires: swig ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: kdelibs-devel BuildRequires: libgcc BuildRequires: libpython-devel BuildRequires: libqt-devel BuildRequires: libstdc++6-devel BuildRequires: libX11-devel BuildRequires: libXext-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description PyKDE is a comprehensive set of Python bindings for KDE. %package devel Summary: Files needed to build other bindings based on KDE Group: Development/Languages Requires: %{name} = %{version}-%{release} %description devel Files needed to build other bindings for C++ classes that inherit from any of the KDE classes. %package examples Summary: Examples for PyKDE Group: Development/Languages Requires: %{name} = %{version}-%{release} %description examples Examples code demonstrating how to use the Python bindings for Qt. %prep %setup -q chmod -Rf a+rX,u+w,g-w,o-w . sed -i "-e 1s,#!.*/bin/env python,#!/usr/bin/python," contrib/kdepyuic %build . /etc/profile.d/libqt.sh export KDEDIR=%{prefix} python configure.py -c %{?_smp_mflags} -d %{python_sitearch} -n %{_kdelibdir} -v %{_datadir}/sip -k %{prefix} # Makefiles are broken, workaround make \ CXX="%{__cxx} -c -Wno-deprecated-declarations -pipe -fPIC" \ CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC -pipe -Wall -W -D_REENTRANT" \ LINK="%{__cxx}" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" . /etc/profile.d/libqt.sh %makeinstall DESTDIR=%{buildroot} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/kdepyuic #%{_libdir}/libkonsolepart.so ? %{python_sitearch}/pykdeconfig.py %{python_sitearch}/dcop.so %{python_sitearch}/dcopext.py %{python_sitearch}/dcopexport.py %{python_sitearch}/kabc.so %{python_sitearch}/kfile.so %{python_sitearch}/kdecore.so %{python_sitearch}/kdefx.so %{python_sitearch}/kdeprint.so %{python_sitearch}/kdeui.so %{python_sitearch}/khtml.so %{python_sitearch}/kio.so %{python_sitearch}/kmdi.so %{python_sitearch}/kparts.so %{python_sitearch}/kresources.so %{python_sitearch}/kspell.so %{python_sitearch}/kutils.so %doc AUTHORS COPYING ChangeLog %doc ChangeLog.2001-4 README NEWS %files devel %defattr(-,root,root) %{_datadir}/sip/dcop %{_datadir}/sip/kabc %{_datadir}/sip/kdecore %{_datadir}/sip/kdefx %{_datadir}/sip/kdeprint %{_datadir}/sip/kdeui %{_datadir}/sip/kfile %{_datadir}/sip/khtml %{_datadir}/sip/kio %{_datadir}/sip/kmdi %{_datadir}/sip/kparts %{_datadir}/sip/kresources %{_datadir}/sip/kspell %{_datadir}/sip/kutils %doc doc %files examples %defattr(-,root,root) %doc examples %changelog * Thu Apr 15 2010 Automatic Build System 3.16.7-1mamba - automatic update by autodist * Tue Jan 12 2010 Automatic Build System 3.16.6-1mamba - automatic update by autodist * Wed Aug 12 2009 Silvan Calarco 3.16.3-1mamba - update to 3.16.3 * Sat Dec 20 2008 Silvan Calarco 3.16.2-1mamba - automatic update by autodist * Sun Aug 10 2008 gil 3.16.1-1mamba - WARNING ** NOT TESTED **