We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3a6ca commit 578e822Copy full SHA for 578e822
support-files/CMakeLists.txt
@@ -86,6 +86,14 @@ IF(UNIX)
86
ADD_CUSTOM_TARGET(${pol}-pp ALL DEPENDS ${out})
87
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
88
ENDFOREACH()
89
+ IF(RPM)
90
+ EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol OUTPUT_VARIABLE LIBSEPOL_VERSION)
91
+ IF (LIBSEPOL_VERSION)
92
+ SET(CPACK_RPM_server_PACKAGE_REQUIRES
93
+ "${CPACK_RPM_server_PACKAGE_REQUIRES} libsepol >= ${LIBSEPOL_VERSION}"
94
+ PARENT_SCOPE)
95
+ ENDIF()
96
97
ENDIF()
98
99
0 commit comments