]>
Commit | Line | Data |
---|---|---|
8e642ba3 GS |
1 | Summary: DLNA library |
2 | Summary(pl.UTF-8): Biblioteka DLNA | |
3 | Name: libdlna | |
4 | Version: 0.2.3 | |
24fdbd74 | 5 | Release: 1 |
8e642ba3 GS |
6 | License: GPL v2 |
7 | Group: Libraries | |
8 | Source0: http://libdlna.geexbox.org/releases/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 2c974f95b711e5fd07f78fc4ebfcca66 | |
10 | Patch0: %{name}-ffmpeg_paths.patch | |
11 | URL: http://libdlna.geexbox.org | |
12 | BuildRequires: ffmpeg-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | libdlna aims at being the reference open-source implementation of DLNA | |
17 | (Digital Living Network Alliance) standards. | |
18 | ||
19 | %package devel | |
20 | Summary: Header files for libdlna library | |
21 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdlna | |
22 | Group: Development/Libraries | |
23 | Requires: %{name} = %{version}-%{release} | |
24 | ||
25 | %description devel | |
26 | Header files for libdlna library. | |
27 | ||
28 | %description devel -l pl.UTF-8 | |
29 | Pliki nagłówkowe biblioteki libdlna. | |
30 | ||
31 | %package static | |
32 | Summary: Static libdlna library | |
33 | Summary(pl.UTF-8): Statyczna biblioteka libdlna | |
34 | Group: Development/Libraries | |
35 | Requires: %{name}-devel = %{version}-%{release} | |
36 | ||
37 | %description static | |
38 | Static libdlna library. | |
39 | ||
40 | %description static -l pl.UTF-8 | |
41 | Statyczna biblioteka libdlna. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | %patch0 -p1 | |
46 | ||
47 | %build | |
ff9b4991 ER |
48 | ./configure \ |
49 | --prefix=%{_prefix} \ | |
50 | --libdir=%{_libdir} | |
1f1fda29 | 51 | |
ff9b4991 ER |
52 | %{__make} -j1 \ |
53 | CC="%{__cc}" \ | |
54 | CFLAGS="%{rpmcflags} -Wall -fpic -Isrc" | |
8e642ba3 GS |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
8e642ba3 | 58 | %{__make} install \ |
ff9b4991 | 59 | DESTDIR=$RPM_BUILD_ROOT |
8e642ba3 GS |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
012de971 GS |
64 | %post -p /sbin/ldconfig |
65 | %postun -p /sbin/ldconfig | |
66 | ||
8e642ba3 GS |
67 | %files |
68 | %defattr(644,root,root,755) | |
69 | %doc AUTHORS ChangeLog README | |
ff9b4991 ER |
70 | %attr(755,root,root) %{_libdir}/libdlna.so.*.*.* |
71 | %attr(755,root,root) %ghost %{_libdir}/libdlna.so.0 | |
8e642ba3 GS |
72 | |
73 | %files devel | |
74 | %defattr(644,root,root,755) | |
ff9b4991 ER |
75 | %attr(755,root,root) %{_libdir}/libdlna.so |
76 | %{_includedir}/dlna.h | |
24fdbd74 | 77 | %{_pkgconfigdir}/%{name}.pc |
8e642ba3 GS |
78 | |
79 | %files static | |
80 | %defattr(644,root,root,755) | |
ff9b4991 | 81 | %{_libdir}/libdlna.a |