<commit_before>INCLUDE(InstallRequiredSystemLibraries)

SET(CPACK_GENERATOR "RPM")

IF(NOT UNIX)
  MESSAGE(FATAL_ERROR "Can only be run under Unix.")
ENDIF(NOT UNIX)

#
# Define standard control properties
#
SET (CPACK_PACKAGE_NAME "openbmp")
SET (CPACK_PACKAGE_VERSION_MAJOR ${OPENBMP_VER_MAJOR})
SET (CPACK_PACKAGE_VERSION_MINOR ${OPENBMP_VER_MINOR})
SET (CPACK_PACKAGE_VERSION_PATCH ${OPENBMP_VER_PATCH})
SET (CPACK_RPM_PACKAGE_VERSION ${OPENBMP_VER_MAJOR}.${OPENBMP_VER_MINOR}.${OPENBMP_VER_PATCH})
SET (CPACK_RPM_PACKAGE_RELEASE ${OPENBMP_VER_RELEASE})

SET (CPACK_RPM_PACKAGE_GROUP "bgp")

SET (CPACK_RPM_PACKAGE_LICENSE "Eclipse Public License v1.0  http://www.eclipse.org/legal/epl-v10.html")

SET (CPACK_RPM_PACKAGE_VENDOR "www.openbmp.org")
SET (CPACK_RPM_PACKAGE_URL "www.openbmp.org")

SET (CPACK_RPM_PACKAGE_SUMMARY "Open BGP monitoring protocol (OpenBMP) collector server.")
SET (CPACK_RPM_PACKAGE_DESCRIPTION "Open BGP monitoring protocol (OpenBMP) collector server. Receives BMP messages and stores them for real-time and historical analytics.")

#
# Set the architecture
#
FIND_PROGRAM(ARCH_CMD arch)
IF(NOT ARCH_CMD)
  MESSAGE(STATUS "Can not find arch in your path, default to x86_64")
  SET(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
ENDIF(NOT ARCH_CMD)
EXECUTE_PROCESS(COMMAND "${ARCH_CMD}"
  OUTPUT_VARIABLE CPACK_RPM_PACKAGE_ARCHITECTURE
  OUTPUT_STRIP_TRAILING_WHITESPACE
  )

#
# Define the depends
#
SET (CPACK_RPM_PACKAGE_REQUIRES "mysql-connector-c++ >= 1.1.4")
set (CPACK_RPM_PACKAGE_SUGGESTS ON)


#
# Define the extras (post/pre install, etc.)
#

# 
# Set the package config filename<commit_msg>Fixed CentOS 7 conflicts with fileutils rpm package issue.<commit_after>INCLUDE(InstallRequiredSystemLibraries)

SET(CPACK_GENERATOR "RPM")

IF(NOT UNIX)
  MESSAGE(FATAL_ERROR "Can only be run under Unix.")
ENDIF(NOT UNIX)

#
# Define standard control properties
#
SET (CPACK_PACKAGE_NAME "openbmp")
SET (CPACK_PACKAGE_VERSION_MAJOR ${OPENBMP_VER_MAJOR})
SET (CPACK_PACKAGE_VERSION_MINOR ${OPENBMP_VER_MINOR})
SET (CPACK_PACKAGE_VERSION_PATCH ${OPENBMP_VER_PATCH})
SET (CPACK_RPM_PACKAGE_VERSION ${OPENBMP_VER_MAJOR}.${OPENBMP_VER_MINOR}.${OPENBMP_VER_PATCH})
SET (CPACK_RPM_PACKAGE_RELEASE ${OPENBMP_VER_RELEASE})

SET (CPACK_RPM_PACKAGE_GROUP "bgp")

SET (CPACK_RPM_PACKAGE_LICENSE "Eclipse Public License v1.0  http://www.eclipse.org/legal/epl-v10.html")

SET (CPACK_RPM_PACKAGE_VENDOR "www.openbmp.org")
SET (CPACK_RPM_PACKAGE_URL "www.openbmp.org")

SET (CPACK_RPM_PACKAGE_SUMMARY "Open BGP monitoring protocol (OpenBMP) collector server.")
SET (CPACK_RPM_PACKAGE_DESCRIPTION "Open BGP monitoring protocol (OpenBMP) collector server. Receives BMP messages and stores them for real-time and historical analytics.")

#
# Set the architecture
#
FIND_PROGRAM(ARCH_CMD arch)
IF(NOT ARCH_CMD)
  MESSAGE(STATUS "Can not find arch in your path, default to x86_64")
  SET(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
ENDIF(NOT ARCH_CMD)
EXECUTE_PROCESS(COMMAND "${ARCH_CMD}"
  OUTPUT_VARIABLE CPACK_RPM_PACKAGE_ARCHITECTURE
  OUTPUT_STRIP_TRAILING_WHITESPACE
  )

#
# Define the depends
#
SET (CPACK_RPM_PACKAGE_REQUIRES "mysql-connector-c++ >= 1.1.4")
set (CPACK_RPM_PACKAGE_SUGGESTS ON)


#
# Define the extras (post/pre install, etc.)
#

#
# Define the user file list to ingore files - this is only needed for cmake 2.8 since 3.x has auto exclude
#
SET(CPACK_RPM_SPEC_MORE_DEFINE "%define ignore \#")
SET(CPACK_RPM_USER_FILELIST "%ignore /usr" "%ignore /usr/bin")


# 
# Set the package config filename
{'fraction_non_alphanumeric': 0.09571144561204203, 'fraction_numerical': 0.009656347628514627, 'mean_word_length': 6.9324324324324325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3713592', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1346, 'n_words': 293}