File yakuake.spec of Package yakuake

#
# spec file for package yakuake
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#


Name:           yakuake
Version:        3.0.4
Release:        0
Summary:        Terminal for KDE
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            https://yakuake.kde.org
Source:         http://download.kde.org/stable/yakuake/%{version}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE 0001-Revert-Removed-usage-to-deprecated-interface.patch
Patch:          0001-Revert-Removed-usage-to-deprecated-interface.patch
BuildRequires:  fdupes
BuildRequires:  karchive-devel >= 5.15.0
BuildRequires:  kconfig-devel >= 5.15.0
BuildRequires:  kcoreaddons-devel >= 5.15.0
BuildRequires:  kcrash-devel >= 5.15.0
BuildRequires:  kdbusaddons-devel >= 5.15.0
BuildRequires:  kf5-filesystem
BuildRequires:  kglobalaccel-devel >= 5.15.0
BuildRequires:  ki18n-devel >= 5.15.0
BuildRequires:  kiconthemes-devel >= 5.15.0
BuildRequires:  kio-devel >= 5.15.0
BuildRequires:  knewstuff-devel >= 5.15.0
BuildRequires:  knotifications-devel >= 5.15.0
BuildRequires:  knotifyconfig-devel >= 5.15.0
BuildRequires:  kparts-devel >= 5.15.0
BuildRequires:  kwayland-devel
BuildRequires:  kwidgetsaddons-devel >= 5.15.0
BuildRequires:  kwindowsystem-devel >= 5.15.0
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires:  pkgconfig(Qt5X11Extras) >= 5.2.0
Requires:       konsole-part > 15.12
Recommends:     konsole  > 15.12
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Yakuake is a retractable KDE Terminal Emulator.

%lang_package

%prep
%setup -q
%if 0%{?suse_version} == 1315 && 0%{?sle_version} <= 120200
%patch -p1
%endif

%build
  %cmake_kf5 -d build
  %make_jobs

%install
  %kf5_makeinstall -C build
  %suse_update_desktop_file -G "Terminal Program" org.kde.yakuake System TerminalEmulator
  %find_lang %{name}
  %fdupes -s %{buildroot}

%post
/sbin/ldconfig
%desktop_database_post

%postun
/sbin/ldconfig
%desktop_database_postun

%files
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING COPYING.DOC NEWS
%{_kf5_bindir}/yakuake
%config %{_kf5_configdir}/yakuake.knsrc
%{_kf5_applicationsdir}/org.kde.yakuake.desktop
%{_kf5_notifydir}/
%dir %{_kf5_sharedir}/icons/hicolor/256x256
%dir %{_kf5_sharedir}/icons/hicolor/256x256/apps
%{_kf5_sharedir}/icons/hicolor/*/*/*.*
%{_kf5_sharedir}/yakuake/
%{_kf5_appstreamdir}/

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by