]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
ceph-deploy.spec: quote RPM macros in comments 256/head
authorKen Dreyer <kdreyer@redhat.com>
Fri, 2 Jan 2015 22:57:01 +0000 (15:57 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 2 Jan 2015 23:01:38 +0000 (16:01 -0700)
commit551cb3f8b5a1fe840946b16e90129310bf61e4a6
tree882ed950a6393c61dbe276057da02c7a2bfb39cf
parent79a9539c49157cc1487a854c34dfe1e94594e46c
ceph-deploy.spec: quote RPM macros in comments

Prior to this commit, RPM would expand the macros that were present in
the comment.

Use a double percent sign to quote the macros so that RPM will not expand
them.

This fixes the following rpmlint warnings:

  ceph-deploy.spec:60: W: macro-in-comment %setup
  ceph-deploy.spec:60: W: macro-in-comment %{name}

More information from rpmlint's "-I" (help) command:

  $ rpmlint -I macro-in-comment
  macro-in-comment:
  There is a unescaped macro after a shell style comment in the
  specfile.  Macros are expanded everywhere, so check if it can cause a
  problem in this case and escape the macro with another leading % if
  appropriate.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
ceph-deploy.spec