RPM Community Forums

Mailing List Message of <rpm-users>

Re: Spaces in filenames in a spec file???

From: Michael Lasevich <misdirected@lasevich.net>
Date: Sat 11 Jul 2009 - 01:07:18 CEST
Message-ID: <4A57C9A6.306@lasevich.net>
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.


devzero2000 wrote:
> On Fri, Jul 10, 2009 at 9:25 PM, Michael Lasevich 
> <michael@lasevich.net <mailto:michael@lasevich.net>> 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-
> 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.
>     Thanks.
>     -Michael
>     ______________________________________________________________________
>     RPM Package Manager                                    http://rpm5.org
>     User Communication List                            
>     rpm-users@rpm5.org <mailto:rpm-users@rpm5.org>
Received on Sat Jul 11 01:34:34 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.