ENH: fix for RPM generator from Eric

This commit is contained in:
Bill Hoffman 2007-11-01 09:52:09 -04:00
parent 9371ac21a0
commit a1a5895c89
1 changed files with 20 additions and 10 deletions

View File

@ -110,7 +110,19 @@ ENDIF(NOT CPACK_RPM_PACKAGE_VENDOR)
# a source RPM # a source RPM
# CPACK_RPM_PACKAGE_DESCRIPTION # CPACK_RPM_PACKAGE_DESCRIPTION
# FIXME may be found in CPACK_PACKAGE_DESCRIPTION_FILE # The variable content may be either
# - explicitely given by tthe user or
# - filled with the content of CPACK_PACKAGE_DESCRIPTION_FILE
# if it is defined
# - set to a default value
#
IF (NOT CPACK_RPM_PACKAGE_DESCRIPTION)
IF (CPACK_PACKAGE_DESCRIPTION_FILE)
FILE(READ ${CPACK_PACKAGE_DESCRIPTION_FILE} CPACK_RPM_PACKAGE_DESCRIPTION)
ELSE (CPACK_PACKAGE_DESCRIPTION_FILE)
SET(CPACK_RPM_PACKAGE_DESCRIPTION "no package description available")
ENDIF (CPACK_PACKAGE_DESCRIPTION_FILE)
ENDIF (NOT CPACK_RPM_PACKAGE_DESCRIPTION)
# CPACK_RPM_USER_BINARY_SPECFILE # CPACK_RPM_USER_BINARY_SPECFILE
# FIXME when this is set then CPack should us the # FIXME when this is set then CPack should us the
@ -173,19 +185,17 @@ Vendor: ${CPACK_RPM_PACKAGE_VENDOR}
%define _topdir ${CPACK_RPM_DIRECTORY} %define _topdir ${CPACK_RPM_DIRECTORY}
%description %description
${CPACK_RPM_PACKAGE_NAME} : will come soon
with the value of CPACK_RPM_PACKAGE_DESCRIPTION
or
the content of CPACK_PACKAGE_DESCRIPTION_FILE
***
${CPACK_RPM_PACKAGE_DESCRIPTION} ${CPACK_RPM_PACKAGE_DESCRIPTION}
***
%prep # This is a shortcutted spec file
# generated by CMake RPM generator
# we skip the %prepn %build and %install
# steps because CPack does that for us
#%prep
%build #%build
%install #%install
%clean %clean