Howdy folks!<div><br></div><div><div>I'm mostly noting this here for posterity.</div><div><br></div><div>I'm trying to package software that has files with '%' in the names. I tried a few things, but nothing worked. Googling found only this thread from 2003 which indicated that "%%" "should" work but it does not (thread; <a href="http://tech.groups.yahoo.com/group/rpm-list/message/21824">://tech.groups.yahoo.com/group/rpm-list/message/21824</a>)</div>
<div><br></div><div>If my %files section is follows, for testing all possible permutations ;)</div><div><br></div><div><div>%files</div><div>/example/%name</div></div><div><div>/example/%%name</div><div>/example/%%%name</div>
<div>/example/%%%%name</div><div>/example/%{%}name</div><div>/example/\%name</div></div><div><br></div><div>The error with rpmbuild is:</div><div><div><br></div><div>RPM build errors:</div></div><div><div>    File not found: /tmp/package-rpm-build20120528-31204-qsgxuu/BUILD/example/helloworld</div>
<div>    File not found: /tmp/package-rpm-build20120528-31204-qsgxuu/BUILD/example/helloworld</div><div>    File not found: /tmp/package-rpm-build20120528-31204-qsgxuu/BUILD/example/%helloworld</div><div>    File not found: /tmp/package-rpm-build20120528-31204-qsgxuu/BUILD/example/helloworld</div>
<div>    File not found: /tmp/package-rpm-build20120528-31204-qsgxuu/BUILD/example/%{%}name</div><div>    File not found: /tmp/package-rpm-build20120528-31204-qsgxuu/BUILD/example/\helloworld</div></div><div><br></div><div>
Judging from the above, it appears the correct way to escape a single % in a filename is to use '%%%'</div><div><br></div><div>-Jordan</div></div>