From 9ecc462956145846aa3ebd3865b52f0f21aec31e Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Mon, 27 Nov 2017 15:09:39 +0100 Subject: [PATCH] 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 --- src/pybind/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5