RPM Community Forums

Mailing List Message of <rpm-users>

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

From: devzero2000 <pinto.elia@gmail.com>
Date: Tue 21 Jul 2009 - 12:39:49 CEST
Message-ID: <b086760e0907210339v13e3063ey8f43b58348d0a55a@mail.gmail.com>
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
Received on Tue Jul 21 12:40:12 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.