File python-kde3.spec of Package python-kde3

#
# spec file for package python-kde3 (Version 3.16.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-kde3
BuildRequires:  kdebase3-devel kdelibs3-devel python-devel python-qt python-sip
License:        LGPL v2.1 or later
Group:          Development/Libraries/Python
Summary:        Python Bindings for KDE
Requires:       python-qt >= %( echo `rpm -q --queryformat '%{VERSION}' python-qt`)
Requires:       kdebase3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdebase3`)
Version:        3.16.0
Release:        73
Provides:       PyKDE = %{version}
Provides:       kdebindings3-python  = %{version}
Obsoletes:      kdebindings3-python <= %{version}
Url:            http://www.riverbankcomputing.co.uk/pykde/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        PyKDE-%{version}.tar.bz2
Patch0:         symlink-destdir.patch
Patch1:         no-ldconfig.patch
Patch3:         PyKDE-3.16.0-sip-4.7.patch
%py_requires

%description
Needed libraries for writing applications in Python for Qt and KDE.



Authors:
--------
    The KDE Team <kde@kde.org>

%package doc
Summary:        Python Bindings for KDE
Group:          Development/Libraries/Python
Requires:       python-kde3 = %{version}

%description doc
Needed libraries for writing applications in Python for Qt and KDE.



Authors:
--------
    The KDE Team <kde@kde.org>

%package examples
Summary:        Python Bindings for KDE
Group:          Development/Libraries/Python
Requires:       python-kde3 = %{version}

%description examples
Needed libraries for writing applications in Python for Qt and KDE.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n PyKDE-%{version}
%patch0 -p1
%patch1 -p1
%patch3 -p1

%build
export CXXFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS"
python configure.py -i
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README THANKS
/opt/kde3/%{_lib}/libkonsolepart.so
/usr/bin/kdepyuic
%{py_sitedir}/dcop.so
%{py_sitedir}/dcopexport.py
%{py_sitedir}/dcopext.py
%{py_sitedir}/kabc.so
%{py_sitedir}/kdecore.so
%{py_sitedir}/kdefx.so
%{py_sitedir}/kdeprint.so
%{py_sitedir}/kdeui.so
%{py_sitedir}/kfile.so
%{py_sitedir}/khtml.so
%{py_sitedir}/kio.so
%{py_sitedir}/kmdi.so
%{py_sitedir}/kparts.so
%{py_sitedir}/kresources.so
%{py_sitedir}/kspell.so
%{py_sitedir}/kutils.so
%{py_sitedir}/pykdeconfig.py
%{_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

%files doc
%defattr(-,root,root)
%doc doc/*

%files examples
%defattr(-,root,root)
%doc examples/*

%changelog
* Mon Jan 28 2008 dmueller@suse.de
- fix python requires
* Sun Aug 19 2007 ro@suse.de
- fix requires for doc and examples package
* Sun Aug 19 2007 ro@suse.de
- added provides obsoletes for kdebindings3-python
- use "-i" to compile individual files
  "-c" will take over 5 hours
* Fri Aug 17 2007 dmueller@suse.de
- build Python KDE3 bindings separately (#300041)
openSUSE Build Service is sponsored by