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