File plasma-dialer.spec of Package plasma-dialer-22.02-2.35
#
# spec file for package plasma-dialer
#
# Copyright (c) 2021 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/
#
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
Name: plasma-dialer
Version: 22.02
Release: 2.35
License: GPL-3.0-only
Summary: Convergent Plasma Mobile dialer application
Url: https://invent.kde.org/plasma-mobile/plasma-dialer
Source0: plasma-dialer-%{version}.tar.xz
Patch0: 0001-connect-to-activation-after-setting-actions.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5QuickControls2)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(KF5Contacts)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5People)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5Notifications)
BuildRequires: cmake(KF5Contacts)
BuildRequires: cmake(KF5PulseAudioQt) >= 1.3
BuildRequires: cmake(TelepathyQt5)
BuildRequires: cmake(Qt5Sql)
BuildRequires: pkgconfig(libpulse)
BuildRequires: libphonenumber-devel
BuildRequires: extra-cmake-modules
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5ModemManagerQt)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5Feedback)
BuildRequires: pkgconfig(mpris-qt5)
Requires: kcontacts
Requires: kcoreaddons
Requires: oxygen5-sounds
Requires: noto-sans-cjk-fonts
#noto-sans-cjk-fonts Fixes missing dialer icons (like * and #)
#requiring fonts is kind of odd, but well, the symbols need to
#come from somewhere
%description
%{summary}.
%package devel
Requires: %{name} = %{version}
Summary: Plasma Mobile dialer application devel files
%description devel
%{summary}.
%prep
%setup -q -n plasma-dialer-%{version}
%build
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
%kf5_post_install
%fdupes %{buildroot}%{_prefix}
%files
%defattr(-,root,root,-)
%{_kf5_bindir}/plasmaphonedialer
%{_kf5_appstreamdir}/org.kde.phone.dialer.appdata.xml
%{_kf5_applicationsdir}/*.desktop
%{_kf5_configdir}/autostart/*.desktop
%{_kf5_iconsdir}/hicolor/*/*/*.svg
%{_kf5_notifydir}/*.notifyrc
%{_datadir}/dbus-1/services/*.service
%{_prefix}/libexec/kde-telephony-daemon
%{_prefix}/libexec/modem-daemon
%dir %{_kf5_qmldir}/org
%dir %{_kf5_qmldir}/org/kde
%{_kf5_qmldir}/org/kde/telephony/
%{_datadir}/dbus-1/interfaces/org.kde.telephony.*.xml
%files devel
%{_kf5_libdir}/libktelephonymetatypes.a
%dir %{_kf5_includedir}/kTelephonyMetaTypes
%{_kf5_includedir}/kTelephonyMetaTypes/dialer-types.h
%changelog
* Wed Mar 30 2022 Adrian Campos Garrido <adriancampos@teachelp.com>
- Add patch from KDE (MR 85) to allow incomming calls
* Tue Jun 15 2021 Andrés B.S. <andresbs@opensuse.org>
- Add a changelog.
- Tweak the desktop file to delay the dialer app launch until
telephony services are ready.