adapt to the new CMake macros to fix build failure
This commit is contained in:
parent
198010737b
commit
cbf6ad53f1
@ -12,7 +12,7 @@
|
||||
Name: kdecoration
|
||||
Summary: A plugin-based library to create window decorations
|
||||
Version: 5.27.10
|
||||
Release: 1
|
||||
Release: 2
|
||||
|
||||
License: LGPLv2
|
||||
URL: https://cgit.kde.org/%{name}.git
|
||||
@ -57,28 +57,18 @@ sed -i "s/set(KDECORATION2_INCLUDEDIR \"\${CMAKE_INSTALL_INCLUDEDIR}\/KDecoratio
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake_kf5} .. \
|
||||
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
||||
popd
|
||||
|
||||
%make_build -C %{_target_platform}
|
||||
%{cmake_kf5}
|
||||
%{cmake_build}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
%{cmake_install}
|
||||
|
||||
# create/own plugin dir
|
||||
mkdir -p %{buildroot}%{_kf5_qtplugindir}/org.kde.kdecoration2/
|
||||
|
||||
%check
|
||||
%if 0%{?tests}
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
xvfb-run -a \
|
||||
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
|
||||
%endif
|
||||
|
||||
%{ctest}
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
@ -98,6 +88,9 @@ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
|
||||
|
||||
|
||||
%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
|
||||
- Update package to version 5.27.10
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user