[ATrpms-devel] mt-daapd

Tako Schotanus quintesse at palacio-cristal.com
Sun Jul 23 15:32:54 CEST 2006


Axel Thimm wrote:
> Hi,
>
> On Sat, Jul 22, 2006 at 10:37:08PM +0200, Tako Schotanus wrote:
>   
>> Hi,
>>
>> mt-daapd is yet another package that I wouldn't mind seeing appear in 
>> ATrpms.
>> It's a DAAP service that runs as a daemon and can publish your music on 
>> your network for those programs that understand it (eg the latest Amarok).
>> I contacted the author and he would like it very much if ATrpms would 
>> pick this up as he has no time (nor the inclination) to provide packages 
>> for all kinds of distros.
>>
>> The website can be found here: http://www.mt-daapd.org/
>> And source RPM and RPMs for FC3 and FC4 can be found on source forge: 
>> http://sourceforge.net/project/showfiles.php?group_id=98211&package_id=105189&release_id=397897
>>
>> I've included the original spec file from the src rpm (mt-daapd.spec) 
>> and the one I made for FC5 (mt-daapd.fc5.spec) which includes the patch 
>> (mt-daapd-stable-avahi.diff) to use avahi for FC5.
>>     
>
> Thanks!
>
>   
>> The only thing I don't know if it is required for ATrpms to have 
>> everything in one spec file because I have no idea how to merge the 
>> changes I made into the existing spec file. If that is needed could 
>> somebody take a look at the (very few) differences and tell me how to 
>> merge them?
>>     
>
> 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/)
>
> It makes sense to have the default to be the common used one, e.g. the
> ones where FC5(/FC4) users don't have to change it.
>
> Use
>
> %{?with_ahavi:Do something for ahavi builds}
>
> and
>
> %{!?with_ahavi:Do something for non-ahavi builds}
>
> in the specfile.
>
> you can check some other specfiles to get an idea, e.g. mythtv or any
> fortran package.
>   
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.

Cheers,
 -Tako




More information about the atrpms-devel mailing list