File latte-dock.spec of Package latte-dock

#
# spec file for package latte-dock
#
# 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:           latte-dock
Version:        @SERVICE@
Release:        0
Summary:        Dock based on plasma frameworks
License:        GPL-2.0 and LGPL-2.1
Group:          System/GUI/KDE
Url:            https://github.com/psifidotos/Latte-Dock
Source:         %{name}-%{version}.tar.xz
BuildRequires:  breeze5-icons
BuildRequires:  cmake
BuildRequires:  cmake(KF5Activities)
BuildRequires:  cmake(KF5Archive)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5Declarative)
BuildRequires:  cmake(KF5GlobalAccel)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5NewStuff)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5Plasma) >= 5.29.0
BuildRequires:  cmake(KF5PlasmaQuick)
BuildRequires:  cmake(KF5Wayland)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  kf5-filesystem
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui) >= 5.7.0
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-event)
BuildRequires:  pkgconfig(xcb-randr)
# latte-dock no-return-in-nonvoid-function app/layout.cpp:540
BuildRequires:  -post-build-checks
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Latte is a dock based on plasma frameworks that provides an elegant and
intuitive experience for your tasks and plasmoids. It animates its contents by
using parabolic zoom effect and trys to be there only when it is needed.

#%%lang_package

%prep
%setup -q

%build
%cmake
make %{?_smp_mflags}

%install
%cmake_install

sed -i 's/\(Version=\).*/\11.0/' %{buildroot}%{_datadir}/applications/org.kde.%{name}.desktop
%fdupes %{buildroot}%{_datadir}/

#%%find_lang %%{name} --all-name

%post
%icon_theme_cache_post
%icon_theme_cache_post breeze

%postun
%icon_theme_cache_postun
%icon_theme_cache_postun breeze

%files
%defattr(-,root,root)
%doc CHANGELOG.md COPYING* README.md TRANSLATORS
%dir %{_sysconfdir}/xdg
%config %{_sysconfdir}/xdg/latte-layouts.knsrc
%{_bindir}/%{name}
%dir %{_kf5_qmldir}/org/
%dir %{_kf5_qmldir}/org/kde/
%{_kf5_qmldir}/org/kde/latte
%{_datadir}/applications/org.kde.%{name}.desktop
%dir %{_datadir}/dbus-1/interfaces/
%{_datadir}/dbus-1/interfaces/org.kde.LatteDock.xml
%{_datadir}/icons/breeze/applets/*/org.kde.latte.plasmoid.svg
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_kf5_notifydir}/lattedock.notifyrc
%{_kf5_servicesdir}/plasma-applet-audoban.applet.separator.desktop
%{_kf5_servicesdir}/plasma-applet-org.kde.latte.*.desktop
%{_kf5_servicesdir}/plasma-shell-org.kde.latte.shell.desktop
%{_kf5_appstreamdir}/org.kde.latte*.appdata.xml
%{_kf5_appstreamdir}/audoban.applet.separator.appdata.xml
%dir %{_kf5_plasmadir}/plasmoids/
%{_kf5_plasmadir}/plasmoids/audoban.applet.separator/
%{_kf5_plasmadir}/plasmoids/org.kde.latte.*
%dir %{_kf5_plasmadir}/shells/
%{_kf5_plasmadir}/shells/org.kde.latte.shell/

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

%changelog
openSUSE Build Service is sponsored by