File ring-client-kde.spec of Package ring-client-kde

#
# spec file for package ring-client-kde
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013-2018 Ákos Szőts <szotsaki@gmail.com>
#
# 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/
#


Name:           ring-client-kde
Version:        3.0.0
Release:        0
Summary:        KDE client for Ring
License:        GPL-3.0-or-later
Group:          Productivity/Telephony/SIP/Clients
URL:            https://github.com/KDE/ring-kde
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  akonadi-contact-devel
BuildRequires:  cmake
BuildRequires:  gettext
BuildRequires:  gmp-ecm-devel
BuildRequires:  kconfig-devel
BuildRequires:  kcontacts-devel
BuildRequires:  kcrash-devel
BuildRequires:  kdbusaddons-devel
BuildRequires:  kdeclarative-devel
BuildRequires:  kdoctools-devel
BuildRequires:  kglobalaccel-devel
BuildRequires:  kguiaddons-devel
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kirigami2-devel
BuildRequires:  knotifications-devel
BuildRequires:  knotifyconfig-devel
BuildRequires:  kwindowsystem-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  libringqt1_0_0-devel
BuildRequires:  ring-daemon-devel
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5PrintSupport)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Widgets)
Requires:       kirigami2
Requires:       libqt5-qtgraphicaleffects
Requires:       libqt5-qtquickcontrols2

%description
KDE client for Ring communication framework with Akonadi integration

%prep
%setup -q

%build
%cmake -DENABLE_SINGLE_INSTANCE=ON

%install
cd build
%make_install
cd ..
# % cmake_install -- CMake Error at src/cmake_install.cmake:36 (file): file INSTALL cannot find

%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%desktop_database_post

%postun
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%desktop_database_postun

%files
%dir %{_datadir}/metainfo
%dir %{_datadir}/config.kcfg
%dir %{_datadir}/kxmlgui5/ring-kde
%dir %{_datadir}/ring-kde
%{_bindir}/ring
%{_bindir}/ring-kde
%{_datadir}/metainfo/org.kde.ring-kde.appdata.xml
%{_datadir}/applications/org.kde.ring-kde.desktop
%{_datadir}/config.kcfg/ring-kde.kcfg
%{_datadir}/dbus-1/interfaces/cx.ring.ring-kde.xml
%{_datadir}/icons/hicolor/*/apps/ring-kde.png
%{_datadir}/icons/hicolor/scalable/apps/ring-kde.svgz
%{_datadir}/knotifications5/ring-kde.notifyrc
%{_datadir}/kxmlgui5/ring-kde/ring-kdeui.rc
%{_datadir}/ring-kde/*
%license COPYING
%doc README.md

%changelog
openSUSE Build Service is sponsored by