[lug] rpm build question

Zan Lynx zlynx at acm.org
Wed Dec 11 09:41:39 MST 2002


On Wed, 2002-12-11 at 08:30, Harris, James wrote:
> I have a sort of "best practice" type question for building an RPM.  Very
> simply, I've created an SRPM that will install an app, along with its
> appropriate man pages (dur).  However, on RH 7.3 and 8.0, one of those man
> pages is now included in the standard man-pages rpm so it causes a conflict.
> On 7.2 and below it is not and I want to include it in the installation.
> 
> Is there logic that I can put into the .spec file that can identify the
> rh-release and then only include the man page when it is needed, or should I
> create two SRPMs, one with the file and one w/o?

As far as I know, the right way to do this is with separate RPM files. 
Build one for 7.2- and one for 7.3+.  I think you may be able to use
sub-packages in order to avoid building the binaries twice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20021211/3a59a8a9/attachment.pgp>


More information about the LUG mailing list