File python-kde4.spec of Package python-kde4

#
# spec file for package python-kde4
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-kde4
Version:        4.8.4
Release:        0
Summary:        Python bindings for KDE 4
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Url:            https://projects.kde.org/projects/kde/kdebindings/pykde4
Source0:        pykde4-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libjasper-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  okular-devel
BuildRequires:  python-qt4-devel
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%kde4_runtime_requires
%kde4_akonadi_requires

%description
Python KDE bindings using PyQt4 SIP technology.

%package devel
Summary:        Development files of python-kde4
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}
Requires:       python-qt4-devel

%description devel
This package contains development files for the Python bindings for KDE4.

%prep
%setup -q -n pykde4-%{version}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  %fdupes -s %{buildroot}%{_datadir}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{py_sitedir}/PyKDE4
%exclude %{_kde4_appsdir}/pykde4/examples
%{_kde4_appsdir}/pykde4
%{_kde4_modulesdir}/kpythonpluginfactory.so
%{_kde4_bindir}/pykdeuic4
%{py_sitedir}/PyQt4/uic/widget-plugins
%{py_sitedir}/PyQt4/uic/pykdeuic4.*

%files devel
%defattr(-,root,root)
%{_datadir}/sip/PyKDE4
%{_kde4_appsdir}/pykde4/examples

%changelog
openSUSE Build Service is sponsored by