!17 fixed kf5-khtml build failure in openEuler-24.03-LTS-SP1:epol

From: @chenyanpanX 
Reviewed-by: @misaka00251 
Signed-off-by: @misaka00251
This commit is contained in:
openeuler-ci-bot 2024-11-19 07:14:44 +00:00 committed by Gitee
commit e4537b99b1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,12 +2,12 @@
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
Name: kf5-%{framework}
Version: 5.113.0
Release: 1
Release: 2
Summary: KDE Frameworks 5 Tier 4 solution with KHTML, a HTML rendering engine
License: LGPLv2+ and GPLv3 and MIT and BSD
URL: https://invent.kde.org/frameworks/%{framework}
%global majmin %majmin_ver_kf5
%global majmin %majmin_ver_kf5
%global stable %stable_kf5
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/portingAids/%{framework}-%{version}.tar.xz
@ -63,15 +63,14 @@ developing applications that use %{name}.
%autosetup -n %{framework}-%{version}
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
%{cmake_kf5} \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
popd
make %{?_smp_mflags} -C %{_target_platform}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang khtml5_qt --with-qt --all-name
%ldconfig_scriptlets
@ -93,6 +92,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{_kf5_archdatadir}/mkspecs/modules/qt_KHtml.pri
%changelog
* Mon Nov 18 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.113.0-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 haomimi <haomimi@uniontech.com> - 5.113.0-1
- Update to upstream version 5.113.0