RPM Community Forums

Mailing List Message of <rpm-users>

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

From: Michael Lasevich <misdirected@lasevich.net>
Date: Tue 21 Jul 2009 - 18:00:34 CEST
Message-ID: <4A65E622.6080600@lasevich.net>
That blank entry was a result of a bug in the code that generated the 
spec file (listing directory entries including the "." then stripping 
the ".") Fixed it and all is great. Thanks so much.

-Michael

devzero2000 wrote:
> On Mon, Jul 13, 2009 at 1:44 AM, Michael
> Lasevich<misdirected@lasevich.net> wrote:
>   
>> Ok, my root has these files and directories (all empty):
>>
>> -rw-r--r-- 1 root root    0 Jul 12 19:18 File With Spaces
>> drwxr-xr-x 2 root root 4096 Jul 12 19:12 dir With Spaces
>> drwxr-xr-x 2 root root 4096 Jul 12 19:12 dirWithoutSpaces
>> -rw-r--r-- 1 root root    0 Jul 12 19:18 fileWithoutSpaces
>>
>> Genrated spec file is:
>> =======================
>> Name: vj_space_tester
>> Version: 1.2
>> Release: 090712_1925
>> License: None
>> Group: None
>> BuildRoot: /data/yum/factory/space_tester/root
>> AutoReqProv: no
>> Summary: No Summary
>> BuildArch: noarch
>> Requires: vj_base
>>
>> # Finished header
>>
>> %description
>>
>> space_tester
>> # Description done
>> #%prep
>> #%build
>> #%install
>> #%post
>> %files
>> %defattr (755,root,root)
>> %dir ""
>>     
>
> Sorry for the delay. But the problem is this
> (a typo perhaps) statement -----> %dir "" <------------------
> Dropped this and with or without quoting in /dirWithoutSpaces rpmbuild
> work as expected in rpm 4.4.2-9.el5
>
> Perhaps you wanted really create a directory with a blank inside?
>
> So do you have to write "%dir "/  ". And  it works also
>
> regards
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> User Communication List                             rpm-users@rpm5.org
>   
Received on Tue Jul 21 18:00:59 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.