adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-15 19:38:43 +08:00
parent 198010737b
commit cbf6ad53f1
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -12,7 +12,7 @@
Name: kdecoration Name: kdecoration
Summary: A plugin-based library to create window decorations Summary: A plugin-based library to create window decorations
Version: 5.27.10 Version: 5.27.10
Release: 1 Release: 2
License: LGPLv2 License: LGPLv2
URL: https://cgit.kde.org/%{name}.git URL: https://cgit.kde.org/%{name}.git
@ -57,28 +57,18 @@ sed -i "s/set(KDECORATION2_INCLUDEDIR \"\${CMAKE_INSTALL_INCLUDEDIR}\/KDecoratio
%build %build
mkdir %{_target_platform} %{cmake_kf5}
pushd %{_target_platform} %{cmake_build}
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%make_build -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %{cmake_install}
# create/own plugin dir # create/own plugin dir
mkdir -p %{buildroot}%{_kf5_qtplugindir}/org.kde.kdecoration2/ mkdir -p %{buildroot}%{_kf5_qtplugindir}/org.kde.kdecoration2/
%check %check
%if 0%{?tests} %{ctest}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%endif
%ldconfig_scriptlets %ldconfig_scriptlets
@ -98,6 +88,9 @@ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%changelog %changelog
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.27.10-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.27.10-1 * Mon Jan 08 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.27.10-1
- Update package to version 5.27.10 - Update package to version 5.27.10