3 %bcond_without imlib2 # we can safely play without it :-)
5 Summary: Realtime audio/video encoder and streaming server
6 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
12 Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}-pre1.tar.gz
13 # Source0-md5: ea5587e3c66d50b1503b82ac4179c303
14 Patch0: %{name}-opt.patch
15 Patch1: %{name}-imlib2.patch
16 Patch2: %{name}-libtool.patch
17 Patch3: %{name}-lib64.patch
18 Patch4: %{name}-gcc34.patch
19 URL: http://ffmpeg.sourceforge.net/
20 BuildRequires: SDL-devel
21 BuildRequires: freetype-devel
23 # require version with altivec support fixed
24 BuildRequires: gcc >= 5:3.3.2-3
26 %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
27 BuildRequires: libtool >= 2:1.4d-3
33 BuildRequires: zlib-devel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _noautoreqdep libGL.so.1 libGLU.so.1
39 ffmpeg is a hyper fast realtime audio/video encoder and streaming
40 server. It can grab from a standard Video4Linux video source and
41 convert it into several file formats based on DCT/motion compensation
42 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
45 This package contains also ffmpeg shared libraries (libavcodec and
49 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
50 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
51 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
52 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
53 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
54 strumienia kompatybilnego z AC3.
56 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
60 Summary: FFplay - SDL-based media player
61 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
62 Group: Applications/Multimedia
63 Requires: %{name} = %{version}-%{release}
66 FFplay is a very simple and portable media player using the FFmpeg
67 libraries and the SDL library. It is mostly used as a test bench for
68 the various APIs of FFmpeg.
70 %description ffplay -l pl
71 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
72 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
73 testowania ró¿nych API FFmpeg.
76 Summary: imlib2 based hook
77 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
79 Requires: %{name} = %{version}-%{release}
81 %description vhook-imlib2
82 This module implements a text overlay for a video image. Currently it
83 supports a fixed overlay or reading the text from a file. The string
84 is passed through strftime so that it is easy to imprint the date and
87 %description vhook-imlib2 -l pl
88 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
89 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
90 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
94 Summary: ffmpeg header files
95 Summary(pl): Pliki nag³ówkowe ffmpeg
96 Group: Development/Libraries
97 Requires: %{name} = %{version}-%{release}
102 %description devel -l pl
103 Pliki nag³ówkowe ffmpeg.
106 # Summary: ffmpeg static libraries
107 # Summary(pl): Statyczne biblioteki ffmpeg
108 # Group: Development/Libraries
109 # Requires: %{name}-devel = %{version}-%{release}
111 # %description static
112 # ffmpeg static libraries (libavcodec and libavformat).
114 # %description static -l pl
115 # Statyczne biblioteki ffmpeg (libavcodec i libavformat).
118 %setup -q -n ffmpeg-0.4.9-pre1
129 # - it's not autoconf configure
130 # - -fomit-frame-pointer is always needed on x86 due to lack of registers
132 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
134 --prefix=%{_prefix} \
135 --mandir=%{_mandir} \
147 --extra-cflags="%{rpmcflags} -fomit-frame-pointer" \
148 --extra-ldflags="%{rpmldflags}" \
155 %{__make} -C libavcodec/libpostproc
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
162 DESTDIR=$RPM_BUILD_ROOT \
163 mandir=$RPM_BUILD_ROOT%{_mandir} \
164 prefix=$RPM_BUILD_ROOT%{_prefix} \
165 bindir=$RPM_BUILD_ROOT%{_bindir} \
168 %{__make} -C libavcodec/libpostproc install \
169 DESTDIR=$RPM_BUILD_ROOT \
170 mandir=$RPM_BUILD_ROOT%{_mandir} \
171 prefix=$RPM_BUILD_ROOT%{_prefix} \
172 bindir=$RPM_BUILD_ROOT%{_bindir} \
176 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
177 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
180 rm -rf $RPM_BUILD_ROOT
182 %post -p /sbin/ldconfig
183 %postun -p /sbin/ldconfig
186 %defattr(644,root,root,755)
187 %doc Changelog README doc/*.html
188 %attr(755,root,root) %{_bindir}/ffmpeg
189 %attr(755,root,root) %{_sbindir}/ffserver
190 %attr(755,root,root) %{_libdir}/libavcodec-*.so
191 %attr(755,root,root) %{_libdir}/libavformat-*.so
192 %attr(755,root,root) %{_libdir}/libpostproc.so.*
193 %dir %{_libdir}/vhook
194 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
195 %attr(755,root,root) %{_libdir}/vhook/fish.so
196 %attr(755,root,root) %{_libdir}/vhook/null.so
197 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ffserver.conf
198 %{_mandir}/man1/ffmpeg.1*
199 %{_mandir}/man1/ffserver.1*
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_bindir}/ffplay
204 %{_mandir}/man1/ffplay.1*
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/vhook/imlib2.so
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_libdir}/libavcodec.so
215 %attr(755,root,root) %{_libdir}/libavformat.so
216 %attr(755,root,root) %{_libdir}/libpostproc.so
218 %{_includedir}/ffmpeg
219 %{_includedir}/postproc
222 # %defattr(644,root,root,755)