Hide Forgot
Description of problem: impossible to escape % sign in rpmspec file list. Version-Release number of selected component (if applicable): How reproducible: very Steps to Reproduce: 1. try to build http://edgeapi.rubyonrails.org/classes/Rails/Railtie.html which contains files with %name% string in it. 2. use gem2rpm to generate basic spec file. 3. try to rpmbuild it Actual results: fails Expected results: rpm Additional info: I tried %%name and even %%%%name I tried setting variable %define nname name and doing %%%{nname} nothing works
Every % in spec needs double escaping, thus is the file has '%name%' string in it, it needs to be escaped as '%%name%%'. Failure to do proper escaping would be a bug in gem2rpm (which is not part of RHEL-5 AFAICS), not in rpm.