diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2010-07-04 09:43:33 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2010-07-04 09:43:33 (GMT) |
commit | 7486396e5b4272546f085f0721294bb01e083202 (patch) | |
tree | b39b9afe3523eba87f923146136f114cdfb5e910 /Modules | |
parent | efee95cd710808ca7ac261359b9b8e6dacb09211 (diff) | |
download | CMake-7486396e5b4272546f085f0721294bb01e083202.zip CMake-7486396e5b4272546f085f0721294bb01e083202.tar.gz CMake-7486396e5b4272546f085f0721294bb01e083202.tar.bz2 |
CPackRPM:: Replace - with _ in RPM Version (fix bug 0010934)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackRPM.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index 3bf8e0e..e9fe66c 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -213,6 +213,11 @@ IF(NOT CPACK_RPM_PACKAGE_VERSION) ENDIF(NOT CPACK_PACKAGE_VERSION) SET(CPACK_RPM_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) ENDIF(NOT CPACK_RPM_PACKAGE_VERSION) +# Replace '-' in version with '_' +# '-' character is an Illegal RPM version character +# it is illegal because it is used to separate +# RPM "Version" from RPM "Release" +STRING(REPLACE "-" "_" CPACK_RPM_PACKAGE_VERSION ${CPACK_RPM_PACKAGE_VERSION}) # CPACK_RPM_PACKAGE_ARCHITECTURE (optional) IF(CPACK_RPM_PACKAGE_ARCHITECTURE) |