Blame akonadi-calendar.spec

Bernhard M. Wiedemann 2b2945
#
Bernhard M. Wiedemann 2b2945
# spec file for package akonadi-calendar
Bernhard M. Wiedemann 2b2945
#
8effac
# Copyright (c) 2023 SUSE LLC
Bernhard M. Wiedemann 2b2945
#
Bernhard M. Wiedemann 2b2945
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann 2b2945
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann 2b2945
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann 2b2945
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann 2b2945
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann 2b2945
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann 2b2945
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann 2b2945
# published by the Open Source Initiative.
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann 2b2945
#
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
6a7a87
%define kf5_version 5.104.0
6a7a87
%define libname libKPim5AkonadiCalendar5
bc53ef
%bcond_without released
Bernhard M. Wiedemann 2b2945
Name:           akonadi-calendar
423914
Version:        23.04.1
Bernhard M. Wiedemann 2b2945
Release:        0
Bernhard M. Wiedemann 2b2945
Summary:        Akonadi calendar integration
Bernhard M. Wiedemann 2b2945
License:        LGPL-2.1-or-later
Bernhard M. Wiedemann 2b2945
URL:            https://www.kde.org
Bernhard M. Wiedemann 6f039f
Source:         https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
bc53ef
%if %{with released}
05aa54
Source1:        https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
05aa54
Source2:        applications.keyring
05aa54
%endif
Bernhard M. Wiedemann 7c61f9
BuildRequires:  extra-cmake-modules >= %{kf5_version}
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5CalendarCore)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5Codecs)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5DBusAddons)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5I18n)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5KIO)
a2e1e6
BuildRequires:  cmake(KF5Notifications)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5WidgetsAddons)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(KF5XmlGui)
6a7a87
BuildRequires:  cmake(KPim5Akonadi)
6a7a87
BuildRequires:  cmake(KPim5AkonadiContact)
6a7a87
BuildRequires:  cmake(KPim5CalendarUtils)
6a7a87
BuildRequires:  cmake(KPim5IdentityManagement)
6a7a87
BuildRequires:  cmake(KPim5MailTransportAkonadi)
6a7a87
BuildRequires:  cmake(KPim5Mime)
Bernhard M. Wiedemann 7c61f9
BuildRequires:  cmake(Qt5Test)
6a7a87
Conflicts:      libKF5AkonadiCalendar5 < %{version}
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%description
Bernhard M. Wiedemann 2b2945
This library provides calendar integration for Akonadi based Applications.
Bernhard M. Wiedemann 2b2945
6a7a87
%package -n %{libname}
Bernhard M. Wiedemann 2b2945
Summary:        KDE PIM Libraries: AkonadiCalendar
6a7a87
%requires_eq    %{name}
6a7a87
# Renamed
6a7a87
Obsoletes:      akonadi-calendar-lang <= 23.04.0
Bernhard M. Wiedemann 2b2945
6a7a87
%description -n %{libname}
Bernhard M. Wiedemann 2b2945
This library provides calendar integration for Akonadi based Applications.
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%package -n akonadi-plugin-calendar
Bernhard M. Wiedemann 2b2945
Summary:        Akonadi calendar integration - serializer plugin
6a7a87
Requires:       %{libname} = %{version}
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%description -n akonadi-plugin-calendar
Bernhard M. Wiedemann 2b2945
This package provides plugins required by PIM applications to read and write calendar data.
Bernhard M. Wiedemann 2b2945
a2e1e6
%package -n kalendarac
a2e1e6
Summary:        Reminder daemon client
a2e1e6
# Moved from kalendar 1.0.0 to akonadi-calendar
a2e1e6
Conflicts:      kalendar = 1.0.0
a2e1e6
a2e1e6
%description -n kalendarac
a2e1e6
Kalendarac is a reminder daemon client for calendar events.
a2e1e6
Bernhard M. Wiedemann 2b2945
%package devel
Bernhard M. Wiedemann 2b2945
Summary:        KDE PIM Libraries: Build Environment
6a7a87
Requires:       %{libname} = %{version}
6a7a87
Requires:       cmake(KPim5Akonadi)
Bernhard M. Wiedemann 7c61f9
Requires:       cmake(KF5CalendarCore)
Bernhard M. Wiedemann 7c61f9
Requires:       cmake(KF5I18n)
Bernhard M. Wiedemann 7c61f9
Requires:       cmake(KF5WidgetsAddons)
Bernhard M. Wiedemann b262f5
Obsoletes:      akonadi5-calendar-devel < %{version}
Bernhard M. Wiedemann b262f5
Provides:       akonadi5-calendar-devel = %{version}
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%description devel
Bernhard M. Wiedemann 2b2945
Development package for akonadi-calendar.
Bernhard M. Wiedemann 2b2945
6a7a87
%lang_package -n %{libname}
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%prep
05aa54
%autosetup -p1 -n akonadi-calendar-%{version}
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%build
6a7a87
%cmake_kf5 -d build -- -DBUILD_TESTING=ON
94246a
%cmake_build
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%install
94246a
%kf5_makeinstall -C build
94246a
6a7a87
%find_lang %{libname} --with-man --all-name
Bernhard M. Wiedemann 2b2945
6a7a87
%ldconfig_scriptlets -n libKPim5AkonadiCalendar5
Bernhard M. Wiedemann 2b2945
6a7a87
%files
Bernhard M. Wiedemann 911e95
%license LICENSES/*
Bernhard M. Wiedemann 2b2945
%{_kf5_debugdir}/*.categories
Bernhard M. Wiedemann 2b2945
%{_kf5_debugdir}/*.renamecategories
a2e1e6
%exclude %{_kf5_debugdir}/org_kde_kalendarac.categories
Bernhard M. Wiedemann 2b2945
6a7a87
%files -n libKPim5AkonadiCalendar5
6a7a87
%{_kf5_libdir}/libKPim5AkonadiCalendar.so.*
6a7a87
Bernhard M. Wiedemann 2b2945
%files -n akonadi-plugin-calendar
Bernhard M. Wiedemann 2b2945
%{_kf5_plugindir}/akonadi_serializer_kcalcore.so
Bernhard M. Wiedemann 2b2945
%dir %{_kf5_sharedir}/akonadi
Bernhard M. Wiedemann 2b2945
%dir %{_kf5_sharedir}/akonadi/plugins
Bernhard M. Wiedemann 2b2945
%dir %{_kf5_sharedir}/akonadi/plugins/serializer
79a40f
%dir %{_kf5_plugindir}/kf5/
79a40f
%dir %{_kf5_plugindir}/kf5/org.kde.kcalendarcore.calendars
79a40f
%{_kf5_plugindir}/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so
Bernhard M. Wiedemann 2b2945
%{_kf5_sharedir}/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop
Bernhard M. Wiedemann 2b2945
a2e1e6
%files -n kalendarac
a2e1e6
%{_kf5_bindir}/kalendarac
a2e1e6
%{_kf5_configdir}/autostart/org.kde.kalendarac.desktop
a2e1e6
%{_kf5_debugdir}/org_kde_kalendarac.categories
a2e1e6
%{_kf5_notifydir}/kalendarac.notifyrc
a2e1e6
%{_kf5_sharedir}/dbus-1/services/org.kde.kalendarac.service
a2e1e6
Bernhard M. Wiedemann 2b2945
%files devel
6a7a87
%dir %{_includedir}/KPim5
6a7a87
%{_includedir}/KPim5/AkonadiCalendar/
05aa54
%{_kf5_cmakedir}/KF5AkonadiCalendar/
6a7a87
%{_kf5_cmakedir}/KPim5AkonadiCalendar/
6a7a87
%{_kf5_libdir}/libKPim5AkonadiCalendar.so
Bernhard M. Wiedemann 2b2945
%{_kf5_mkspecsdir}/qt_AkonadiCalendar.pri
Bernhard M. Wiedemann 2b2945
6a7a87
%files -n %{libname}-lang -f %{libname}.lang
Bernhard M. Wiedemann 2b2945
Bernhard M. Wiedemann 2b2945
%changelog