3 %bcond_without imlib2 # we can safely play without it :-)
4 %bcond_without broken_rpm # dont BC packages because of logic error in Ac
6 Summary: Realtime audio/video encoder and streaming server
7 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
11 # LGPL or GPL, chosen at configure time (GPL version is more featured)
14 Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}-pre1.tar.gz
15 # Source0-md5: ea5587e3c66d50b1503b82ac4179c303
16 Patch0: %{name}-imlib2.patch
17 Patch1: %{name}-libtool.patch
18 URL: http://ffmpeg.sourceforge.net/
19 %if %{with broken_rpm}
20 BuildConflicts: libpostproc
22 BuildRequires: SDL-devel
23 BuildRequires: freetype-devel
25 # require version with altivec support fixed
26 BuildRequires: gcc >= 5:3.3.2-3
28 %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
29 BuildRequires: libtool >= 2:1.4d-3
30 BuildRequires: faac-libs
36 BuildRequires: perl-tools-pod
38 BuildRequires: texinfo
39 BuildRequires: zlib-devel
40 BuildRequires: lame-libs
41 BuildRequires: libvorbis
42 Obsoletes: libpostproc
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _noautoreqdep libGL.so.1 libGLU.so.1
48 ffmpeg is a hyper fast realtime audio/video encoder and streaming
49 server. It can grab from a standard Video4Linux video source and
50 convert it into several file formats based on DCT/motion compensation
51 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
54 This package contains also ffmpeg shared libraries (libavcodec and
58 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
59 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
60 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
61 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
62 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
63 strumienia kompatybilnego z AC3.
65 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
69 Summary: ffmpeg header files
70 Summary(pl): Pliki nag³ówkowe ffmpeg
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
73 Obsoletes: libpostproc-devel
78 %description devel -l pl
79 Pliki nag³ówkowe ffmpeg.
82 Summary: ffmpeg static libraries
83 Summary(pl): Statyczne biblioteki ffmpeg
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
88 ffmpeg static libraries (libavcodec and libavformat).
90 %description static -l pl
91 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
94 Summary: FFplay - SDL-based media player
95 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
96 Group: Applications/Multimedia
97 Requires: %{name} = %{version}-%{release}
100 FFplay is a very simple and portable media player using the FFmpeg
101 libraries and the SDL library. It is mostly used as a test bench for
102 the various APIs of FFmpeg.
104 %description ffplay -l pl
105 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
106 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
107 testowania ró¿nych API FFmpeg.
109 %package vhook-imlib2
110 Summary: imlib2 based hook
111 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
113 Requires: %{name} = %{version}-%{release}
115 %description vhook-imlib2
116 This module implements a text overlay for a video image. Currently it
117 supports a fixed overlay or reading the text from a file. The string
118 is passed through strftime so that it is easy to imprint the date and
121 %description vhook-imlib2 -l pl
122 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
123 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
124 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
128 %setup -q -n ffmpeg-0.4.9-pre1
134 # - it's not autoconf configure
135 # - -fomit-frame-pointer is always needed on x86 due to lack of registers
137 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
139 --prefix=%{_prefix} \
140 --libdir=%{_libdir} \
141 --mandir=%{_mandir} \
159 --extra-cflags="%{rpmcflags} -fomit-frame-pointer" \
160 --extra-ldflags="%{rpmldflags}" \
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
173 DESTDIR=$RPM_BUILD_ROOT
175 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
176 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
179 rm -rf $RPM_BUILD_ROOT
181 %post -p /sbin/ldconfig
182 %postun -p /sbin/ldconfig
185 %defattr(644,root,root,755)
186 %doc Changelog README doc/*.html
187 %attr(755,root,root) %{_bindir}/ffmpeg
188 %attr(755,root,root) %{_sbindir}/ffserver
189 %attr(755,root,root) %{_libdir}/libavcodec-*.so
190 %attr(755,root,root) %{_libdir}/libavformat-*.so
191 %attr(755,root,root) %{_libdir}/libpostproc.so.*
192 %dir %{_libdir}/vhook
193 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
194 %attr(755,root,root) %{_libdir}/vhook/fish.so
195 %attr(755,root,root) %{_libdir}/vhook/null.so
196 %attr(755,root,root) %{_libdir}/vhook/ppm.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) %{_libdir}/libavcodec.so
204 %attr(755,root,root) %{_libdir}/libavformat.so
205 %attr(755,root,root) %{_libdir}/libpostproc.so
207 %{_includedir}/ffmpeg
208 %{_includedir}/postproc
211 %defattr(644,root,root,755)
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_bindir}/ffplay
217 %{_mandir}/man1/ffplay.1*
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/vhook/imlib2.so