|
|
@@ -8,9 +8,6 @@ endfunction()
|
|
|
if(GENERATOR_TYPE STREQUAL "DEB")
|
|
|
set(name_ "Package")
|
|
|
set(group_ "Section")
|
|
|
- # NOTE For a Debian package the first line of the `Description`
|
|
|
- # field is generated by CMake and gonna be ignored
|
|
|
- set(ignore_rest_cond_ ".*\n")
|
|
|
elseif(GENERATOR_TYPE STREQUAL "RPM")
|
|
|
set(name_ "Name")
|
|
|
set(group_ "Group")
|
|
|
@@ -36,6 +33,6 @@ if(GENERATOR_TYPE STREQUAL "RPM")
|
|
|
endif()
|
|
|
|
|
|
# check package description
|
|
|
-checkPackageInfo_("description" "${FOUND_FILE_1}" ".*Description${whitespaces_}:${ignore_rest_cond_}${whitespaces_}Description for pkg_1")
|
|
|
-checkPackageInfo_("description" "${FOUND_FILE_2}" ".*Description${whitespaces_}:${ignore_rest_cond_}${whitespaces_}Description for pkg_2")
|
|
|
-checkPackageInfo_("description" "${FOUND_FILE_3}" ".*Description${whitespaces_}:${ignore_rest_cond_}${whitespaces_}Description for pkg_3")
|
|
|
+checkPackageInfo_("description" "${FOUND_FILE_1}" ".*Description${whitespaces_}:${whitespaces_}Description for pkg_1")
|
|
|
+checkPackageInfo_("description" "${FOUND_FILE_2}" ".*Description${whitespaces_}:${whitespaces_}Description for pkg_2")
|
|
|
+checkPackageInfo_("description" "${FOUND_FILE_3}" ".*Description${whitespaces_}:${whitespaces_}Description for pkg_3")
|