File kate4-parts.spec of Package kate4-parts

# spec file for package kate4-parts
# Copyright (c) 2016 SUSE LINUX 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

Name:           kate4-parts
Version:        4.14.3
Release:        2
Summary:        Kate parts for Dolphin
License:        GPL-2.0+
Group:          Productivity/Editors/Other
Source0:        kate-%{version}.tar.xz
Patch0:         kate-%{version}-git.patch
Patch1:         kate-4.14.3-syntax-erlang.patch
BuildRequires:  libkactivities-devel
BuildRequires:  libkde4-devel >= %version
BuildRequires:  libqjson-devel
BuildRequires:  python-devel
BuildRequires:  python-kde4-devel
BuildRequires:  python-qt4-devel
BuildRequires:  python-sip-devel
BuildRequires:  xz
Provides:       libktexteditor = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libkatepartinterfaces4 = %{version}

The Kate parts that are required for integration with Dolphin

%package -n libkatepartinterfaces4
Summary:        Library to interface with kateparts
Group:          Productivity/Editors/Other

%description -n libkatepartinterfaces4
The library required by Kate parts.

%setup -q -n kate-%{version}
%patch0 -p1
%patch1 -p1

%ifarch ppc64
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
  %cmake_kde4 -d build

  pushd build/addons/ktexteditor
  pushd build/part

%post -n libkatepartinterfaces4 -p /sbin/ldconfig

%postun -n libkatepartinterfaces4 -p /sbin/ldconfig

  rm -rf %{buildroot}

%files -n libkatepartinterfaces4


openSUSE Build Service is sponsored by