[ATrpms-devel] mt-daapd
Tako Schotanus
quintesse at palacio-cristal.com
Wed Jul 26 00:56:29 CEST 2006
Axel Thimm wrote:
> 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.
>
Ok, the included spec file compiles for me on FC5 and I _think_ it
should work for FC3/4 etc with the "--without avahi" option. Of course I
have not been able to test that because I don't have any pre-FC5 systems
anymore.
If there is anything else I need to change, just let me know.
Cheers,
-Tako
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mt-daapd.merged.spec
Url: http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20060726/2708d18c/attachment.pl
More information about the atrpms-devel
mailing list