RPM Community Forums

Mailing List Message of <rpm-users>

RPM5 and YML-like Specfiles

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Sun 10 May 2009 - 21:19:03 CEST
Message-Id: <200905102119.08041.eveith@wwweb-library.net>
Hash: SHA1


since a while rpm supports spec files that do not only look like YAML files, 
but indeed are. At least as far as I know. 

%setup -q


    %setup -q

... with proper indentation. 

I've been trying to adopt this to my own projects. (I actually just began 
re-formatting my old specfiles.) What I found out is that it really works in 
the script parts, a thing that broke the spec file parser before. However, 
the description part still doesn't seem to get it, or I am making mistakes. 
When I write something like:

    This is some indented text for this package.
    It shouldn't look like this when using "rpm -qi PKG".

The description is indented, too, when I run "rpm -qi PKG". While I 
understand that there's no good way to have YML-like indentation *and* 
preserve text formatting that might have been done in the description part, 
I long for a real YML-ish look of my spec files. :-)

Is there any way to do it right?
Or am I perhaps totally mistaken regarding the YML thing?

Thanks a lot in advance.

		-- Eric

P. S. Oh, and vim doesn't get the new syntax right when syntax highlighting 
is enabled, but I guess that's something I have to discuss with Bram. :-)
Version: GnuPG v1.4.9 (GNU/Linux)

Received on Sun May 10 21:19:30 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.