Skip to content

Commit c410128

Browse files
committed
Add /usr/share/man and /usr/share/man/man1 to CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
1 parent b81b885 commit c410128

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ cmake_minimum_required(VERSION 3.0.0)
6464

6565
# build man pages
6666
add_subdirectory(man)
67+
68+
# CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION needs to be sent all the way to the root scope
69+
# in order to not add /usr/share/man and /usr/share/man/man1 into the RPMs
70+
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION}" PARENT_SCOPE)

docs/man/CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,9 @@ foreach(MAN_PAGE ${MAN_PAGES})
9292
DESTINATION share/man/man${SECTION}
9393
COMPONENT Server)
9494
endforeach()
95+
96+
# CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION needs to be sent all the way to the root scope
97+
# in order to not add /usr/share/man and /usr/share/man/man1 into the RPMs
98+
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man")
99+
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man/man1")
100+
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION}" PARENT_SCOPE)

0 commit comments

Comments
 (0)