<div dir="ltr"><div><div>I'm not a specialist with rpm but I saw this documentation and I tried with "%%" and with "\%" and it did not work.<br><br></div>I don't know if it'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"><<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>></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>
> Fixes [YOCTO #5397]<br>
><br>
> The rpm process replace all the "%name" in the spec file by the name of<br>
> the package. So, if the package is composed of some files or directories<br>
> named "%name...", the rpm package process failed.<br>
><br>
> Replace all "%" present in files or directories names by "[%]"<br>
><br>
> Signed-off-by: Sébastien Mennetrier <<a href="mailto:s.mennetrier@innotis.org">s.mennetrier@innotis.org</a>><br>
> ---<br>
> meta/classes/package_rpm.bbclass | 3 +++<br>
> 1 file changed, 3 insertions(+)<br>
><br>
> diff --git a/meta/classes/package_rpm.bbclass<br>
> b/meta/classes/package_rpm.bbclass index 36bad09..6c73e37 100644<br>
> --- a/meta/classes/package_rpm.bbclass<br>
> +++ b/meta/classes/package_rpm.bbclass<br>
> @@ -662,10 +662,13 @@ python write_specfile () {<br>
> def walk_files(walkpath, target, conffiles):<br>
> for rootpath, dirs, files in os.walk(walkpath):<br>
> path = rootpath.replace(walkpath, "")<br>
> + path = path.replace("%", "[%]")<br>
> for dir in dirs:<br>
> + dir = dir.replace("%", "[%]")<br>
> # All packages own the directories their files are in...<br>
> target.append('%dir "' + path + '/' + dir + '"')<br>
> for file in files:<br>
> + file = file.replace("%", "[%]")<br>
> if conffiles.count(path + '/' + file):<br>
> target.append('%config "' + path + '/' + file + '"')<br>
> 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>