rpms/mt-daapd/F-8 mt-daapd.spec,1.1,1.2

W. Michael Petullo (mikep) fedora-extras-commits at redhat.com
Tue Feb 26 12:15:59 UTC 2008


Author: mikep

Update of /cvs/extras/rpms/mt-daapd/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21441

Modified Files:
	mt-daapd.spec 
Log Message:
New upstream version.



Index: mt-daapd.spec
===================================================================
RCS file: /cvs/extras/rpms/mt-daapd/F-8/mt-daapd.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mt-daapd.spec	25 Dec 2007 11:31:06 -0000	1.1
+++ mt-daapd.spec	26 Feb 2008 12:15:13 -0000	1.2
@@ -1,18 +1,37 @@
+%define svntag 1696
+%bcond_without fedora
+
+%{?FE_USERADD_REQ}
+
+%global uid 72
+%global username mt-daapd
+%global homedir %_var/lib/%username
+%global gecos mt-daapd
+
 Summary: An iTunes-compatible media server
 Name: mt-daapd
-Version: 0.2.4.1
-Release: 5%{?dist}
+Version: 0.9
+Release: 0.1.%{svntag}%{?dist}
 License: GPLv2+
 Group: Applications/Multimedia
-Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-Patch0: mt-daapd-0.2.4.1-fedora.patch
+#Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Nightly build
+Source: mt-daapd-svn-%{svntag}.tar.gz
+Patch0: mt-daapd-svn-1696-defaults.patch
+Patch1: mt-daapd-svn-1696-fedora.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Url: http://www.fireflymediaserver.org/
-BuildRequires: gdbm-devel, avahi-devel, libogg-devel, libvorbis-devel, zlib-devel, libid3tag-devel
+BuildRequires: fedora-usermgmt-devel
+BuildRequires: gdbm-devel, avahi-devel, zlib-devel
+BuildRequires: flac-devel, libogg-devel, libvorbis-devel
+BuildRequires: libid3tag-devel, sqlite-devel
+Requires(pre):   /usr/sbin/useradd
 Requires(preun): /sbin/chkconfig
 Requires(preun): /sbin/service
 Requires(postun): /sbin/service
 Requires(post): /sbin/chkconfig
+Provides: group(%username) = %uid
+Provides: user(%username) = %uid
 
 %description
 The purpose of this project is built the best server software to serve
@@ -21,20 +40,24 @@
 devices.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n mt-daapd-svn-%{svntag}
+%patch0 -p1 -b .defaults
+%patch1 -p1 -b .fedora
 
 %build
-%configure --enable-avahi --enable-oggvorbis
+%configure --enable-avahi --enable-oggvorbis --enable-sqlite3 --enable-flac
 make %{?_smp_mflags}
 
 %install
 make DESTDIR=%{buildroot} install
 mkdir -p %{buildroot}%{_initrddir}
 mkdir -p %{buildroot}%{_localstatedir}/cache/mt-daapd
-install contrib/mt-daapd %{buildroot}%{_sysconfdir}/rc.d/init.d/mt-daapd
+install contrib/init.d/mt-daapd-fedora %{buildroot}%{_sysconfdir}/rc.d/init.d/mt-daapd
 install -m 0640 contrib/mt-daapd.conf %{buildroot}%{_sysconfdir}/mt-daapd.conf
-install -m 0644 contrib/mt-daapd.playlist %{buildroot}%{_sysconfdir}/mt-daapd.playlist
+
+%pre
+%__fe_groupadd %uid -r %username &>/dev/null || :
+%__fe_useradd  %uid -r -s /sbin/nologin -d %homedir -M -c '%gecos' -g %username %username &>/dev/null || :
 
 %preun
 if [ $1 = 0 ]; then
@@ -49,6 +72,8 @@
 if [ "$1" -ge "1" ]; then
         /sbin/service mt-daapd condrestart >/dev/null 2>&1 || :
 fi
+%__fe_userdel  %username &>/dev/null || :
+%__fe_groupdel %username &>/dev/null || :
 
 %clean
 rm -rf %{buildroot}
@@ -56,14 +81,19 @@
 %files
 %defattr(-,root,root,-)
 %config(noreplace) %{_sysconfdir}/mt-daapd.conf
-%config(noreplace) %{_sysconfdir}/mt-daapd.playlist
-%{_initrddir}/mt-daapd
 %{_sbindir}/mt-daapd
 %{_datadir}/mt-daapd
-%{_localstatedir}/cache/mt-daapd
+%{_bindir}/mt-daapd-ssc.sh
+%{_bindir}/wavstreamer
+%{_libdir}/mt-daapd
+%{_sysconfdir}/rc.d/init.d/mt-daapd
+%attr(0700,mt-daapd,root) %{_localstatedir}/cache/mt-daapd
 %doc AUTHORS COPYING CREDITS INSTALL NEWS README TODO
 
 %changelog
+* Tue Feb 26 2008 W. Michael Petullo <mike[at]flyn.org> - 0.9-0.1.1696
+   - New upstream version.
+
 * Mon Dec 24 2007 W. Michael Petullo <mike[at]flyn.org> - 0.2.4.1-5
    - Change license to GPLv2+.
    - Add requires(post) chkconfig.




More information about the fedora-extras-commits mailing list