]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
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)
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

index c8e0a07d9c21fe80eed50c783f3875aefa320c5f..9bf7f36b7a6c07e3a1ded85ea6113de2a007b0e0 100644 (file)
@@ -57,7 +57,7 @@ Requires:       python >= %{pyver}
 An easy to use admin tool for deploy ceph storage clusters.
 
 %prep
-#%setup -q -n %{name}
+#%%setup -q -n %%{name}
 %setup -q
 
 %build