From 7f1abd9053088ded6613aeca4e7c9489c44910e4 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Wed, 10 Jun 2015 15:43:41 -0600 Subject: [PATCH] ceph.spec.in: package mkcephfs on EL6 Commit efbca0465c2946e113771966df08cf7cf37b1196 added mkcephfs to the RPM %files listing, but this /usr/sbin path is only correct for CentOS 7. In CentOS 6, the utility is present at /sbin/mkcephfs instead. This causes rpmbuild to fail to build the tip of the firefly branch on EL6. Adjust the RPM %files list so we properly package mkcephfs on both EL7 and EL6. http://tracker.ceph.com/issues/11955 Refs: #11955 Signed-off-by: Ken Dreyer --- ceph.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 5380a58547c8b..b1372aa422a5c 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -448,10 +448,11 @@ fi %{_sbindir}/ceph-disk-udev %{_sbindir}/ceph-create-keys %{_sbindir}/rcceph -%{_sbindir}/mkcephfs %if 0%{?rhel} >= 7 || 0%{?fedora} +%{_sbindir}/mkcephfs %{_sbindir}/mount.ceph %else +/sbin/mkcephfs /sbin/mount.ceph %endif %dir %{_libdir}/ceph -- 2.39.5