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