Package ceph_test_snap_mapper, drop dir dupes
From: Alexandre Oliva <oliva@gnu.org>
rpmbuild failed on ceph 0.60 because ceph_test_snap_mapper was
installed but not packaged.
rpm also complained about some directories packaged twice. Some names
used rpm macros, others mentioned /etc and /var explicitly.
I consolidated them all into the placeholder directories group, and
changed them to use the rpm macros.
Signed-off-by: Alexandre Oliva <oliva@gnu.org>
---
ceph.spec.in | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
@@ -413,13 +413,7 @@ fi
%{_mandir}/man8/ceph-debugpack.8*
%{_mandir}/man8/ceph-clsinfo.8.gz
%{_mandir}/man8/librados-config.8.gz
-%dir %{_localstatedir}/lib/ceph/
-%dir %{_localstatedir}/lib/ceph/tmp/
-%dir %{_localstatedir}/log/ceph/
-%ghost %dir %{_localstatedir}/run/ceph/
-%dir %{_sysconfdir}/ceph/
/usr/sbin/rcceph
-%dir %{_libdir}/rados-classes
%{_libdir}/rados-classes/libcls_rbd.so*
%{_libdir}/rados-classes/libcls_rgw.so*
%{_libdir}/rados-classes/libcls_lock.so*
@@ -432,14 +426,17 @@ fi
#set up placeholder directories
%defattr(-,root,root,755)
-%dir /etc/ceph
-%dir /var/log/ceph
-%dir /var/lib/ceph/tmp
-%dir /var/lib/ceph/mon
-%dir /var/lib/ceph/osd
-%dir /var/lib/ceph/mds
-%dir /var/lib/ceph/bootstrap-osd
-%dir /var/lib/ceph/bootstrap-mds
+%dir %{_sysconfdir}/ceph/
+%dir %{_libdir}/rados-classes
+%dir %{_localstatedir}/lib/ceph/
+%dir %{_localstatedir}/lib/ceph/tmp/
+%dir %{_localstatedir}/log/ceph/
+%dir %{_localstatedir}/lib/ceph/mon
+%dir %{_localstatedir}/lib/ceph/osd
+%dir %{_localstatedir}/lib/ceph/mds
+%dir %{_localstatedir}/lib/ceph/bootstrap-osd
+%dir %{_localstatedir}/lib/ceph/bootstrap-mds
+%ghost %dir %{_localstatedir}/run/ceph/
#################################################################################
%files fuse
@@ -610,6 +607,7 @@ fi
%{_bindir}/ceph_test_rados_api_stat
%{_bindir}/ceph_test_rados_api_watch_notify
%{_bindir}/ceph_test_rewrite_latency
+%{_bindir}/ceph_test_snap_mapper
%{_bindir}/ceph_test_stress_watch
%{_bindir}/ceph_test_trans
%{_bindir}/ceph_test_crypto