File latte-dock.spec of Package latte-dock

#
# spec file for package latte-dock
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017  Smith AR <audoban@openmailbox.org>
#
# 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 https://bugs.opensuse.org/
#


%define kf5_version 5.38.0
Name:           latte-dock
Version:        0.8.8
Release:        0
Summary:        Task manager
License:        GPL-2.0-or-later
Group:          System/GUI/KDE
URL:            https://phabricator.kde.org/source/latte-dock/
Source:         https://download.kde.org/stable/latte-dock/latte-dock-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  libSM-devel
BuildRequires:  pkgconfig
BuildRequires:  cmake(KF5Activities) >= %{kf5_version}
BuildRequires:  cmake(KF5Archive) >= %{kf5_version}
BuildRequires:  cmake(KF5CoreAddons) >= %{kf5_version}
BuildRequires:  cmake(KF5Crash) >= %{kf5_version}
BuildRequires:  cmake(KF5DBusAddons) >= %{kf5_version}
BuildRequires:  cmake(KF5Declarative) >= %{kf5_version}
BuildRequires:  cmake(KF5GlobalAccel) >= %{kf5_version}
BuildRequires:  cmake(KF5I18n) >= %{kf5_version}
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5NewStuff)
BuildRequires:  cmake(KF5Notifications) >= %{kf5_version}
BuildRequires:  cmake(KF5Package) >= %{kf5_version}
BuildRequires:  cmake(KF5Plasma) >= %{kf5_version}
BuildRequires:  cmake(KF5PlasmaQuick)
BuildRequires:  cmake(KF5Wayland) >= %{kf5_version}
BuildRequires:  cmake(KF5WindowSystem) >= %{kf5_version}
BuildRequires:  cmake(KF5XmlGui) >= %{kf5_version}
BuildRequires:  cmake(Qt5X11Extras) >= 5.7.0
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-util)
BuildRequires:  pkgconfig(zlib)
Recommends:     %{name}-lang
%if 0%{?is_opensuse}
BuildRequires:  update-desktop-files
%endif

%description
Latte is a dock based on plasma frameworks that animating its
contents by using parabolic zoom effect.

%lang_package

%prep
%setup -q

%build
%if 0%{?suse_version} <= 1315
   %cmake_kf5 -d build -- -DENABLE_MAKE_UNIQUE=ON
%else
   %cmake_kf5 -d build
%endif

%make_jobs

%install
%kf5_makeinstall -C build
%find_lang %{name} --all-name
%if 0%{?is_opensuse}
%suse_update_desktop_file -r org.kde.%{name} Utility DesktopUtility
%endif
%fdupes %{buildroot}

%files
%doc README.md
%license COPYING.LIB
%config %{_kf5_sysconfdir}/xdg/latte-layouts.knsrc
%{_kf5_bindir}/%{name}
%{_kf5_plasmadir}/
%{_kf5_qmldir}/
%{_kf5_servicesdir}/
%{_kf5_sharedir}/dbus-1/interfaces/
%{_kf5_notifydir}/
%{_kf5_iconsdir}/hicolor/24x24/
%{_kf5_iconsdir}/hicolor/*/apps/%{name}.svg
%{_kf5_iconsdir}/breeze/
%{_kf5_sharedir}/metainfo/
%{_kf5_applicationsdir}/org.kde.%{name}.desktop
%{_libdir}/qt5/plugins/plasma_containmentactions_lattecontextmenu.so
%dir %{_kf5_sharedir}/kwin
%dir %{_kf5_sharedir}/kwin/scripts
%dir %{_kf5_sharedir}/kwin/scripts/activatelattelaunchermenu
%dir %{_kf5_sharedir}/kwin/scripts/activatelattelaunchermenu/contents
%dir %{_kf5_sharedir}/kwin/scripts/activatelattelaunchermenu/contents/code
%{_kf5_sharedir}/kwin/scripts/activatelattelaunchermenu/contents/code/main.js
%{_kf5_sharedir}/kwin/scripts/activatelattelaunchermenu/metadata.desktop

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by