FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Nightlies Feedback › RPM specfile and built RPM for CentOS svn-1696 (+fedora etc)
- This topic has 2 replies, 2 voices, and was last updated 16 years, 10 months ago by casperghst42.
-
AuthorPosts
-
19/01/2008 at 12:08 PM #2147davis65536Guest
Hi,
[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:
http://www.morocco.force9.co.uk/mt-daapd/mt-daapd.spec
After building and installation I needed to edit the following files to fix the “@prefix@” 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).
/etc/init.d/mt-daapd
/etc/mt-daapd.confI 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:
http://www.morocco.force9.co.uk/mt-daapd/mt-daapd-svn-1696.i386.rpm
(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
URL: http://sourceforge.net/project/showfiles.php?group_id=98211
Source0: %{name}-%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: libid3tag gdbm sqlite
BuildRequires: libid3tag-devel gdbm-devel sqlite-devel%description
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
daemon.%prep
%setup -n %{name}-%{version}-%{release}%build
./configure –prefix=$RPM_BUILD_ROOT/usr –enable-sqlite3make RPM_OPT_FLAGS=”$RPM_OPT_FLAGS”
%install
rm -rf $RPM_BUILD_ROOT
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%post
/sbin/chkconfig –add mt-daapd%clean
rm -rf $RPM_BUILD_ROOT%files
%defattr(-,root,root,-)
%config /etc/mt-daapd.conf
# %config /etc/mt-daapd.playlist
/etc/rc.d/init.d/mt-daapd
/usr/sbin/mt-daapd
/usr/bin/mt-daapd-ssc.sh
/usr/bin/wavstreamer
/usr/share/mt-daapd/*
/var/cache/mt-daapd
/usr/lib/mt-daapd/plugins/*%doc
%changelog
* 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.20/01/2008 at 3:37 AM #15940rpeddeParticipant@davis65536 wrote:
Hi,
[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:
http://www.morocco.force9.co.uk/mt-daapd/mt-daapd.spec
After building and installation I needed to edit the following files to fix the “@prefix@” 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).
/etc/init.d/mt-daapd
/etc/mt-daapd.confI 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:
http://www.morocco.force9.co.uk/mt-daapd/mt-daapd-svn-1696.i386.rpm
(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
URL: http://sourceforge.net/project/showfiles.php?group_id=98211
Source0: %{name}-%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: libid3tag gdbm sqlite
BuildRequires: libid3tag-devel gdbm-devel sqlite-devel%description
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
daemon.%prep
%setup -n %{name}-%{version}-%{release}%build
./configure –prefix=$RPM_BUILD_ROOT/usr –enable-sqlite3make RPM_OPT_FLAGS=”$RPM_OPT_FLAGS”
%install
rm -rf $RPM_BUILD_ROOT
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%post
/sbin/chkconfig –add mt-daapd%clean
rm -rf $RPM_BUILD_ROOT%files
%defattr(-,root,root,-)
%config /etc/mt-daapd.conf
# %config /etc/mt-daapd.playlist
/etc/rc.d/init.d/mt-daapd
/usr/sbin/mt-daapd
/usr/bin/mt-daapd-ssc.sh
/usr/bin/wavstreamer
/usr/share/mt-daapd/*
/var/cache/mt-daapd
/usr/lib/mt-daapd/plugins/*%doc
%changelog
* 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
19/02/2008 at 11:13 AM #15941casperghst42GuestI have a fully working .spec here: http://www.c-note.dk/yum/mt-daapd-svn/mt-daapd-svn.spec – it builds on CentOS4.4 – there might be some diffrences with CentOS5, but it should be fairly easy to track down.
I have also used it on SLES10, with some modifications – I can make it available if there is interest (PM me for that).
Casper
@davis65536 wrote:
Hi,
[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:
http://www.morocco.force9.co.uk/mt-daapd/mt-daapd.spec
After building and installation I needed to edit the following files to fix the “@prefix@” 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).
/etc/init.d/mt-daapd
/etc/mt-daapd.confI 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:
http://www.morocco.force9.co.uk/mt-daapd/mt-daapd-svn-1696.i386.rpm
(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
URL: http://sourceforge.net/project/showfiles.php?group_id=98211
Source0: %{name}-%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: libid3tag gdbm sqlite
BuildRequires: libid3tag-devel gdbm-devel sqlite-devel%description
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
daemon.%prep
%setup -n %{name}-%{version}-%{release}%build
./configure –prefix=$RPM_BUILD_ROOT/usr –enable-sqlite3make RPM_OPT_FLAGS=”$RPM_OPT_FLAGS”
%install
rm -rf $RPM_BUILD_ROOT
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%post
/sbin/chkconfig –add mt-daapd%clean
rm -rf $RPM_BUILD_ROOT%files
%defattr(-,root,root,-)
%config /etc/mt-daapd.conf
# %config /etc/mt-daapd.playlist
/etc/rc.d/init.d/mt-daapd
/usr/sbin/mt-daapd
/usr/bin/mt-daapd-ssc.sh
/usr/bin/wavstreamer
/usr/share/mt-daapd/*
/var/cache/mt-daapd
/usr/lib/mt-daapd/plugins/*%doc
%changelog
* 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. -
AuthorPosts
- The forum ‘Nightlies Feedback’ is closed to new topics and replies.