]>
Commit | Line | Data |
---|---|---|
ba1cba68 | 1 | Summary: DLNA server software |
2 | Summary(pl.UTF-8): DLNA server software | |
3 | Name: minidlna | |
2cf29a78 | 4 | Version: 1.0.22 |
ba1cba68 | 5 | Release: 0.1 |
6 | License: GPL | |
7 | Group: Networking/Daemons | |
8 | Source0: http://downloads.sourceforge.net/minidlna/%{name}_%{version}_src.tar.gz | |
2cf29a78 | 9 | # Source0-md5: 3de2f6b54f43bb998dfad3c8fa75cef3 |
ba1cba68 | 10 | URL: http://sourceforge.net/projects/minidlna/ |
11 | BuildRequires: ffmpeg-devel | |
12 | BuildRequires: flac-devel | |
13 | BuildRequires: libdlna-devel >= 0.2.1 | |
14 | BuildRequires: libexif-devel | |
15 | BuildRequires: libid3tag-devel | |
16 | BuildRequires: libjpeg-devel | |
17 | BuildRequires: libogg-devel | |
18 | BuildRequires: libvorbis-devel | |
19 | BuildRequires: rpmbuild(macros) >= 1.228 | |
20 | BuildRequires: sqlite3-devel | |
21 | Requires(post,preun): /sbin/chkconfig | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | MiniDLNA (aka ReadyDLNA) is server software with the aim of being | |
26 | fully compliant with DLNA/UPnP-AV clients. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | MiniDLNA (aka ReadyDLNA) is server software with the aim of being | |
30 | fully compliant with DLNA/UPnP-AV clients. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | ||
35 | %build | |
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %post | |
45 | /sbin/chkconfig --add %{name} | |
46 | %service %{name} restart | |
47 | ||
48 | %preun | |
49 | if [ "$1" = "0" ]; then | |
50 | %service -q %{name} stop | |
51 | /sbin/chkconfig --del %{name} | |
52 | fi | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc NEWS README TODO | |
60 | #%attr(754,root,root) /etc/rc.d/init.d/%{name} | |
61 | #%attr(754,root,root) %{_sysconfdir}/init.d/minidlna | |
62 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/minidlna.conf | |
63 | %attr(755,root,root) %{_sbindir}/minidlna |