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