Package mt-daapd: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | %define realver svn-1586 Summary: A multi-threaded implementation of Apple's DAAP server Name: mt-daapd Version: 0.2.4.1586 Release: alt1.qa1 License: GPL Group: System/Servers URL: http://www.mt-daapd.org Source: http://download.sourceforge.net/sourceforge/mt-daapd/%name-%realver.tar.gz Source1: %name-init.d Source2: %name-logrotate.d Patch: plugins-libdir.patch Packager: Stanislav Yadykin <tosick@altlinux.ru> # Automatically added by buildreq on Thu Nov 06 2008 BuildRequires: gcc-c++ libavahi-devel libflac-devel libgdbm-devel libid3tag-devel libsqlite3-devel libvorbis-devel %description A multi-threaded implementation of Apple's DAAP server, mt-daapd allows a Linux machine to advertise MP3 files to to used by Windows or Mac iTunes clients. This version uses Apple's ASPL Rendezvous daemon. %package devel Summary: Development libraries for mt-daapd Group: Development/C %description devel Development libraries for mt-daapd. %prep %setup -n %name-%realver %patch0 -p1 %build %configure \ --enable-oggvorbis \ --enable-flac \ --enable-avahi \ --enable-upnp \ --enable-sqlite3 \ --enable-gdbm %make %install %makeinstall %__install -d %buildroot/%_sysconfdir %__cat contrib/mt-daapd.conf | %__sed -e "s|runas = nobody|runus = %name|" | %__sed -e "s|db_type = sqlite|db_type = sqlite3|" \ | %__sed -e "s|#logfile = /var/log/mt-daapd.log|logfile = /var/log/mt-daapd/mt-daapd.log|" > %buildroot/%_sysconfdir/%name.conf %__install -d %buildroot/%_sysconfdir/rc.d/init.d %__install -m 755 %SOURCE1 %buildroot/%_sysconfdir/rc.d/init.d/%name %__install -d %buildroot/%_sysconfdir/logrotate.d %__install -m 644 %SOURCE2 %buildroot/%_sysconfdir/logrotate.d/%name %__install -d %buildroot/%_var/log/%name %__install -d %buildroot/%_var/run/%name %__install -d %buildroot/%_var/cache/%name %pre /usr/sbin/useradd -r -d %_var/cache/%name -s /sbin/nologin -c "mt-daapd Network Multimedia Server" %name 2>/dev/null || true %post /sbin/chkconfig --add %name %preun if [ $1 = 0 ]; then /sbin/service %name condstop &>/dev/null || true /sbin/chkconfig --del %name fi %postun /sbin/service %name condrestart &>/dev/null || true %files %doc AUTHORS ChangeLog COPYING CREDITS INSTALL NEWS README TODO %config %_sysconfdir/rc.d/init.d/%name %config(noreplace) %_sysconfdir/%name.conf %config(noreplace) %_sysconfdir/logrotate.d/%name %_bindir/* %_sbindir/%name %_datadir/%name/admin-root %_libdir/%name/plugins/*.so %_var/log/%name %_var/run/%name %_var/cache/%name %files devel %_libdir/%name/plugins/*.a %_libdir/%name/plugins/*.la %changelog * Wed Apr 17 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.2.4.1586-alt1.qa1 - NMU: rebuilt for debuginfo. * Thu Jan 15 2009 Stanislav Yadykin <tosick@altlinux.org> 0.2.4.1586-alt1 - new version - init script improvements * Thu Nov 20 2008 Stanislav Yadykin <tosick@altlinux.ru> 0.2.4.1571-alt2 - added /var directories * Thu Nov 06 2008 Stanislav Yadykin <tosick@altlinux.org> 0.2.4.1571-alt1 - Initial version |