From 1908a88df0e49d8dde4e8209c7a2376b196c59f912087bd3c9da4a7ca4ab1f9f Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Fri, 27 Aug 2021 13:10:43 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcalendarcore?expand=0&rev=47 --- kcalendarcore.changes | 5 +++++ kcalendarcore.spec | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/kcalendarcore.changes b/kcalendarcore.changes index 1ae9f15..fbd7875 100644 --- a/kcalendarcore.changes +++ b/kcalendarcore.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 27 13:10:38 UTC 2021 - Christophe Giboudeaux + +- Disable lto for ppc64 builds. + ------------------------------------------------------------------- Fri Aug 6 12:11:29 UTC 2021 - Christophe Giboudeaux diff --git a/kcalendarcore.spec b/kcalendarcore.spec index c86a009..7db31ac 100644 --- a/kcalendarcore.spec +++ b/kcalendarcore.spec @@ -35,6 +35,7 @@ Source1: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}- Source2: frameworks.keyring %endif BuildRequires: extra-cmake-modules >= %{_kf5_version} +BuildRequires: fdupes BuildRequires: cmake(LibIcal) >= 3.0 BuildRequires: cmake(Qt5Core) >= 5.15.0 BuildRequires: cmake(Qt5Gui) >= 5.15.0 @@ -76,12 +77,18 @@ develop applications making use of KCalendarCore. %autosetup -p1 %build +%ifarch ppc64 +%define _lto_cflags %{nil} +%endif + %cmake_kf5 -d build %cmake_build %install %kf5_makeinstall -C build +%fdupes %{buildroot}%{_kf5_includedir} + %post -n libKF5CalendarCore5 -p /sbin/ldconfig %postun -n libKF5CalendarCore5 -p /sbin/ldconfig