File plasma-dialer.spec of Package plasma-dialer

#
# spec file for package plasma-dialer
#
# 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/
#


%global _lto_cflags %{_lto_cflags} -ffat-lto-objects

Name:           plasma-dialer
Version:        23.01.0
Release:        0
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
BuildRequires:  callaudiod-devel
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libphonenumber-devel
BuildRequires:  libqt5-qtwayland-private-headers-devel
BuildRequires:  reuse
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5Contacts)
BuildRequires:  cmake(KF5Contacts)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5KirigamiAddons)
BuildRequires:  cmake(KF5ModemManagerQt)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5People)
BuildRequires:  cmake(KF5PulseAudioQt) >= 1.3
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KWinEffects)
BuildRequires:  cmake(PlasmaWaylandProtocols)
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Feedback)
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  cmake(Qt5Qml)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(Qt5Sql)
BuildRequires:  cmake(Qt5WaylandClient)
BuildRequires:  cmake(TelepathyQt5)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(mpris-qt5)
Requires:       kcontacts
Requires:       kcoreaddons
Requires:       noto-sans-cjk-fonts
Requires:       oxygen5-sounds
#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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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}

# Create manifest for i18n.
%find_lang %{name} --all-name

%files -f %{name}.lang
%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
openSUSE Build Service is sponsored by