diff --git a/CMakeLists.txt b/CMakeLists.txt index b5f61f6a40..93df11ac78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2715,8 +2715,8 @@ if(RPMBUILD_EXECUTABLE) if(CCACHE_EXECUTABLE) list(APPEND _rpmbuild_with_args --with ccache) endif() - if (BUILD_wireshark) - list(APPEND _rpmbuild_with_args --with qt5) + if(NOT BUILD_wireshark) + list(APPEND _rpmbuild_with_args --without qt5) endif() if (MAXMINDDB_FOUND) list(APPEND _rpmbuild_with_args --with mmdbresolve) diff --git a/packaging/rpm/wireshark.spec.in b/packaging/rpm/wireshark.spec.in index 262aee93cb..566fdcc73b 100644 --- a/packaging/rpm/wireshark.spec.in +++ b/packaging/rpm/wireshark.spec.in @@ -13,8 +13,8 @@ %bcond_with mmdbresolve %bcond_with lz4_and_snappy %bcond_with c_ares -%bcond_without spandsp -%bcond_without bcg729 +%bcond_with spandsp +%bcond_with bcg729 %bcond_with libxml2 %bcond_with nghttp2 %bcond_with sdjournal