summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2022-10-28 14:25:20 -0700
committerGitHub <noreply@github.com>2022-10-28 14:25:20 -0700
commit4c9d11d8f68f688ed02ade1204ac838639fa0855 (patch)
treec99da3eedc740a8083667faa54dfd14d17177a74
parentf4a22056a221d69bf8d1aaa8eca39f276b52431d (diff)
downloadaccel-ppp-4c9d11d8f68f688ed02ade1204ac838639fa0855.tar.gz
accel-ppp-4c9d11d8f68f688ed02ade1204ac838639fa0855.zip
Add support for building RPMs on RHEL 9 clones
This includes CentOS Stream, AlmaLinux, and RockyLinux.
-rw-r--r--cmake/cpack.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake
index db7fe123..b46f8b14 100644
--- a/cmake/cpack.cmake
+++ b/cmake/cpack.cmake
@@ -89,4 +89,12 @@ IF(CPACK_TYPE STREQUAL Centos8)
INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/centos/centos.cmake)
ENDIF()
+IF(CPACK_TYPE STREQUAL Centos9)
+ SET(CPACK_RPM_PACKAGE_LICENSE "GPL")
+ SET(CPACK_RPM_PACKAGE_URL "http://accel-ppp.org")
+ SET(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/sbin")
+ SET(CPACK_RPM_PACKAGE_REQUIRES "glibc >= 2.34, openssl-libs >= 3.0.1, pcre >= 8.44")
+ INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/centos/centos.cmake)
+ENDIF()
+
INCLUDE(CPack)