Sorry, I did not realize rpm5 this was a separate effort from old rpm.
4.4 is what still ships on most enterprise systems, so have to code to
that for time being :-(
In any case, I did figure out the issue.
Weirdly enough double quotes do work, but ONLY on files with spaces in
it. Any other file in double quotes causes an error and as I was
generating the spec file list from a script, I ended up putting extra
code to quote only files with spaces in them. Some odd parsing that is,
but as long as I know what it is, it works.
Now, if only I can find a way to add a default relocation mapping for
installation into rpmmacros file, things would be perfect - but thats a
whole other problem.
> On Fri, Jul 10, 2009 at 9:25 PM, Michael Lasevich
> <firstname.lastname@example.org <mailto:email@example.com>> wrote:
> I need to package an rpm that contains files with spaces in them.
> Sounds like it should be easy, but I am completely stuck. I tried
> the backslash escape, I tried putting the filename in double
> quotes - nothing seems to work. I ran into this a number of times
> over the years and normally I would just rename the file, but in
> this particular case that is not an option.
> I can't believe that rpm cannot handle this, which means there has
> to be an escape scheme that I am missing here. Google turned up zilch.
> Any help would be appreciated.
> If it matters, I am using rpm-18.104.22.168-9.el5
> SIA. Not problem at all to answer BUT perhaps you have written to the
> wrong mailing list ? This is RPM5 : some years of development have
> passed from rpm 4.4.2.x.y.z. Just for curiosity.
> RPM Package Manager http://rpm5.org
> User Communication List
> firstname.lastname@example.org <mailto:email@example.com>
Received on Sat Jul 11 01:34:34 2009