File ktp-text-ui.spec of Package ktp-text-ui4

# spec file for package ktp-text-ui
# Copyright (c) 2014 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

Name:           ktp-text-ui
Version:        0.9.0
Release:        0
Summary:        Telepathy chat handler for KDE
License:        GPL-2.0+
Group:          Productivity/Networking/Instant Messenger
Patch0:         fix_desktop.diff
BuildRequires:  fdupes
BuildRequires:  ktp-common-internals-devel >= %{version}
BuildRequires:  libkde4-devel >= 4.4.75
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libkpeople-devel >= 0.3.0
BuildRequires:  libqjson-devel
BuildRequires:  oxygen-icon-theme
BuildRequires:  telepathy-logger-devel >= 0.2
BuildRequires:  telepathy-logger-qt4-devel
BuildRequires:  telepathy-qt4-devel >= 0.9.5
BuildRequires:  pkgconfig(QtGLib-2.0)
Requires:       telepathy-logger
Recommends:     %{name}-lang
Obsoletes:      %{name}-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Includes KDE's implementation of the Telepathy chat handler,
a chat plasmoid, and a chat log viewer application.

%setup -q
%patch0 -p1

  %cmake_kde4 -d build

  %kde4_makeinstall -C build
  %fdupes -s %{buildroot}

  %find_lang %{name} %{name}.lang
  %find_lang kcm_ktp_chat_appearance %{name}.lang
  %find_lang kcm_ktp_chat_behavior %{name}.lang
  %find_lang ktp-adiumxtra-protocol-handler %{name}.lang
  %find_lang ktpchat %{name}.lang
  %find_lang ktp-filters %{name}.lang

for i in {16,22,32,48}; do
  mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps
  cp -a %{_kde4_iconsdir}/oxygen/"$i"x"$i"/actions/documentation.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps/ktp-log-viewer.png;

%files lang -f %{name}.lang