RPM Community Forums

Mailing List Message of <rpm-users>

Re: Spec file help

From: Anders F Björklund <afb@rpm5.org>
Date: Mon 22 Dec 2008 - 18:13:04 CET
Message-Id: <51CA0144-3026-4D14-B47E-FCE0913CAE1A@rpm5.org>
Eric MSP Veith wrote:

>> Sure, just that you get the funky "fg: no job control"
>> when they are not defined. %{__fakeroot} is a nice touch,
>> easy enough to stub out where the program is not available...
>> (guess I didn't have to mention it's not defined either)
> I assume I surely cannot be blamed for introducing macros  
> concerning my own
> build system? I provided the spec file as reference for the original
> poster. I should have stated that I introduced macros with my  
> distribution
> that are guranteed to be there since I packed them with RPM.

Certainly did not intend any blame, just that you might mention
the context of your specfile (i.e. your "distro" and/or macros) ?

Otherwise one would expect it to work on a basic rpm5.org install,
such as the one (devtool macosx) where I tried it and failed... :-)

> Obviously my
> spec file also somewhat "fails" some Guidelines of RPM Packaging,  
> which I
> did not yet find. I am open and happy to read more suggestions from  
> you.
> Could you provide me with a generic (i. e. not distro-specific)  
> guideline
> on how to write nice spec files?

There is a dire need for an updated book on RPM Packaging, something
that seems to happen every 5 years or so. (e.g. Max RPM and RPM Guide)

But if you have ideas, do bring them up here or on the rpm-devel list -
maybe they would be useful for everyone and could be included upstream ?

Received on Mon Dec 22 18:13:06 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.