RPM packaging scripts

This commit is contained in:
Nav
2023-01-18 00:38:18 +00:00
parent 7c696bf840
commit f3e97d0ab9
3 changed files with 149 additions and 0 deletions

View File

@@ -24,3 +24,22 @@ configure_file(
WORLD_READ
@ONLY
)
# Generate the RPM spec file and packaging script
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/packaging/rpm")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/build/packaging/rpm/bloom.spec.in"
"${CMAKE_BINARY_DIR}/packaging/rpm/bloom.spec"
@ONLY
)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/build/packaging/rpm/package-rpm.sh.in"
"${CMAKE_BINARY_DIR}/packaging/package-rpm.sh"
FILE_PERMISSIONS
OWNER_EXECUTE OWNER_READ OWNER_WRITE
GROUP_READ
WORLD_READ
@ONLY
)