On 25/08/2021 09:11, Lumír Balhar wrote:
Could you please briefly explain the difference?
If you package uses KDE Frameworks, you should use a special cmake macro - %cmake_kf5.
It will automatically export the required build settings like KDE_INSTALL_BINDIR, KDE_INSTALL_LIBDIR, etc.
$ rpm -E %cmake_kf5 ... /usr/bin/cmake \ -S "." \ -B "x86_64-redhat-linux-gnu" \ -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \ -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_TESTING:BOOL=FALSE \ -DCMAKE_BUILD_TYPE=release \ -DCMAKE_INSTALL_INCLUDEDIR_KF5:PATH=/usr/include/KF5 \ -DCMAKE_INSTALL_LIBEXECDIR_KF5:PATH=/usr/libexec/kf5 \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_USE_RELATIVE_PATHS:BOOL=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DECM_MKSPECS_INSTALL_DIR:PATH=/usr/lib64/qt5/mkspecs/modules \ -DKDE_INSTALL_BINDIR:PATH=/usr/bin \ -DKDE_INSTALL_INCLUDEDIR:PATH=/usr/include \ -DKDE_INSTALL_KCFGDIR:PATH=/usr/share/config.kcfg \ -DKDE_INSTALL_LIBDIR:PATH=/usr/lib64 \ -DKDE_INSTALL_LIBEXECDIR:PATH=/usr/libexec \ -DKDE_INSTALL_METAINFODIR:PATH=/usr/share/metainfo \ -DKDE_INSTALL_PLUGINDIR:PATH=/usr/lib64/qt5/plugins \ -DKDE_INSTALL_QMLDIR:PATH=/usr/lib64/qt5/qml \ -DKDE_INSTALL_QTPLUGINDIR:PATH=/usr/lib64/qt5/plugins \ -DKDE_INSTALL_QTQUICKIMPORTSDIR:PATH=/usr/lib64/qt5/imports \ -DKDE_INSTALL_SYSCONFDIR:PATH=/etc \ -DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON -- Sincerely, Vitaly Zaitsev (vitaly@xxxxxxxxxxxxxx) _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure