2019-10-11 14:55:48 +02:00
|
|
|
#
|
|
|
|
# spec file for package kcalendarcore
|
|
|
|
#
|
2021-01-09 13:18:41 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-10-11 14:55:48 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2024-01-15 15:12:03 +01:00
|
|
|
%define qt5_version 5.15.2
|
2022-01-09 11:14:59 +01:00
|
|
|
%bcond_without released
|
2019-10-11 14:55:48 +02:00
|
|
|
Name: kcalendarcore
|
2024-02-10 13:47:35 +01:00
|
|
|
Version: 5.115.0
|
2019-10-11 14:55:48 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to access and handle calendar data
|
2019-10-15 21:27:05 +02:00
|
|
|
License: LGPL-2.0-or-later
|
2019-10-11 14:55:48 +02:00
|
|
|
URL: https://www.kde.org
|
2021-11-12 13:20:49 +01:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-01-09 11:14:59 +01:00
|
|
|
%if %{with released}
|
2021-11-12 13:20:49 +01:00
|
|
|
Source1: %{name}-%{version}.tar.xz.sig
|
2019-10-11 14:55:48 +02:00
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_version}
|
2021-08-27 15:10:43 +02:00
|
|
|
BuildRequires: fdupes
|
2021-01-09 13:18:41 +01:00
|
|
|
BuildRequires: cmake(LibIcal) >= 3.0
|
2024-01-15 15:12:03 +01:00
|
|
|
BuildRequires: cmake(Qt5Core) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Gui) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Test) >= %{qt5_version}
|
2019-10-11 14:55:48 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
KCalendarCore is a library to provide access to and handling of calendar data.
|
|
|
|
It supports the standard formats iCalendar and vCalendar and the group
|
|
|
|
scheduling standard iTIP.
|
|
|
|
|
|
|
|
%package -n libKF5CalendarCore5
|
|
|
|
Summary: Library to access to and handle calendar data
|
|
|
|
|
|
|
|
%description -n libKF5CalendarCore5
|
|
|
|
KCalendarCore is a library to provide access to and handling of calendar data.
|
|
|
|
It supports the standard formats iCalendar and vCalendar and the group
|
|
|
|
scheduling standard iTIP.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for kcalendarcore, a library to handle calendar data
|
|
|
|
Requires: libKF5CalendarCore5 = %{version}
|
2021-01-09 13:18:41 +01:00
|
|
|
Requires: cmake(LibIcal) >= 3.0
|
2019-10-11 14:55:48 +02:00
|
|
|
# kcalcore-devel version was 19.11.70 in the unstable repo, 19.08.1 in stable
|
|
|
|
Provides: kcalcore-devel
|
|
|
|
Obsoletes: kcalcore-devel < 19.12
|
|
|
|
# kcalcore5 was provided/obsoleted by kcalcore
|
|
|
|
Provides: kcalcore5-devel
|
|
|
|
Obsoletes: kcalcore5-devel < 19.12
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
KCalendarCore is a library to provide access to and handling of calendar data.
|
|
|
|
It supports the standard formats iCalendar and vCalendar and the group
|
|
|
|
scheduling standard iTIP. This package contains the headers necessary to
|
|
|
|
develop applications making use of KCalendarCore.
|
|
|
|
|
|
|
|
%prep
|
2021-05-09 09:41:54 +02:00
|
|
|
%autosetup -p1
|
2019-10-11 14:55:48 +02:00
|
|
|
|
|
|
|
%build
|
2021-08-27 15:10:43 +02:00
|
|
|
%ifarch ppc64
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
%endif
|
|
|
|
|
2021-05-09 09:41:54 +02:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
2019-10-11 14:55:48 +02:00
|
|
|
|
|
|
|
%install
|
2021-05-09 09:41:54 +02:00
|
|
|
%kf5_makeinstall -C build
|
2019-10-11 14:55:48 +02:00
|
|
|
|
2021-08-27 15:10:43 +02:00
|
|
|
%fdupes %{buildroot}%{_kf5_includedir}
|
|
|
|
|
2023-02-12 10:52:50 +01:00
|
|
|
%ldconfig_scriptlets -n libKF5CalendarCore5
|
2019-10-11 14:55:48 +02:00
|
|
|
|
|
|
|
%files -n libKF5CalendarCore5
|
2020-07-11 12:30:43 +02:00
|
|
|
%license LICENSES/*
|
2019-10-11 14:55:48 +02:00
|
|
|
%{_kf5_debugdir}/*.categories
|
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2020-07-11 12:30:43 +02:00
|
|
|
%{_kf5_libdir}/libKF5CalendarCore.so.*
|
2019-10-11 14:55:48 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_kf5_cmakedir}/KF5CalendarCore/
|
|
|
|
%{_kf5_includedir}/KCalendarCore/
|
|
|
|
%{_kf5_includedir}/kcalcore_version.h
|
|
|
|
%{_kf5_libdir}/libKF5CalendarCore.so
|
2021-07-10 13:49:46 +02:00
|
|
|
%{_kf5_libdir}/pkgconfig/KF5CalendarCore.pc
|
2019-10-11 14:55:48 +02:00
|
|
|
%{_kf5_mkspecsdir}/qt_KCalendarCore.pri
|
|
|
|
|
|
|
|
%changelog
|