Files
kdepim-runtime/kdepim-runtime.spec
Christophe Marin 79669eeb3b Accepting request 1113905 from home:fawz:branches:KDE:Applications
- Add libetebase-devel to BuildRequires to enable the etesync resource for
factory builds

Until now, etebase-enabled builds of kdepim-runtime have mostly been packaged via home projects here on OBS and on COPR by the etesync community.

Now that libetebase is in factory (https://build.opensuse.org/package/show/openSUSE:Factory/libetebase), the dependency can be made available to kdepim-runtime which will enable the etesync resource plugin (https://invent.kde.org/pim/kdepim-runtime/-/blob/master/resources/CMakeLists.txt?ref_type=heads#L52). This also means that libetebase0 will become a runtime dependency of the kdepim-runtime package.

This submit request only enables it for tumbleweed only. I'm not sure what the pattern/strategy is for dependencies which are only available for some versions of opensuse. The network project where libetebase lives doesn't seem to build for the aarch64 15.5 leap target for instance, while kdepim-runtime does.

Let me know what you think about enabling this :)

OBS-URL: https://build.opensuse.org/request/show/1113905
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kdepim-runtime?expand=0&rev=334
2023-09-27 15:37:34 +00:00

155 lines
5.5 KiB
RPMSpec

#
# spec file for package kdepim-runtime
#
# 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/
#
%define kf5_version 5.105.0
%bcond_without released
Name: kdepim-runtime
Version: 23.08.1
Release: 0
Summary: Akonadi resources for PIM applications
License: GPL-2.0-or-later AND GPL-3.0-or-later
URL: https://www.kde.org
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
# PATCH-FIX-UPSTREAM
Patch0: 0001-Revert-Revert-Use-config-plugin-instead-of-out-of-pr.patch
Patch1: 0002-Revert-Revert-Fix-race-condition-when-building.patch
Patch2: 0003-Actually-start-job-to-read-secret-key.patch
BuildRequires: cyrus-sasl-devel
BuildRequires: extra-cmake-modules
BuildRequires: hicolor-icon-theme
BuildRequires: kf5-filesystem
BuildRequires: libboost_atomic-devel
BuildRequires: libboost_thread-devel
BuildRequires: libboost_system-devel
BuildRequires: libkolabxml-devel >= 1.1
BuildRequires: shared-mime-info
BuildRequires: cmake(KF5CalendarCore) >= %{kf5_version}
BuildRequires: cmake(KF5Codecs) >= %{kf5_version}
BuildRequires: cmake(KF5Config) >= %{kf5_version}
BuildRequires: cmake(KF5ConfigWidgets) >= %{kf5_version}
BuildRequires: cmake(KF5Contacts)
BuildRequires: cmake(KF5DAV)
BuildRequires: cmake(KF5DocTools) >= %{kf5_version}
BuildRequires: cmake(KF5Holidays) >= %{kf5_version}
BuildRequires: cmake(KF5ItemModels) >= %{kf5_version}
BuildRequires: cmake(KF5KCMUtils)
BuildRequires: cmake(KF5KIO) >= %{kf5_version}
BuildRequires: cmake(KF5Notifications) >= %{kf5_version}
BuildRequires: cmake(KF5NotifyConfig) >= %{kf5_version}
BuildRequires: cmake(KF5TextWidgets) >= %{kf5_version}
BuildRequires: cmake(KF5WindowSystem) >= %{kf5_version}
BuildRequires: cmake(KPim5Akonadi)
BuildRequires: cmake(KPim5AkonadiCalendar)
BuildRequires: cmake(KPim5AkonadiContact)
BuildRequires: cmake(KPim5AkonadiMime)
BuildRequires: cmake(KPim5AkonadiNotes)
BuildRequires: cmake(KPim5CalendarUtils)
BuildRequires: cmake(KPim5GAPI)
BuildRequires: cmake(KPim5IMAP)
BuildRequires: cmake(KPim5IdentityManagement)
BuildRequires: cmake(KPim5Ldap)
BuildRequires: cmake(KPim5Libkdepim)
BuildRequires: cmake(KPim5MailTransport)
BuildRequires: cmake(KPim5Mbox)
BuildRequires: cmake(KPim5Mime)
BuildRequires: cmake(Qca-qt5)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Keychain)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5NetworkAuth)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5TextToSpeech)
BuildRequires: cmake(Qt5WebEngineWidgets)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5XmlPatterns)
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150500
BuildRequires: libetebase-devel
%endif
Recommends: kalendarac
Requires: akonadi-plugin-calendar
Requires: akonadi-plugin-contacts
Requires: akonadi-plugin-mime
Requires: akonadi-server
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
Provides: kio-pimlibs = %{version}
Obsoletes: kdepim4-runtime < %{version}
Obsoletes: kio-pimlibs < %{version}
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
%description
This package contains the Akonadi resources, agents and plugins needed to
use PIM applications.
%lang_package
%prep
%autosetup -p1 -n kdepim-runtime-%{version}
%build
%cmake_kf5 -d build -- -DBUILD_TESTING=ON
%cmake_build
%install
%kf5_makeinstall -C build
%find_lang %{name} --with-man --all-name
%{kf5_find_htmldocs}
%ldconfig_scriptlets
%files
%license LICENSES/*
%doc %lang(en) %{_kf5_htmldir}/en/kioslave5/
%{_kf5_applicationsdir}/org.kde.akonadi_davgroupware_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_google_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_kolab_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_imap_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_contacts_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_ews_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_openxchange_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_vcard_resource.desktop
%{_kf5_applicationsdir}/org.kde.akonadi_vcarddir_resource.desktop
%{_kf5_bindir}/*
%{_kf5_dbusinterfacesdir}/*.xml
%{_kf5_debugdir}/kdepim-runtime.categories
%{_kf5_debugdir}/kdepim-runtime.renamecategories
%ifarch %{ix86} x86_64 %{arm} aarch64
%{_kf5_iconsdir}/hicolor/*/apps/akonadi-ews.png
%endif
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150500
%{_kf5_iconsdir}/hicolor/*/apps/akonadi-etesync.png
%endif
%{_kf5_iconsdir}/hicolor/*/apps/ox.png
%{_kf5_libdir}/*.so.*
%{_kf5_notifydir}/
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_sharedir}/akonadi/
%{_kf5_sharedir}/mime/packages/kdepim-mime.xml
%files lang -f %{name}.lang
%changelog