Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/build_rpm_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
rm -rf build_rpm_package
cmake -B build_rpm_package -DCMAKE_BUILD_TYPE=Release -G Ninja
cmake --build build_rpm_package || exit 1
echo "* $(date +"%a %b %d %Y") filc developers - $(cat VERSION)
- Package from git sha $(git show-ref --head -s HEAD)" > build_rpm_package/changelog
cd build_rpm_package || exit 1
cpack -G RPM
2 changes: 2 additions & 0 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function(filc_package)
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
set(CPACK_RPM_PACKAGE_GROUP "Development/Tools")
set(CPACK_RPM_PACKAGE_DESCRIPTION "Fil compiler")
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr" "/usr/bin")
set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_BINARY_DIR}/changelog")

include(CPack)
endfunction()