%define pythonsip_ver %(sip -V) Name: PyKDE4 Version: 4.7.4 Release: 1mamba Summary: Python bindings for KDE4 Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: http://www.kde.org Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/pykde4-%{version}.tar.bz2 Patch0: %{name}-4.7.2-sip_phonon_mrl.patch Patch1: %{name}-4.7.4-arm-qreal_double.patch License: GPL BuildRequires: cmake ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: kdelibs-devel BuildRequires: kdepimlibs-devel BuildRequires: kde-workspace-devel BuildRequires: libgcc BuildRequires: libphonon-devel BuildRequires: libpython-devel BuildRequires: libqt4-devel BuildRequires: libsoprano-devel BuildRequires: libstdc++6-devel BuildRequires: PyQt4-devel BuildRequires: python-sip-devel ## AUTOBUILDREQ-END Requires: kde-workspace Requires: PyQt4 Requires: python-sip = %{pythonsip_ver} Provides: pykde4 = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Python bindings for the K Desktop Environment. %package devel Summary: Files needed to build PyKDE4-based applications Group: Development/Applications Requires: PyKDE4 = %{?epoch:%epoch:}%{version}-%{release} Provides: pykde4-devel = %{?epoch:%epoch:}%{version}-%{release} %description devel Files needed to build PyKDE4-based applications. %prep %setup -q -n pykde4-%{version} %patch -p1 %patch1 -p3 %build %cmake_kde4 -d build \ -DPYTHON_SITE_PACKAGES_INSTALL_DIR:PATH=%{python_sitelib} %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{python_sitelib}/PyKDE4/ %{python_sitelib}/PyQt4/uic/widget-plugins/kde4.py* %{_kde4_libdir}/kde4/kpythonpluginfactory.so %doc AUTHORS COPYING COPYING.LESSER %files devel %defattr(-,root,root) %{_kde4_bindir}/pykdeuic4 %{_kde4_datadir}/pykde4/examples/ %{python_sitelib}/PyQt4/uic/pykdeuic4.py* %{_datadir}/sip/PyKDE4/ %doc NEWS README THANKS %changelog * Mon Feb 20 2012 Silvan Calarco 4.7.4-1mamba - update to 4.7.4 * Tue Nov 01 2011 Davide Madrisan 4.7.2-1mamba - package created by autospec