Skip to content
Permalink
Browse files

fix libsepol version detection for SUSE

  • Loading branch information...
vuvova committed Jul 21, 2019
1 parent e2bbb6f commit 6e98f6810c28e3ca6c2932d6842bf2d816758158
Showing with 3 additions and 2 deletions.
  1. +3 −2 support-files/CMakeLists.txt
@@ -87,8 +87,9 @@ IF(UNIX)
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
ENDFOREACH()
IF(RPM)
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol OUTPUT_VARIABLE LIBSEPOL_VERSION)
IF (LIBSEPOL_VERSION)
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol
OUTPUT_VARIABLE LIBSEPOL_VERSION RESULT_VARIABLE err)
IF (NOT err)
SET(CPACK_RPM_server_PACKAGE_REQUIRES
"${CPACK_RPM_server_PACKAGE_REQUIRES} libsepol >= ${LIBSEPOL_VERSION}"
PARENT_SCOPE)

0 comments on commit 6e98f68

Please sign in to comment.
You can’t perform that action at this time.