From: Ken Dreyer Date: Fri, 2 Jan 2015 22:57:01 +0000 (-0700) Subject: ceph-deploy.spec: quote RPM macros in comments X-Git-Tag: v1.5.22-rc1~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F256%2Fhead;p=ceph-deploy.git 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 --- diff --git a/ceph-deploy.spec b/ceph-deploy.spec index c8e0a07..9bf7f36 100644 --- a/ceph-deploy.spec +++ b/ceph-deploy.spec @@ -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