LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ktp-text-ui.spec of Package ktp-text-ui4 (Project home:wolfi323:branches:KDE:Frameworks5)

#
# 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 http://bugs.opensuse.org/
#


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
Url:            http://community.kde.org/Real-Time_Communication_and_Collaboration
Source:         http://download.kde.org/stable/kde-telepathy/%{version}/src/%{name}-%{version}.tar.bz2
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
%kde4_runtime_requires

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

%lang_package
%prep
%setup -q
%patch0 -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install
  %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;
done

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%_kde4_bindir/ktp-log-viewer
%_kde4_appsdir/ktelepathy/
%_kde4_appsdir/ktp-text-ui/
%_kde4_libdir/*.so
%_kde4_modulesdir/*.so
%_kde4_servicesdir/*.protocol
%_kde4_servicesdir/*.desktop
%_kde4_libexecdir/*
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.TextUi.service
%{_datadir}/telepathy/
%{_kde4_iconsdir}/hicolor/*/apps/*.png
%_kde4_appsdir/ktp-log-viewer/
%_kde4_applicationsdir/ktp-log-viewer.desktop
%_kde4_servicetypes/ktptxtui_message_filter.desktop

%changelog