Fix RPM changelog

This commit is contained in:
Christian Tosta
2025-07-15 04:15:19 -03:00
parent 3377b66eb0
commit 7b75def10f
2 changed files with 10 additions and 1 deletions

View File

@@ -61,6 +61,14 @@ configure_file(
)
if(BUILD_RPMS)
execute_process(
COMMAND bash -c
"LANG=C DATE=$(date +'%a %b %d %Y'); \
echo \"* $DATE %{packager} - ${PROJECT_VERSION}-1%{?dist}\"; \
echo \"- This is an automatically built package (See our Git URL for more info).\"; \
"
OUTPUT_VARIABLE CPACK_RPM_CHANGELOG
)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/packaging/pkg.spec.in"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.spec"
@ONLY