File mt-daapd.spec of Package mt-daapd
#
# spec file for package mDNSResponder (Version 85)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# neededforbuild mDNSResponder mDNSResponder-devel libogg libogg-devel libvorbis libvorbis-devel libid3tag libid3tag-devel
Name: mt-daapd
Summary: Multicast DNS services (Apple Rendezvous)
Version: 0.2.1
Release: 7
License: Other License(s), see package, BSD
Group: Productivity/Networking/Other
URL: http://developer.apple.com/macosx/rendezvous/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
Source0: %name-%version.tar.bz2
Source1: daapd.init
Patch0: %name.diff
Patch1: fix-crash-as-nobody.diff
Patch2: fix-64bit.diff
%description
Network service registration and discovery service.
Authors:
--------
Apple Computer, Inc.
%prep
%setup -q
%patch
%patch1
%patch2
autoreconf -f -i
%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
--libdir=%_libdir \
--prefix=/usr \
--enable-mdns \
--enable-oggvorbis
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 0644 contrib/mt-daapd.conf $RPM_BUILD_ROOT/etc/
install -m 0644 contrib/mt-daapd.playlist $RPM_BUILD_ROOT/etc/
#
# install start script
#
install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/daapd
ln -sf ../../etc/init.d/daapd ${RPM_BUILD_ROOT}/usr/sbin/rcdaapd
%post
%{fillup_and_insserv daapd}
%postun
%restart_on_update daapd
%insserv_cleanup
%preun
%stop_on_removal daapd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
/etc/init.d/daapd
/usr/sbin/*
/usr/share/mt-daapd
%config(noreplace) /etc/mt-daapd.conf
%config(noreplace) /etc/mt-daapd.playlist