File yakuake.spec of Package yakuake

#
# spec file for package yakuake
#
# Copyright (c) 2013 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:           yakuake
Version:        2.9.9
Release:        0
Summary:        Terminal for KDE
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://kde-apps.org/content/show.php?content=29153
Source:         %{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM yakuake-2.9.9_no-close.patch kde#308850 peter@rmk2.org -- patch comes from upstream
Patch0:         yakuake-2.9.9_no-close.patch
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  xz
Requires:       konsole
Provides:       kde4-yakuake = %{version}
Obsoletes:      kde4-yakuake < %{version}
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
Yakuake is a retractable KDE Terminal Emulator.

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

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  %suse_update_desktop_file -G "Terminal Program" yakuake System TerminalEmulator
  cd ..
  %find_lang %{name}
  %fdupes -s %{buildroot}

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING COPYING.DOC NEWS
%{_kde4_applicationsdir}/yakuake.desktop
%{_kde4_appsdir}/yakuake
%{_kde4_bindir}/yakuake
%{_kde4_iconsdir}/hicolor/
%{_kde4_appsdir}/kconf_update/
%{_kde4_configdir}/yakuake.knsrc

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by