[ATrpms-devel] mt-daapd

Axel Thimm Axel.Thimm at ATrpms.net
Sun Jul 23 12:35:41 CEST 2006


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.
-- 
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/8b709cec/attachment.bin 


More information about the atrpms-devel mailing list