.spec file for multiple target distros

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

 



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/

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux