3 %bcond_without imlib2 # we can safely play without it :-)
4 %bcond_without autoreqdep # don't care about package name deps generated by rpm
5 %bcond_with gcc4 # disable long inline mmx assembly.
6 # gcc4+ doesn't like hard register pressure and won't be fixed.
7 # ffmpeg and other apps should be rewritten with <mmintrin.h>.
9 Summary: Realtime audio/video encoder and streaming server
10 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
15 # LGPL or GPL, chosen at configure time (GPL version is more featured)
18 #Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}-pre1.tar.gz
19 Source0: ftp://ftp2.mplayerhq.hu/MPlayer/cvs/FFMpeg-%{snap}.tar.bz2
20 # Source0-md5: f5ea3dd877c5df5b60356053642cf542
21 Patch0: %{name}-libtool.patch
22 Patch1: %{name}-libdir.patch
23 URL: http://ffmpeg.sourceforge.net/
24 BuildRequires: SDL-devel
25 BuildRequires: faac-devel
26 BuildRequires: freetype-devel
28 # require version with altivec support fixed
29 BuildRequires: gcc >= 5:3.3.2-3
31 %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
32 BuildRequires: lame-libs-devel
33 BuildRequires: libtheora-devel
34 BuildRequires: libtool >= 2:1.4d-3
35 BuildRequires: libvorbis-devel
41 BuildRequires: perl-tools-pod
43 BuildRequires: texinfo
44 BuildRequires: xvid-devel
45 BuildRequires: zlib-devel
46 %{?with_autoreqdep:BuildConflicts: libpostproc}
47 Obsoletes: libpostproc
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _noautoreqdep libGL.so.1 libGLU.so.1
53 ffmpeg is a hyper fast realtime audio/video encoder and streaming
54 server. It can grab from a standard Video4Linux video source and
55 convert it into several file formats based on DCT/motion compensation
56 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
59 This package contains also ffmpeg shared libraries (libavcodec and
63 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
64 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
65 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
66 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
67 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
68 strumienia kompatybilnego z AC3.
70 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
74 Summary: ffmpeg header files
75 Summary(pl): Pliki nag³ówkowe ffmpeg
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
78 Obsoletes: libpostproc-devel
81 Requires: lame-libs-devel
82 Requires: libtheora-devel
83 Requires: libvorbis-devel
90 %description devel -l pl
91 Pliki nag³ówkowe ffmpeg.
94 Summary: ffmpeg static libraries
95 Summary(pl): Statyczne biblioteki ffmpeg
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
100 ffmpeg static libraries (libavcodec and libavformat).
102 %description static -l pl
103 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
106 Summary: FFplay - SDL-based media player
107 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
108 Group: Applications/Multimedia
109 Requires: %{name} = %{version}-%{release}
112 FFplay is a very simple and portable media player using the FFmpeg
113 libraries and the SDL library. It is mostly used as a test bench for
114 the various APIs of FFmpeg.
116 %description ffplay -l pl
117 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
118 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
119 testowania ró¿nych API FFmpeg.
121 %package vhook-imlib2
122 Summary: imlib2 based hook
123 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
125 Requires: %{name} = %{version}-%{release}
127 %description vhook-imlib2
128 This module implements a text overlay for a video image. Currently it
129 supports a fixed overlay or reading the text from a file. The string
130 is passed through strftime so that it is easy to imprint the date and
133 %description vhook-imlib2 -l pl
134 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
135 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
136 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
140 %setup -q -n FFMpeg-%{snap}
146 # - it's not autoconf configure
147 # - -fomit-frame-pointer is always needed on x86 due to lack of registers
149 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
151 --prefix=%{_prefix} \
152 --libdir=%{_libdir} \
153 --mandir=%{_mandir} \
179 --extra-cflags="%{rpmcflags} -fomit-frame-pointer -fno-strict-aliasing" \
180 --extra-ldflags="%{rpmldflags}" \
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
194 DESTDIR=$RPM_BUILD_ROOT
196 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
197 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
200 rm -rf $RPM_BUILD_ROOT
202 %post -p /sbin/ldconfig
203 %postun -p /sbin/ldconfig
206 %defattr(644,root,root,755)
207 %doc Changelog README doc/*.html
208 %attr(755,root,root) %{_bindir}/ffmpeg
209 %attr(755,root,root) %{_sbindir}/ffserver
210 %attr(755,root,root) %{_libdir}/libavcodec-*.so
211 %attr(755,root,root) %{_libdir}/libavformat-*.so
212 %attr(755,root,root) %{_libdir}/libavutil-*.so
213 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
214 %dir %{_libdir}/vhook
215 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
216 %attr(755,root,root) %{_libdir}/vhook/fish.so
217 %attr(755,root,root) %{_libdir}/vhook/null.so
218 %attr(755,root,root) %{_libdir}/vhook/ppm.so
219 %attr(755,root,root) %{_libdir}/vhook/watermark.so
220 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf
221 %{_mandir}/man1/ffmpeg.1*
222 %{_mandir}/man1/ffserver.1*
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libavcodec.so
227 %attr(755,root,root) %{_libdir}/libavformat.so
228 %attr(755,root,root) %{_libdir}/libavutil.so
229 %attr(755,root,root) %{_libdir}/libpostproc.so
231 %{_includedir}/ffmpeg
232 %{_includedir}/postproc
233 %{_pkgconfigdir}/*.pc
236 %defattr(644,root,root,755)
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_bindir}/ffplay
242 %{_mandir}/man1/ffplay.1*
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/vhook/imlib2.so