3 %bcond_without imlib2 # we can safely play without it :-)
4 %bcond_without autoreqdep # don't care about package name deps generated by rpm
6 Summary: Realtime audio/video encoder and streaming server
7 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
12 # LGPL or GPL, chosen at configure time (GPL version is more featured)
15 #Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}-pre1.tar.gz
16 Source0: ftp://ftp2.mplayerhq.hu/MPlayer/cvs/FFMpeg-%{snap}.tar.bz2
17 # Source0-md5: f5ea3dd877c5df5b60356053642cf542
18 Patch0: %{name}-libtool.patch
19 Patch1: %{name}-libdir.patch
20 URL: http://ffmpeg.sourceforge.net/
21 BuildRequires: SDL-devel
22 BuildRequires: faac-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: lame-libs-devel
30 BuildRequires: libtheora-devel
31 BuildRequires: libtool >= 2:1.4d-3
32 BuildRequires: libvorbis-devel
38 BuildRequires: perl-tools-pod
40 BuildRequires: texinfo
41 BuildRequires: xvid-devel
42 BuildRequires: zlib-devel
43 %{?with_autoreqdep:BuildConflicts: libpostproc}
44 Obsoletes: libpostproc
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _noautoreqdep libGL.so.1 libGLU.so.1
50 ffmpeg is a hyper fast realtime audio/video encoder and streaming
51 server. It can grab from a standard Video4Linux video source and
52 convert it into several file formats based on DCT/motion compensation
53 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
56 This package contains also ffmpeg shared libraries (libavcodec and
60 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
61 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
62 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
63 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
64 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
65 strumienia kompatybilnego z AC3.
67 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
71 Summary: ffmpeg header files
72 Summary(pl): Pliki nag³ówkowe ffmpeg
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
75 Obsoletes: libpostproc-devel
78 Requires: lame-libs-devel
79 Requires: libtheora-devel
80 Requires: libvorbis-devel
87 %description devel -l pl
88 Pliki nag³ówkowe ffmpeg.
91 Summary: ffmpeg static libraries
92 Summary(pl): Statyczne biblioteki ffmpeg
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
97 ffmpeg static libraries (libavcodec and libavformat).
99 %description static -l pl
100 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
103 Summary: FFplay - SDL-based media player
104 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
105 Group: Applications/Multimedia
106 Requires: %{name} = %{version}-%{release}
109 FFplay is a very simple and portable media player using the FFmpeg
110 libraries and the SDL library. It is mostly used as a test bench for
111 the various APIs of FFmpeg.
113 %description ffplay -l pl
114 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
115 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
116 testowania ró¿nych API FFmpeg.
118 %package vhook-imlib2
119 Summary: imlib2 based hook
120 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
122 Requires: %{name} = %{version}-%{release}
124 %description vhook-imlib2
125 This module implements a text overlay for a video image. Currently it
126 supports a fixed overlay or reading the text from a file. The string
127 is passed through strftime so that it is easy to imprint the date and
130 %description vhook-imlib2 -l pl
131 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
132 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
133 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
137 %setup -q -n FFMpeg-%{snap}
143 # - it's not autoconf configure
144 # - -fomit-frame-pointer is always needed on x86 due to lack of registers
146 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
148 --prefix=%{_prefix} \
149 --libdir=%{_libdir} \
150 --mandir=%{_mandir} \
172 --extra-cflags="%{rpmcflags} -fomit-frame-pointer" \
173 --extra-ldflags="%{rpmldflags}" \
183 rm -rf $RPM_BUILD_ROOT
184 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
187 DESTDIR=$RPM_BUILD_ROOT
189 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
190 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
193 rm -rf $RPM_BUILD_ROOT
195 %post -p /sbin/ldconfig
196 %postun -p /sbin/ldconfig
199 %defattr(644,root,root,755)
200 %doc Changelog README doc/*.html
201 %attr(755,root,root) %{_bindir}/ffmpeg
202 %attr(755,root,root) %{_sbindir}/ffserver
203 %attr(755,root,root) %{_libdir}/libavcodec-*.so
204 %attr(755,root,root) %{_libdir}/libavformat-*.so
205 %attr(755,root,root) %{_libdir}/libavutil-*.so
206 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
207 %dir %{_libdir}/vhook
208 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
209 %attr(755,root,root) %{_libdir}/vhook/fish.so
210 %attr(755,root,root) %{_libdir}/vhook/null.so
211 %attr(755,root,root) %{_libdir}/vhook/ppm.so
212 %attr(755,root,root) %{_libdir}/vhook/watermark.so
213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf
214 %{_mandir}/man1/ffmpeg.1*
215 %{_mandir}/man1/ffserver.1*
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libavcodec.so
220 %attr(755,root,root) %{_libdir}/libavformat.so
221 %attr(755,root,root) %{_libdir}/libavutil.so
222 %attr(755,root,root) %{_libdir}/libpostproc.so
224 %{_includedir}/ffmpeg
225 %{_includedir}/postproc
226 %{_pkgconfigdir}/*.pc
229 %defattr(644,root,root,755)
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_bindir}/ffplay
235 %{_mandir}/man1/ffplay.1*
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/vhook/imlib2.so