]>
Commit | Line | Data |
---|---|---|
8d93948c ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
ffd255af | 4 | %bcond_without avresample # avresample support via libavresample |
8d93948c | 5 | |
f99faf48 JB |
6 | Summary: FFmpegSource - FFmpeg wrapper library |
7 | Summary(pl.UTF-8): FFmpegSource - biblioteka obudowująca FFmpeg | |
8d93948c ER |
8 | Name: ffms2 |
9 | Version: 2.20 | |
3f1e9372 | 10 | Release: 3 |
f99faf48 JB |
11 | License: MIT (ffmpegsource itself), GPL v3+ (forced by ffmpeg) |
12 | Group: Libraries | |
8d93948c ER |
13 | Source0: https://github.com/FFMS/ffms2/archive/%{version}/%{name}-%{version}.tar.gz |
14 | # Source0-md5: d6f2faa9e0ffed2e2d8d926592a87744 | |
15 | Patch0: ffmpegsource-ffmpeg011.patch | |
16 | URL: https://github.com/FFMS/ffms2 | |
f99faf48 | 17 | BuildRequires: autoconf >= 2.58 |
ffd255af | 18 | BuildRequires: automake >= 1:1.11 |
ce23f194 | 19 | # PKG_CHECK_MODULES(LIBAV, [libavformat >= 53.20.0 libavcodec >= 53.24.0 libswscale >= 0.7.0 libavutil >= 51.21.0 ]) |
7d6fea5e | 20 | BuildRequires: ffmpeg-devel >= 0.9 |
ffd255af JB |
21 | # libavresample >= 1.0.0 |
22 | %{?with_avresample:BuildRequires: ffmpeg-devel >= 1.1} | |
f99faf48 JB |
23 | BuildRequires: libstdc++-devel |
24 | BuildRequires: libtool >= 2:2.0 | |
f99faf48 | 25 | BuildRequires: pkgconfig >= 1:0.22 |
f36cd6f2 JB |
26 | BuildRequires: rpmbuild(macros) >= 1.566 |
27 | BuildRequires: sed >= 4.0 | |
f99faf48 | 28 | BuildRequires: zlib-devel |
8d93948c | 29 | Obsoletes: ffmpegsource < 2.20 |
f99faf48 JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform | |
34 | wrapper library around FFmpeg, plus some additional components to deal | |
35 | with file formats FFmpeg's libavformat has (or used to have) problems | |
36 | with. It gives you an easy, convenient way to say "open and decompress | |
37 | this media file for me, I don't care how you do it" and get frame- and | |
38 | sample-accurate access (usually), without having to bother with the | |
39 | sometimes less than straightforward and less than perfectly documented | |
40 | FFmpeg API. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | FFmpegSource (zwykle zwana FFMS lub FFMS2) to wieloplatformowa | |
44 | biblioteka obudowująca FFmpeg wraz z paroma dodatkowymi komponentami | |
45 | mającymi radzić sobie z formatami plików, z którymi libavformat z | |
46 | FFmpeg ma (lub miał) problemy. Umożliwia w łatwy sposób zażądanie | |
47 | "otwórz i zdekompresuj ten plik, nieważne jak" i uzyskanie dostępu | |
8d93948c ER |
48 | (zwykle) z dokładnością do ramek i próbek, bez potrzeby zajmowania się |
49 | często złożonym, nie najlepiej udokumentowanym API FFmpeg. | |
f99faf48 JB |
50 | |
51 | %package devel | |
52 | Summary: Header files for FFmpegSource library | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FFmpegSource | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
ffd255af JB |
56 | %if %{with avresample} |
57 | Requires: ffmpeg-devel >= 1.1 | |
58 | %else | |
7d6fea5e | 59 | Requires: ffmpeg-devel >= 0.9 |
ffd255af | 60 | %endif |
f99faf48 JB |
61 | Requires: libstdc++-devel |
62 | Requires: zlib-devel | |
8d93948c ER |
63 | Provides: ffmpegsource-devel = %{version}-%{release} |
64 | Obsoletes: ffmpegsource-devel < 2.20 | |
f99faf48 JB |
65 | |
66 | %description devel | |
67 | Header files for FFmpegSource library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki FFmpegSource. | |
71 | ||
72 | %package static | |
73 | Summary: Static FFmpegSource library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka FFmpegSource | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
8d93948c | 77 | Obsoletes: ffmpegsource-static < 2.20 |
f99faf48 JB |
78 | |
79 | %description static | |
80 | Static FFmpegSource library. | |
81 | ||
82 | %description static -l pl.UTF-8 | |
83 | Statyczna biblioteka FFmpegSource. | |
84 | ||
85 | %prep | |
8d93948c | 86 | %setup -q |
da3072ef | 87 | %patch0 -p0 |
f36cd6f2 | 88 | %undos src/core/{indexing,lavfindexer,utils}.cpp |
f99faf48 JB |
89 | %{__rm} configure |
90 | ||
91 | %build | |
ce23f194 | 92 | CXXFLAGS="%{rpmcxxflags} -Wall -Wextra -Wno-missing-field-initializers -Werror" |
f99faf48 JB |
93 | %{__libtoolize} |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %configure \ | |
ffd255af | 99 | --enable-avresample%{!?with_avresample:=no} \ |
8d93948c | 100 | --disable-silent-rules \ |
ffd255af JB |
101 | --enable-shared \ |
102 | %{__enable_disable static_libs static} | |
cf17c716 | 103 | |
8d93948c | 104 | %{__make} |
f99faf48 JB |
105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
f99faf48 JB |
108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
8d93948c ER |
111 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
112 | ||
f99faf48 JB |
113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
ffd255af | 121 | %doc COPYING README.md |
f99faf48 JB |
122 | %attr(755,root,root) %{_bindir}/ffmsindex |
123 | %attr(755,root,root) %{_libdir}/libffms2.so.*.*.* | |
8d93948c | 124 | %attr(755,root,root) %ghost %{_libdir}/libffms2.so.3 |
f99faf48 JB |
125 | |
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %doc doc/*.{html,css} | |
129 | %attr(755,root,root) %{_libdir}/libffms2.so | |
130 | %{_libdir}/libffms2.la | |
131 | %{_includedir}/ffms.h | |
132 | %{_includedir}/ffmscompat.h | |
133 | %{_pkgconfigdir}/ffms2.pc | |
134 | ||
8d93948c | 135 | %if %{with static_libs} |
f99faf48 JB |
136 | %files static |
137 | %defattr(644,root,root,755) | |
138 | %{_libdir}/libffms2.a | |
8d93948c | 139 | %endif |