adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-15 19:40:09 +08:00
parent 86a33ceab1
commit f8f7a51093
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -9,7 +9,7 @@
Name: kf5-%{framework}
Version: 5.113.0
Release: 1
Release: 2
Summary: QtQuick plugins to build user interfaces based on the KDE UX guidelines
# All LGPLv2+ except for src/desktopicons.h (GPLv2+)
@ -61,30 +61,18 @@ developing applications that use %{name}.
%autosetup -n %{framework}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%{cmake_kf5}
%{cmake_build}
make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang_kf5 libkirigami2plugin_qt
%check
%if 0%{?tests}
## 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
%{ctest}
%files -f libkirigami2plugin_qt.lang
# 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
%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
- Update package to version 5.113.0