Skip to content

Commit

Permalink
Fix KIO package being handled differently on opsnsuse
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Nov 3, 2024
1 parent 681360f commit e4bdaca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}-${CPA
if (CPACK_OS STREQUAL "ubuntu")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libkf${QT_MAJOR_VERSION}kiowidgets${QT_MAJOR_VERSION} (>=${KIO_VERSION})")
set(CPACK_GENERATOR "DEB")
elseif(CPACK_OS STREQUAL "fedora" OR CPACK_OS STREQUAL "opensuse")
elseif(CPACK_OS STREQUAL "fedora")
set(CPACK_RPM_PACKAGE_REQUIRES "kf${QT_MAJOR_VERSION}-kio-widgets >= ${KIO_VERSION}")
set(CPACK_GENERATOR "RPM")
elseif(CPACK_OS STREQUAL "opensuse")
if(${QT_MAJOR_VERSION} STREQUAL 5)
set(CPACK_RPM_PACKAGE_REQUIRES "kio>= ${KIO_VERSION}")
else()
set(CPACK_RPM_PACKAGE_REQUIRES "kf${QT_MAJOR_VERSION}-kio>= ${KIO_VERSION}")
endif()
set(CPACK_GENERATOR "RPM")
else()
unset(CPACK_PACKAGE_FILE_NAME)
endif()
Expand Down

0 comments on commit e4bdaca

Please sign in to comment.