[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

.spec file for multiple target distros



Hi all

What's the right way to build an RPM so that it outputs
    mypackage-1.0-1.fc4.i386.rpm  and
    mypackage-1.0-1.src.rpm
when I build it on FC4, but
    mypackage-1.0-1.fc5.i386.rpm  and
    mypackage-1.0-1.src.rpm
when I build it on FC5?

I want the binary packages to be labelled with the different
distribution tags, but I want the src RPM not to be labelled with the
distribution.

Up til now, I've been using
Release: 1.%{dist}
and I've defined %dist fc4 in my ~/.rpmmacros file.

Is there a better way?

Cheers
JP

John Pye
http://pye.dyndns.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]