RPM Community Forums

Mailing List Message of <rpm-users>

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

From: Michael Lasevich <misdirected@lasevich.net>
Date: Mon 13 Jul 2009 - 18:19:44 CEST
Message-ID: <4A5B5EA0.8080700@lasevich.net>

> Due to the way macros are processed, having anything that starts w/ a 
> "%" in a comment is not guaranteed to be ignored.  If you'd like a 
> rationale: macros are always expanded.. and may be multiple lines once 
> expanded, only the first line would be commented out.
> I suspect the #%pre or #%preun may be part of the problem.  Remove 
> them, or again change the "%".
> Also an empty changelog MIGHT cause problems.. (I'm not sure.)
> --Mark
Thats good to know, but I've been using this setup for 6+ years and 
never had any other issues. (empty script tags do cause issue, thus # if 
they are empty, but I will add a second % from now on just to be sure)

In any case, I removed ALL extra tags so new spec file is:
Release: 090713_1208
License: None
Group: None
BuildRoot: /data/yum/factory/space_tester/root
AutoReqProv: no
Summary: No Summary
BuildArch: noarch

# Finished header


# Description done
%defattr (755,root,root)
%dir ""
%attr(644,root,root) "/fileWithoutSpaces"
%dir "/dirWithoutSpaces"
%attr(644,root,root) "/File With Spaces"
%dir "/dir With Spaces"

Same error.

Same thing with the following file section instead works file:
%attr(644,root,root) /fileWithoutSpaces
%dir /dirWithoutSpaces
%attr(644,root,root) "/File With Spaces"
%dir "/dir With Spaces"

So the error is definitely linked to quotes on files without spaces.

Received on Mon Jul 13 18:26:02 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.