!21 fixed kf5-kirigami2 build failure in openEuler-24.03-LTS-SP1:epol
From: @chenyanpanX Reviewed-by: @misaka00251 Signed-off-by: @misaka00251
This commit is contained in:
commit
81d16b3b72
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Name: kf5-%{framework}
|
Name: kf5-%{framework}
|
||||||
Version: 5.113.0
|
Version: 5.113.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: QtQuick plugins to build user interfaces based on the KDE UX guidelines
|
Summary: QtQuick plugins to build user interfaces based on the KDE UX guidelines
|
||||||
|
|
||||||
# All LGPLv2+ except for src/desktopicons.h (GPLv2+)
|
# All LGPLv2+ except for src/desktopicons.h (GPLv2+)
|
||||||
@ -61,30 +61,18 @@ developing applications that use %{name}.
|
|||||||
%autosetup -n %{framework}-%{version} -p1
|
%autosetup -n %{framework}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir %{_target_platform}
|
%{cmake_kf5}
|
||||||
pushd %{_target_platform}
|
%{cmake_build}
|
||||||
%{cmake_kf5} .. \
|
|
||||||
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
|
||||||
popd
|
|
||||||
|
|
||||||
make %{?_smp_mflags} -C %{_target_platform}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
%{cmake_install}
|
||||||
|
|
||||||
%find_lang_kf5 libkirigami2plugin_qt
|
%find_lang_kf5 libkirigami2plugin_qt
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?tests}
|
%{ctest}
|
||||||
## known failure(s), not sure if possible to enable opengl/glx using
|
|
||||||
## virtualized server (QT_XCB_FORCE_SOFTWARE_OPENGL doesn't seem to help)
|
|
||||||
#2/2 Test #2: qmltests .........................***Exception: Other 0.19 sec
|
|
||||||
#Could not initialize GLX
|
|
||||||
export QT_XCB_FORCE_SOFTWARE_OPENGL=1
|
|
||||||
export CTEST_OUTPUT_ON_FAILURE=1
|
|
||||||
xvfb-run -a \
|
|
||||||
make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -f libkirigami2plugin_qt.lang
|
%files -f libkirigami2plugin_qt.lang
|
||||||
# README is currently only build instructions, omit for now
|
# README is currently only build instructions, omit for now
|
||||||
@ -105,6 +93,9 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
|
|||||||
%{_kf5_datadir}/kdevappwizard/templates/kirigami.tar.bz2
|
%{_kf5_datadir}/kdevappwizard/templates/kirigami.tar.bz2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.113.0-2
|
||||||
|
- adapt to the new CMake macros to fix build failure
|
||||||
|
|
||||||
* Wed Jan 03 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.113.0-1
|
* Wed Jan 03 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.113.0-1
|
||||||
- Update package to version 5.113.0
|
- Update package to version 5.113.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user