From: Nathan Cutler Date: Mon, 27 Nov 2017 14:09:39 +0000 (+0100) Subject: cmake: mgr: exclude .gitignore X-Git-Tag: v13.0.1~78^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ecc462956145846aa3ebd3865b52f0f21aec31e;p=ceph.git cmake: mgr: exclude .gitignore Fixes RPMLINT warning: ceph-mgr.x86_64: W: version-control-internal-file /usr/lib64/ceph/mgr/.gitignore ceph-mgr.x86_64: W: version-control-internal-file /usr/lib64/ceph/mgr/dashboard/static/AdminLTE-2.3.7/.gitignore You have included file(s) internally used by a version control system in the package. Move these files out of the package and rebuild it. Note: the backslash has to be doubled up for the regex to make it through CMake. Signed-off-by: Nathan Cutler --- diff --git a/src/pybind/CMakeLists.txt b/src/pybind/CMakeLists.txt index dbdb23f1c567c..040b8dd4f1c5a 100644 --- a/src/pybind/CMakeLists.txt +++ b/src/pybind/CMakeLists.txt @@ -65,5 +65,6 @@ if(WITH_MGR) # OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/mgr - DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}) + DESTINATION ${CMAKE_INSTALL_PKGLIBDIR} + REGEX ".*/\\.gitignore" EXCLUDE) endif(WITH_MGR)