File konsole.spec of Package konsole4

# spec file for package konsole
# 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:           konsole
Version:        4.14.3
Release:        0
Summary:        KDE Terminal
License:        GPL-2.0+
Group:          System/X11/Terminals
Source0:        konsole-%{version}.tar.xz
Source4:        konsolesu.desktop
Source21:       utilities-terminal-su-16.png
Source22:       utilities-terminal-su-22.png
Source23:       utilities-terminal-su-32.png
Source24:       utilities-terminal-su-48.png
Source25:       utilities-terminal-su-64.png
Source26:       utilities-terminal-su-128.png
Patch:          Add-support-for-ECMA-48-REP.patch
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  libkonq-devel >= %version
BuildRequires:  xz
BuildRequires:  pkgconfig(libxklavier)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       konsole-part = %{version}
Obsoletes:      konsole-part
Provides:       konsole4-part = %{version}
Obsoletes:      konsole4-part <= %{version}

Konsole is a terminal emulator for the K Desktop Environment.

%setup -q -n konsole-%{version}
%patch -p1

  %cmake_kde4 -d build

  pushd build
  install -D -m 0644 %{SOURCE4}  %{buildroot}%{_datadir}/applications/kde4/
  install -D -m 0644 %{SOURCE21} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/utilities-terminal_su.png
  install -D -m 0644 %{SOURCE22} %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/utilities-terminal_su.png
  install -D -m 0644 %{SOURCE23} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/utilities-terminal_su.png
  install -D -m 0644 %{SOURCE24} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/utilities-terminal_su.png
  install -D -m 0644 %{SOURCE25} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/utilities-terminal_su.png
  install -D -m 0644 %{SOURCE26} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/utilities-terminal_su.png
  %suse_update_desktop_file konsole TerminalEmulator
  %fdupes -s %{buildroot} 

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig