!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,7 +2,7 @@
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$ %global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.113.0 Version: 5.113.0
Release: 1 Release: 2
Summary: KDE Frameworks 5 Tier 4 solution with KHTML, a HTML rendering engine Summary: KDE Frameworks 5 Tier 4 solution with KHTML, a HTML rendering engine
License: LGPLv2+ and GPLv3 and MIT and BSD License: LGPLv2+ and GPLv3 and MIT and BSD
URL: https://invent.kde.org/frameworks/%{framework} URL: https://invent.kde.org/frameworks/%{framework}
@ -63,15 +63,14 @@ developing applications that use %{name}.
%autosetup -n %{framework}-%{version} %autosetup -n %{framework}-%{version}
%build %build
mkdir %{_target_platform} %{cmake_kf5} \
pushd %{_target_platform}
%{cmake_kf5} .. \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
popd
make %{?_smp_mflags} -C %{_target_platform} %{cmake_build}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %{cmake_install}
%find_lang khtml5_qt --with-qt --all-name %find_lang khtml5_qt --with-qt --all-name
%ldconfig_scriptlets %ldconfig_scriptlets
@ -93,6 +92,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{_kf5_archdatadir}/mkspecs/modules/qt_KHtml.pri %{_kf5_archdatadir}/mkspecs/modules/qt_KHtml.pri
%changelog %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 * Mon Jan 08 2024 haomimi <haomimi@uniontech.com> - 5.113.0-1
- Update to upstream version 5.113.0 - Update to upstream version 5.113.0