# enable pate (kate python plugin), disable to bootstrap pykde4 # sigh, ftbfs when enabled, some rpm/python bytecompiling problem #define pate 1 Name: kate-part Summary: Advanced Text Editor KPart Version: 4.11.2 Release: 3%{?dist} License: LGPLv2 URL: http://kate-editor.org/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/%{version}/src/kate-%{version}.tar.xz ## upstreamable patches # upstream patches BuildRequires: desktop-file-utils BuildRequires: kactivities-devel >= %{version} BuildRequires: kdelibs4-devel >= %{version} BuildRequires: pkgconfig(QJson) # when split occurred Conflicts: kdelibs < 6:4.6.95-10 # katesyntaxhighlightingrc conflicts with kdelibs3, see http://bugzilla.redhat.com/883529 Conflicts: kdelibs3 < 3.5.10-40 %description %{summary} %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: kdelibs4-devel %description devel %{summary}. %prep %setup -q -n kate-%{version} %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. -DBUILD_kate=off -DBUILD_kwrite=off -DBUILD_addons=off -DBUILD_doc=off popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # move devel symlinks (that would otherwise conflict with kdelibs3-devel) mkdir -p %{buildroot}%{_kde4_libdir}/kde4/devel pushd %{buildroot}%{_kde4_libdir} for i in lib*.so do case "$i" in libkate*interfaces.so) linktarget=`readlink "$i"` rm -f "$i" ln -sf "../../$linktarget" "kde4/devel/$i" ;; esac done popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc COPYING.LIB %doc AUTHORS %doc part/INDENTATION part/README* part/TODO* %{_kde4_libdir}/kde4/katepart.so %{_kde4_libdir}/libkatepartinterfaces.so.4* %{_kde4_appsdir}/katepart/ %{_kde4_configdir}/katemoderc %{_kde4_configdir}/kateschemarc %{_kde4_configdir}/katesyntaxhighlightingrc %{_kde4_configdir}/ktexteditor_codesnippets_core.knsrc %{_kde4_datadir}/kde4/services/katepart.desktop %files devel %{_kde4_libdir}/kde4/devel/libkatepartinterfaces.so %changelog * Fri Nov 01 2013 T.C. Hollingsworth - 4.11.2-3 - initial package