From 08b81c150096a4fdd4d64f8d08edf98d123e2242 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Sat, 24 Jun 2017 12:27:37 +0200 Subject: [PATCH] build/ops: rpm: sane packaging of %{_docdir}/ceph directory 91648044163 introduced a build error: ceph-common-12.1.0+git.1498286248.2fcedc7b3d-1.1.x86_64.rpm: directories not owned by a package: - /usr/share/doc/packages/ceph The %docdir directive is a way of flagging anything in that directory as being documentation. It does not actually package the directory. And we don't need it because we're not dumping a large number of files into this directory. For more information, see the "Directory-related Directives" section of http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html Signed-off-by: Nathan Cutler --- ceph.spec.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 60d59c52cac22..54fe4b319f6ee 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1027,8 +1027,7 @@ if [ $FIRST_ARG -ge 1 ] ; then fi %files common -%docdir %{_docdir} -%docdir %{_docdir}/ceph +%dir %{_docdir}/ceph %doc %{_docdir}/ceph/sample.ceph.conf %doc %{_docdir}/ceph/COPYING %{_bindir}/ceph -- 2.39.5