diff options
author | Eric Noulard <eric.noulard@gmail.com> | 2009-11-11 20:27:44 (GMT) |
---|---|---|
committer | Eric Noulard <eric.noulard@gmail.com> | 2009-11-11 20:27:44 (GMT) |
commit | c0814f415548fd339acf95d11bd640d8341f2727 (patch) | |
tree | 5b1499993ce7ef8913a5ef6f33dc1219c9d9b192 /Modules/CPackRPM.cmake | |
parent | 1b48d361d81d537c738f6271cd17194f8c803284 (diff) | |
download | CMake-c0814f415548fd339acf95d11bd640d8341f2727.zip CMake-c0814f415548fd339acf95d11bd640d8341f2727.tar.gz CMake-c0814f415548fd339acf95d11bd640d8341f2727.tar.bz2 |
CPackRPM:: support user supplied "Provides" in spec file (fix bug 9584)
Eric
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r-- | Modules/CPackRPM.cmake | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index 6aa867a..44c5c53 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -52,7 +52,11 @@ # CPACK_RPM_PACKAGE_REQUIRES # Mandatory : NO # Default : - -# May be used to set RPM dependencies. +# May be used to set RPM dependencies (requires). +# CPACK_RPM_PACKAGES_PROVIDES +# Mandatory : NO +# Default : - +# May be used to set RPM dependencies (provides). # CPACK_RPM_SPEC_INSTALL_POST # Mandatory : NO # Default : - @@ -250,6 +254,16 @@ IF(CPACK_RPM_PACKAGE_REQUIRES) SET(TMP_RPM_REQUIRES "Requires: ${CPACK_RPM_PACKAGE_REQUIRES}") ENDIF(CPACK_RPM_PACKAGE_REQUIRES) +# CPACK_RPM_PACKAGE_PROVIDES +# Placeholder used to specify binary RPM dependencies (if any) +# see http://www.rpm.org/max-rpm/s1-rpm-depend-manual-dependencies.html +IF(CPACK_RPM_PACKAGE_PROVIDES) + IF(CPACK_RPM_PACKAGE_DEBUG) + MESSAGE("CPackRPM:Debug: User defined Provides:\n ${CPACK_RPM_PACKAGE_PROVIDES}") + ENDIF(CPACK_RPM_PACKAGE_DEBUG) + SET(TMP_RPM_PROVIDES "Provides: ${CPACK_RPM_PACKAGE_PROVIDES}") +ENDIF(CPACK_RPM_PACKAGE_PROVIDES) + # CPACK_RPM_SPEC_INSTALL_POST # May be used to define a RPM post intallation script # for example setting it to "/bin/true" may prevent @@ -327,6 +341,7 @@ License: \@CPACK_RPM_PACKAGE_LICENSE\@ Group: \@CPACK_RPM_PACKAGE_GROUP\@ Vendor: \@CPACK_RPM_PACKAGE_VENDOR\@ \@TMP_RPM_REQUIRES\@ +\@TMP_RPM_PROVIDES\@ \@TMP_RPM_BUILDARCH\@ #p define prefix \@CMAKE_INSTALL_PREFIX\@ |