<div dir="ltr"><div><div>I&#39;m not a specialist with rpm but I saw this documentation and I tried with &quot;%%&quot; and with &quot;\%&quot; and it did not work.<br><br></div>I don&#39;t know if it&#39;s the best way but it work for me ;)<br>
<br></div><div>Regards,<br>Seb<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/29 Paul Eggleton <span dir="ltr">&lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sébastien,<br>
<div><div class="h5"><br>
On Tuesday 29 October 2013 17:09:09 Sébastien Mennetrier wrote:<br>
&gt; Fixes [YOCTO #5397]<br>
&gt;<br>
&gt; The rpm process replace all the &quot;%name&quot; in the spec file by the name of<br>
&gt; the package. So, if the package is composed of some files or directories<br>
&gt; named &quot;%name...&quot;, the rpm package process failed.<br>
&gt;<br>
&gt; Replace all &quot;%&quot; present in files or directories names by &quot;[%]&quot;<br>
&gt;<br>
&gt; Signed-off-by: Sébastien Mennetrier &lt;<a href="mailto:s.mennetrier@innotis.org">s.mennetrier@innotis.org</a>&gt;<br>
&gt; ---<br>
&gt;  meta/classes/package_rpm.bbclass | 3 +++<br>
&gt;  1 file changed, 3 insertions(+)<br>
&gt;<br>
&gt; diff --git a/meta/classes/package_rpm.bbclass<br>
&gt; b/meta/classes/package_rpm.bbclass index 36bad09..6c73e37 100644<br>
&gt; --- a/meta/classes/package_rpm.bbclass<br>
&gt; +++ b/meta/classes/package_rpm.bbclass<br>
&gt; @@ -662,10 +662,13 @@ python write_specfile () {<br>
&gt;      def walk_files(walkpath, target, conffiles):<br>
&gt;          for rootpath, dirs, files in os.walk(walkpath):<br>
&gt;              path = rootpath.replace(walkpath, &quot;&quot;)<br>
&gt; +            path = path.replace(&quot;%&quot;, &quot;[%]&quot;)<br>
&gt;              for dir in dirs:<br>
&gt; +                dir = dir.replace(&quot;%&quot;, &quot;[%]&quot;)<br>
&gt;                  # All packages own the directories their files are in...<br>
&gt;                  target.append(&#39;%dir &quot;&#39; + path + &#39;/&#39; + dir + &#39;&quot;&#39;)<br>
&gt;              for file in files:<br>
&gt; +                file = file.replace(&quot;%&quot;, &quot;[%]&quot;)<br>
&gt;                  if conffiles.count(path + &#39;/&#39; + file):<br>
&gt;                      target.append(&#39;%config &quot;&#39; + path + &#39;/&#39; + file + &#39;&quot;&#39;)<br>
&gt;                  else:<br>
<br>
</div></div>Are you sure this is correct? The documentation I have been able to dig up via<br>
google seems to suggest that %% is the correct way to escape a % sign in a<br>
spec file.<br>
<br>
Cheers,<br>
Paul<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</font></span></blockquote></div><br></div>