]>
Commit | Line | Data |
---|---|---|
f99faf48 JB |
1 | Summary: FFmpegSource - FFmpeg wrapper library |
2 | Summary(pl.UTF-8): FFmpegSource - biblioteka obudowująca FFmpeg | |
3 | Name: ffmpegsource | |
d7192954 | 4 | Version: 2.15 |
f36cd6f2 | 5 | Release: 2 |
f99faf48 JB |
6 | License: MIT (ffmpegsource itself), GPL v3+ (forced by ffmpeg) |
7 | Group: Libraries | |
d7192954 | 8 | #Source0Download: http://code.google.com/p/ffmpegsource/downloads/list |
f99faf48 | 9 | Source0: http://ffmpegsource.googlecode.com/files/%{name}-%{version}_src.7z |
d7192954 JB |
10 | # Source0-md5: 0d0e2d4f6c4424e5f182f40f451c064e |
11 | Patch0: %{name}-c++.patch | |
f36cd6f2 | 12 | Patch1: %{name}-ffmpeg-0.8.patch |
f99faf48 JB |
13 | URL: http://code.google.com/p/ffmpegsource/ |
14 | BuildRequires: autoconf >= 2.58 | |
15 | BuildRequires: automake | |
f36cd6f2 | 16 | BuildRequires: ffmpeg-devel >= 0.8.0 |
f99faf48 JB |
17 | BuildRequires: libstdc++-devel |
18 | BuildRequires: libtool >= 2:2.0 | |
19 | BuildRequires: p7zip | |
20 | BuildRequires: pkgconfig >= 1:0.22 | |
f36cd6f2 JB |
21 | BuildRequires: rpmbuild(macros) >= 1.566 |
22 | BuildRequires: sed >= 4.0 | |
f99faf48 JB |
23 | BuildRequires: zlib-devel |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform | |
28 | wrapper library around FFmpeg, plus some additional components to deal | |
29 | with file formats FFmpeg's libavformat has (or used to have) problems | |
30 | with. It gives you an easy, convenient way to say "open and decompress | |
31 | this media file for me, I don't care how you do it" and get frame- and | |
32 | sample-accurate access (usually), without having to bother with the | |
33 | sometimes less than straightforward and less than perfectly documented | |
34 | FFmpeg API. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | FFmpegSource (zwykle zwana FFMS lub FFMS2) to wieloplatformowa | |
38 | biblioteka obudowująca FFmpeg wraz z paroma dodatkowymi komponentami | |
39 | mającymi radzić sobie z formatami plików, z którymi libavformat z | |
40 | FFmpeg ma (lub miał) problemy. Umożliwia w łatwy sposób zażądanie | |
41 | "otwórz i zdekompresuj ten plik, nieważne jak" i uzyskanie dostępu | |
42 | (zwykle) z dokładnością do ramek i próbek, bez potrzeby zajmowania | |
43 | się często złożonym, nie najlepiej udokumentowanym API FFmpeg. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for FFmpegSource library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FFmpegSource | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
f36cd6f2 | 50 | Requires: ffmpeg-devel >= 0.8.0 |
f99faf48 JB |
51 | Requires: libstdc++-devel |
52 | Requires: zlib-devel | |
53 | ||
54 | %description devel | |
55 | Header files for FFmpegSource library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki FFmpegSource. | |
59 | ||
60 | %package static | |
61 | Summary: Static FFmpegSource library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka FFmpegSource | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static FFmpegSource library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka FFmpegSource. | |
71 | ||
72 | %prep | |
73 | %setup -q -c -T -n %{name}-%{version}_src | |
74 | 7z -o.. x %{SOURCE0} | |
f36cd6f2 | 75 | %undos src/core/{indexing,lavfindexer,utils}.cpp |
d7192954 | 76 | %patch0 -p1 |
f36cd6f2 | 77 | %patch1 -p1 |
f99faf48 JB |
78 | %{__rm} configure |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} -I m4 | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
86 | %configure \ | |
87 | --enable-shared | |
88 | %{__make} \ | |
89 | V=1 | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc COPYING | |
106 | %attr(755,root,root) %{_bindir}/ffmsindex | |
107 | %attr(755,root,root) %{_libdir}/libffms2.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libffms2.so.2 | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %doc doc/*.{html,css} | |
113 | %attr(755,root,root) %{_libdir}/libffms2.so | |
114 | %{_libdir}/libffms2.la | |
115 | %{_includedir}/ffms.h | |
116 | %{_includedir}/ffmscompat.h | |
117 | %{_pkgconfigdir}/ffms2.pc | |
118 | ||
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libffms2.a |