The ceph-mgr-dashboard and ceph-mgr-rook packages install their entire
mgr module directory, which includes a ci/ subdirectory containing
Dockerfiles, e2e test scripts, and cluster specs used only for upstream
CI pipelines. ceph-mgr-cephadm similarly ships a tests/ directory with
Python unit tests. These files have no runtime purpose on a deployed
system and should not be shipped in the binary packages.
Exclude mgr/cephadm/tests, mgr/dashboard/ci, and mgr/rook/ci via
%exclude directives.
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
%files mgr-dashboard
%{_datadir}/ceph/mgr/dashboard
+%exclude %{_datadir}/ceph/mgr/dashboard/ci
%ceph_mgr_module_scripts mgr-dashboard
%files mgr-rook
%{_datadir}/ceph/mgr/rook
+%exclude %{_datadir}/ceph/mgr/rook/ci
%ceph_mgr_module_scripts mgr-rook
%files mgr-cephadm
%{_datadir}/ceph/mgr/cephadm
+%exclude %{_datadir}/ceph/mgr/cephadm/tests
%ceph_mgr_module_scripts mgr-cephadm