Skip to content

Commit

Permalink
chore: clean up CPack config
Browse files Browse the repository at this point in the history
  • Loading branch information
CoelacanthusHex committed Feb 8, 2024
1 parent 3a73359 commit 88df7f6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cmake/deployment.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Packaging
set(CPACK_PACKAGE_NAME "LemonLime")
set(CPACK_PACKAGE_VENDOR "Coelacanthus")
set(CPACK_PACKAGE_VERSION ${VERSION_STRING})
set(CPACK_PACKAGE_VENDOR "Project LemonLime Developers")
set(CPACK_PACKAGE_DESCRIPTION "A tiny judging environment for OI contest based on Lemon + LemonPlus.")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/Project-LemonLime/Project_LemonLime")
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/assets/lemon-lime.ico")
Expand All @@ -18,8 +17,7 @@ if(UNIX)
if(BUILD_DEB)
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_NAME "LemonLime")
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Coelacanthus")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Project LemonLime Developers")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qtbase5-dev, qttools5-dev, libspdlog")
endif()

Expand All @@ -28,14 +26,13 @@ if(UNIX)
#set(CPACK_RPM_USER_BINARY_SPECFILE "${CMAKE_CURRENT_BINARY_DIR}/lemonlime.spec")
set(CPACK_GENERATOR "RPM")
set(CPACK_RPM_PACKAGE_NAME "LemonLime")
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_RPM_PACKAGE_VENDOR "Coelacanthus")
set(CPACK_RPM_PACKAGE_VENDOR "Project LemonLime Developers")
if(LSB_RELEASE_ID_SHORT EQUAL "openSUSE")
set(CPACK_RPM_BUILDREQUIRES "cmake >= 3.9, libqt5-qtbase-common-devel >= 5.15, libQt5Core-devel, libQt5Gui-devel, libQt5Network-devel, libQt5Widgets-devel, libQt5Concurrent-devel, libqt5-linguist-devel, libqt5-qtsvg-devel, update-desktop-files, ninja, spdlog-devel")
else()
set(CPACK_RPM_BUILDREQUIRES "cmake >= 3.9, qt5-qtbase-devel >= 5.15, qt5-linguist, qt5-qtsvg-devel, desktop-file-utils, ninja-build, spdlog")
endif()
set(CPACK_RPM_PACKAGE_LICENSE "GPL3")
set(CPACK_RPM_PACKAGE_LICENSE "GPL-3.0-or-later")
endif()
endif()

Expand Down

0 comments on commit 88df7f6

Please sign in to comment.