Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Differentiate notation of 'CPACK_PACKAGE_VERSION' for DEB and RPM (RI…
Browse files Browse the repository at this point in the history
…TDEV-628)
  • Loading branch information
mcoonen committed Apr 18, 2019
1 parent 8097026 commit 0f94cfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,16 @@ message(STATUS "Found Linux distro ${DETECTED_OS}")
# Determine which type of package should be generated
if(DETECTED_OS MATCHES "^(Ubuntu|Debian)$")
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_VERSION "${IRODS_VERSION}-${MSI_RELEASE_VERSION}")
elseif(DETECTED_OS MATCHES "^(CentOS|RedHatCompatible)$")
set(CPACK_GENERATOR "RPM")
set(CPACK_PACKAGE_VERSION "${IRODS_VERSION}_${MSI_RELEASE_VERSION}")
endif()
message(STATUS "Using CPACK generator ${CPACK_GENERATOR}")

set(CPACK_PACKAGE_NAME "rit-irods-microservices")
set(CPACK_PACKAGE_VENDOR "DataHub Maastricht University <[email protected]>")
set(CPACK_PACKAGE_CONTACT "DataHub Maastricht University <[email protected]>")
set(CPACK_PACKAGE_VERSION "${IRODS_VERSION}_${MSI_RELEASE_VERSION}")

#set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/packaging/description.txt")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "iRODS microservices for the RIT project")
Expand All @@ -166,7 +167,7 @@ set(CPACK_RPM_PACKAGE_URL "https://github.com/MaastrichtUniversity/rit-irods-mic
set(CPACK_RPM_PACKAGE_AUTOREQ 0)
set(CPACK_RPM_PACKAGE_AUTOPROV 0)

set(CPACK_DEBIAN_PACKAGE_DEPENDS "irods-server = ${IRODS_VERSION}, irods-runtime = ${IRODS_VERSION}")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "irods-server (= ${IRODS_VERSION}), irods-runtime (= ${IRODS_VERSION})")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/MaastrichtUniversity/rit-irods-microservices")
set(CPACK_DEBIAN_PACKAGE_SECTION "contrib/science")

Expand Down

0 comments on commit 0f94cfb

Please sign in to comment.