Skip to content

Commit

Permalink
fix: RPM package has conflict with /usr/bin
Browse files Browse the repository at this point in the history
Closes #28

Also add custom changelog
  • Loading branch information
Gashmob committed Sep 28, 2024
1 parent 8c9888a commit 0ce67d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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()

0 comments on commit 0ce67d9

Please sign in to comment.