Skip to content

Commit

Permalink
Linux|Builder: System dirs in the RPM package
Browse files Browse the repository at this point in the history
Exclude system directories from the RPM package. This avoids conflicts with system packages.

https://talk.dengine.net/discussion/2777/rpm-should-not-put-system-directories-into-spec
  • Loading branch information
skyjake committed Dec 30, 2019
1 parent a016851 commit 8958a94
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doomsday/cmake/PackagingUnix.cmake
Expand Up @@ -7,4 +7,14 @@ elseif (CPACK_GENERATOR STREQUAL RPM)
string (REPLACE _i386 -1.i686 CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})
string (REPLACE y_ y- CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})

# Exclude system directories; they are not owned by the Doomsday RPM package.
list (APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
"/usr/share/icons"
"/usr/share/icons/hicolor"
"/usr/share/icons/hicolor/256x256"
"/usr/share/icons/hicolor/256x256/apps"
"/usr/lib64/cmake"
"/usr/share/metainfo"
"/usr/share/applications"
)
endif ()

0 comments on commit 8958a94

Please sign in to comment.