[ATrpms-devel] mt-daapd

Axel Thimm Axel.Thimm at ATrpms.net
Sun Jul 23 16:24:35 CEST 2006


On Sun, Jul 23, 2006 at 03:32:54PM +0200, Tako Schotanus wrote:
> > In general (not only for this special case): You need conditional
> > builds that can be controlled by external rpmbuild parameters like
> >
> > rpmbuild --with avahi ... (if the default is w/o) or
> > rpmbuild --without ahavi ... (if the default is w/)
> >


> Ah ok, but how can I make it depend on FC3/FC4 and FC5+? Because 
> basically it should use avahi for FC5 and the original stuff for 
> everything below that.

Not at all. The choice is made on the command line, if you like so.

(In ATrpms' buildsystem there are control files that contain extra
arguments to pass to rpmbuild for each distro, so that's where this is
going to be automated)

Don't try to autodetect the distribution etc. This will make your
specfile non-portable to other distributions. E.g. just feel
comfortable with outsourcing the decision out of the specfile, which
is what the --with(out) switches are about.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20060723/6111f096/attachment.bin 


More information about the atrpms-devel mailing list