1
0
forked from pool/kcalendarcore

Accepting request 914619 from KDE:Frameworks5

- Disable lto for ppc64 builds.

OBS-URL: https://build.opensuse.org/request/show/914619
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kcalendarcore?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2021-08-31 17:55:01 +00:00 committed by Git OBS Bridge
commit da5aadfea3
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 27 13:10:38 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Disable lto for ppc64 builds.
-------------------------------------------------------------------
Fri Aug 6 12:11:29 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -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