RPM Community Forums

Mailing List Message of <rpm-users>

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

From: Mark Hatle <mark.hatle@windriver.com>
Date: Fri 10 Jul 2009 - 21:50:48 CEST
Message-ID: <4A579B98.1090209@windriver.com>
I believe all you need to do is:

%files
/bin/foo
/bin/bar
"/bin/foo bar"

--Mark

Michael Lasevich 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-4.4.2.3-9.el5
> 
> Thanks.
> 
> -Michael
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> User Communication List                             rpm-users@rpm5.org
Received on Sat Jul 11 01:00:29 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.