File plasma-phonebook.spec of Package plasma-phonebook

# spec file for plasma-phonebook
#
# Copyright (c) 2020 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.

Name:           plasma-phonebook
Version:        22.02
Release:        0
License:        GPL-3.0
Summary:        Convergent Plasma Mobile phonebook application 
Url:            https://invent.kde.org/plasma-mobile/plasma-phonebook
Source0:        plasma-phonebook-%{version}.tar.xz
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  AppStream
BuildRequires:  extra-cmake-modules
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files

BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(KF5Kirigami2)
BuildRequires:  cmake(KF5Contacts)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5People)
BuildRequires:  cmake(KF5PeopleVCard)

Requires:       kirigami2
Requires:       kcontacts
Requires:       kcoreaddons
Requires:       kpeoplevcard
Requires:       kirigami-addons

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Contacts application which allows adding, modifying and removing contacts.

%prep
%setup -q -n plasma-phonebook-%{version}

%build
%cmake_kf5 -d build
%cmake_build

%install
%kf5_makeinstall -C build
%kf5_post_install
%fdupes %{buildroot}%{_prefix}

%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSES/{GPL-2.0-only,GPL-3.0-only,GPL-3.0-or-later,LGPL-2.0-or-later,LicenseRef-KDE-Accepted-GPL}.txt

%{_kf5_bindir}/plasma-phonebook
%{_kf5_iconsdir}/hicolor/*/*/*.svg
%{_kf5_applicationsdir}/*.desktop
%{_kf5_appstreamdir}/*.metainfo.xml
%dir %{_kf5_plugindir}/kpeople
%dir %{_kf5_plugindir}/kpeople/actions
%{_kf5_plugindir}/kpeople/actions/*.so

%changelog
openSUSE Build Service is sponsored by