File plasma-phonebook.spec of Package plasma-phonebook
#
# spec file for package plasma-phonebook
#
# Copyright (c) 2023 SUSE LLC
#
# 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: plasma-phonebook
Version: 23.01.0
Release: 0
License: GPL-3.0-only
Summary: Convergent Plasma Mobile phonebook application
URL: https://invent.kde.org/plasma-mobile/plasma-phonebook
Source0: plasma-phonebook-%{version}.tar.xz
BuildRequires: AppStream
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Contacts)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Kirigami2)
BuildRequires: cmake(KF5KirigamiAddons)
BuildRequires: cmake(KF5People)
BuildRequires: cmake(KF5PeopleVCard)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5QuickControls2)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Test)
Requires: kcontacts
Requires: kcoreaddons
Requires: kirigami-addons
Requires: kirigami2
Requires: kpeoplevcard
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}
# Create manifest for i18n.
%find_lang %{name} --all-name
%files -f %{name}.lang
%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