]> git.pld-linux.org Git - SPECS.git/blob - mt-daapd.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / mt-daapd.spec
1 # TODO:
2 # - the init script is severly broken
3 # - the deamon runs as nobody (won't work without a+rw /var/cache/mt-daapd
4 #   and this is wrong)
5 # - as-needed has to be fixed
6
7 Summary:        A multi-threaded implementation of Apple's DAAP server
8 Summary(pl.UTF-8):      Wielowątkowa implementacja serwera DAAP Apple
9 Name:           mt-daapd
10 Version:        0.2.4.2
11 Release:        1
12 License:        GPL
13 Group:          Networking/Daemons
14 Source0:        http://dl.sourceforge.net/mt-daapd/%{name}-%{version}.tar.gz
15 # Source0-md5:  67bef9fb14d487693b0dfb792c3f1b05
16 URL:            http://www.fireflymediaserver.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  avahi-compat-howl-devel
20 BuildRequires:  libid3tag-devel
21 BuildRequires:  libogg-devel
22 BuildRequires:  libtool
23 BuildRequires:  libvorbis-devel
24 BuildRequires:  sqlite-devel
25 Requires(post,preun):   /sbin/chkconfig
26 Requires:       vorbis-tools
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         filterout_ld    -Wl,--as-needed
30
31 %description
32 A multi-threaded implementation of Apple's DAAP server, mt-daapd
33 allows a Linux machine to advertise MP3 files to be used by Windows or
34 Mac iTunes clients. This version uses Apple's ASPL Rendezvous daemon.
35
36 %description -l pl.UTF-8
37 Wielowątkowa implementacja serwera DAAP Apple - mt-daapd umożliwia
38 maszynie linuksowej rozgłaszać pliki MP3 do wykorzystania przez
39 windowsowych lub macowych klientów iTunes. Ta wersja używa demona ASPL
40 Rendezvous Apple.
41
42 %prep
43 %setup -q
44
45 %build
46 %{__libtoolize}
47 %{__aclocal}
48 %{__autoconf}
49 %{__autoheader}
50 %{__automake}
51 %configure \
52         --enable-oggvorbis \
53         --enable-sqlite
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/cache/mt-daapd}
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install contrib/mt-daapd $RPM_BUILD_ROOT/etc/rc.d/init.d/mt-daapd
64 install contrib/mt-daapd.conf $RPM_BUILD_ROOT%{_sysconfdir}
65 install contrib/mt-daapd.playlist $RPM_BUILD_ROOT%{_sysconfdir}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post
71 /sbin/chkconfig --add mt-daapd
72
73 %preun
74 if [ "$1" = "0" ]; then
75         /sbin/chkconfig --del mt-daapd
76 fi
77
78 %files
79 %defattr(644,root,root,755)
80 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mt-daapd.conf
81 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mt-daapd.playlist
82 %attr(755,root,root) %{_sbindir}/mt-daapd
83 %attr(754,root,root) /etc/rc.d/init.d/mt-daapd
84 %{_datadir}/mt-daapd
85 /var/cache/mt-daapd
This page took 0.102911 seconds and 3 git commands to generate.