]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: rpm: sane packaging of %{_docdir}/ceph directory 15900/head
authorNathan Cutler <ncutler@suse.com>
Sat, 24 Jun 2017 10:27:37 +0000 (12:27 +0200)
committerNathan Cutler <ncutler@suse.com>
Sat, 24 Jun 2017 12:49:08 +0000 (14:49 +0200)
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 <ncutler@suse.com>
ceph.spec.in

index 60d59c52cac22c9c39ecbafd930f2bb26d9d551d..54fe4b319f6eeb7812c6ad8b9c94e059dcd79429 100644 (file)
@@ -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