Please forgive me for posting this again, but I think it would be better to have it in Matrix logs too: Would you mind to create and change the directory first? ``` %build mkdir build cd build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ .. cmake --build . %install cd build rm -rf %{buildroot} DESTDIR=$RPM_BUILD_ROOT cmake --build . --target install ``` This works for me in my telegram-qt build. Check my telegram-qt spec and build status here: https://build.merproject.org/package/show/c:telepathy:devel:morse/telegram-qt (I wrote the spec time ago and I would do it different nowadays, but the thing is that special build directory works in this sample.)