diff --git a/0004-Add-EPEL-10-CPack-option.patch b/0004-Add-EPEL-10-CPack-option.patch new file mode 100644 index 0000000..2afb68c --- /dev/null +++ b/0004-Add-EPEL-10-CPack-option.patch @@ -0,0 +1,31 @@ +From 9b1d714a847898c61aca7b4b62344288b82b563a Mon Sep 17 00:00:00 2001 +From: Neel Chauhan +Date: Sun, 16 Feb 2025 19:15:17 -0500 +Subject: [PATCH 4/4] Add EPEL 10 CPack option + +--- + cmake/cpack.cmake | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake +index 18f0d8e..af7698f 100644 +--- a/cmake/cpack.cmake ++++ b/cmake/cpack.cmake +@@ -94,6 +94,14 @@ IF(CPACK_TYPE STREQUAL Centos9) + INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/centos/centos.cmake) + ENDIF() + ++IF(CPACK_TYPE STREQUAL Centos10) ++ 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, pcre2 >= 10.40") ++ INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/centos/centos.cmake) ++ENDIF() ++ + IF(CPACK_TYPE STREQUAL Fedora) + SET(CPACK_RPM_PACKAGE_LICENSE "GPL") + SET(CPACK_RPM_PACKAGE_URL "http://accel-ppp.org") +-- +2.48.1 + diff --git a/accel-ppp.spec b/accel-ppp.spec index eae9e0b..8b3a962 100644 --- a/accel-ppp.spec +++ b/accel-ppp.spec @@ -8,6 +8,7 @@ Source: https://github.com/accel-ppp/%{name}/archive/%{version}/%{name}- Patch0: 0001-Use-PCRE2-instead-of-PCRE.patch Patch1: 0002-Add-Fedora-CPack-option.patch Patch2: 0003-Allow-building-in-source-directory-needed-for-EPEL8.patch +Patch3: 0004-Add-EPEL-10-CPack-option.patch ExcludeArch: %{ix86} BuildRequires: cmake