summaryrefslogtreecommitdiff
path: root/cmake/CPackRPM.cmake
blob: 1d22387d098593d69cc5ccb1d8bfd32bfd30677c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Wrapper for CPackRPM.cmake
#

# load the original CPackRPM.cmake
set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
unset(CMAKE_MODULE_PATH)
include(CPackRPM)
set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})

# per-component cleanup
foreach(_RPM_SPEC_HEADER URL REQUIRES SUGGESTS PROVIDES OBSOLETES PREFIX CONFLICTS AUTOPROV AUTOREQ AUTOREQPROV)
  unset(TMP_RPM_${_RPM_SPEC_HEADER})
  unset(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP)
endforeach()