You are here: Home » Reply » Reply To: RPM specfile and built RPM for CentOS svn-1696 (+fedora etc)

Reply To: RPM specfile and built RPM for CentOS svn-1696 (+fedora etc)


@davis65536 wrote:


[Edited to obfuscate email domains]

I’ve just hacked about the RPM specfile so that I could “rpmbuild -bb” the svn-1696 release. I built it on CentOS 5.0 but I think it’ll probably work on Fedora/RHEL etc.

The specfile can be downloaded from here:

After building and installation I needed to edit the following files to fix the “@[email protected]” the prefix paths (there’s a bit of an incompatibility between the templated config files and how rpmbuild expects things to work, but I can’t be bothered to track it down completely just yet).

I also needed to do a “chown nobody:nobody /var/cache/mt-daapd/” to allow the server to create the database files.

If you’re insane you can also download the built RPM from:

(You should consider the security implications of doing that though).

Just in case the specfile falls off the web, here it is:
Summary: A multi-threaded implementation of Apple’s DAAP server
Name: mt-daapd
Version: svn
Release: 1696
License: GPL
Group: Development/Networking
Source0: %{name}-%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: libid3tag gdbm sqlite
BuildRequires: libid3tag-devel gdbm-devel sqlite-devel

A multi-threaded implementation of Apple’s DAAP server, mt-daapd
allows a machine to advertise audio and video files to Windows or
Mac iTunes clients. This version uses Apple’s ASPL Rendezvous

%setup -n %{name}-%{version}-%{release}

./configure –prefix=$RPM_BUILD_ROOT/usr –enable-sqlite3


make install
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mkdir -p $RPM_BUILD_ROOT/var/cache/mt-daapd
cp contrib/init.d/mt-daapd-fedora.templ $RPM_BUILD_ROOT/etc/rc.d/init.d/mt-daapd
cp contrib/mt-daapd.conf $RPM_BUILD_ROOT/etc
# cp contrib/mt-daapd.playlist $RPM_BUILD_ROOT/etc

/sbin/chkconfig –add mt-daapd


%config /etc/mt-daapd.conf
# %config /etc/mt-daapd.playlist


* Sat Jan 19 2007 j
– Update to svn-1696

* Tue Jan 18 2005 ron
– Update to 0.2.1, add oggvorbis

* Tue Jun 01 2004 ron
– Update to 0.2.0

* Mon Apr 06 2004 ron
– Update to 0.2.0-pre1
– Add /var/cache/mt-daapd

* Thu Jan 29 2004 ron
– Update to 0.1.1

* Fri Nov 14 2003 root
– Initial build.

Thanks for this.

– Ron