]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: quote %files macro in comment 3197/head
authorKen Dreyer <kdreyer@redhat.com>
Wed, 17 Dec 2014 20:05:21 +0000 (13:05 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 17 Dec 2014 20:06:58 +0000 (13:06 -0700)
Prior to this commit, RPM would expand the %files macro that was present
in the comment.

Use a double percent sign to quote the macro so that RPM will not expand
it.

This fixes an rpmlint warning, "W: macro-in-comment %files"

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.spec.in

index c5a68c2af205fb6272b247effe0e68386d9edf1e..d36652764c0dfbffb3918a64bee840c03ad285fb 100644 (file)
@@ -761,7 +761,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_javadir}/libcephfs-test.jar
 
 %files libs-compat
-# We need an empty %files list for ceph-libs-compat, to tell rpmbuild to actually
+# We need an empty %%files list for ceph-libs-compat, to tell rpmbuild to actually
 # build this meta package.
 
 %changelog