From: Nathan Cutler Date: Sat, 24 Jun 2017 10:27:37 +0000 (+0200) Subject: build/ops: rpm: sane packaging of %{_docdir}/ceph directory X-Git-Tag: v12.1.2~1^2~60^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15900%2Fhead;p=ceph.git 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 --- 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