build/ops: rpm: sane packaging of %{_docdir}/ceph directory

9164804416 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>
This commit is contained in:
Nathan Cutler 2017-06-24 12:27:37 +02:00
parent 3abb692384
commit 08b81c1500

View 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