Didactic spec file suggestions?

Adrián Márques <[email protected]> Wed, 24 Sep 2008 15:54:28 -0300
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Hi all,

I'm just starting with RPM packaging. I've been reading around a lot and=20
everyone recommends learning from working spec files of other projects.=20
I've also read comments about how it is not uncommon to find 'bad rpm=20
practices' in some of these.
Right now I'm checking out spec files at random from JPackage (I have to=20
package a java app).

Do any of you have suggestions on what freely-available spec files are=20
worth checking out for a newcomer? The most valuable for me would be=20
those that illustrate how to do key elements of packaging 'the right=20
way'. Right now I'm particularly interested in how to list files and=20
what logic (not)to put in the %pre, %post, %preun, and %postun scripts,=20
but I'm sure other things will come up soon enough.

I'd highly appreciate any suggestions; even more so if you could also=20
mention why you deem those spec files to be important or which aspects=20
of them are relevant in particular.

Thank you all.

Adri=E1n