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: %{name}-%{snap}.tar.bz2
18 # Source0-md5: d8ea09431d6c0c91bfd35e0ca74a67e1
19 Patch0: %{name}-libtool.patch
20 Patch1: %{name}-libdir.patch
21 Patch2: %{name}-gcc4.patch
22 URL: http://ffmpeg.sourceforge.net/
23 BuildRequires: SDL-devel
24 BuildRequires: faac-devel
25 BuildRequires: faad2-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: libdts-devel
34 BuildRequires: libtheora-devel
35 BuildRequires: libtool >= 2:1.4d-3
36 BuildRequires: libvorbis-devel
42 BuildRequires: perl-tools-pod
44 BuildRequires: texinfo
45 BuildRequires: xvid-devel >= 1:1.1.0
46 BuildRequires: zlib-devel
47 %{?with_autoreqdep:BuildConflicts: libpostproc}
48 Requires: xvid >= 1:1.1.0
49 Obsoletes: libpostproc
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 %define _noautoreqdep libGL.so.1 libGLU.so.1
54 %define specflags -fno-strict-aliasing
56 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
57 %define specflags_ia32 -fomit-frame-pointer
58 # -mmmx is needed to enable <mmintrin.h> code.
59 %define specflags_i586 -mmmx
60 %define specflags_i686 -mmmx
63 ffmpeg is a hyper fast realtime audio/video encoder and streaming
64 server. It can grab from a standard Video4Linux video source and
65 convert it into several file formats based on DCT/motion compensation
66 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
69 This package contains also ffmpeg shared libraries (libavcodec and
73 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
74 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
75 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
76 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
77 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
78 strumienia kompatybilnego z AC3.
80 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
84 Summary: ffmpeg header files
85 Summary(pl): Pliki nag³ówkowe ffmpeg
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
88 Obsoletes: libpostproc-devel
91 Requires: lame-libs-devel
92 Requires: libdts-devel
93 Requires: libtheora-devel
94 Requires: libvorbis-devel
95 Requires: xvid-devel >= 1:1.1.0
101 %description devel -l pl
102 Pliki nag³ówkowe ffmpeg.
105 Summary: ffmpeg static libraries
106 Summary(pl): Statyczne biblioteki ffmpeg
107 Group: Development/Libraries
108 Requires: %{name}-devel = %{version}-%{release}
111 ffmpeg static libraries (libavcodec and libavformat).
113 %description static -l pl
114 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
117 Summary: FFplay - SDL-based media player
118 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
119 Group: Applications/Multimedia
120 Requires: %{name} = %{version}-%{release}
123 FFplay is a very simple and portable media player using the FFmpeg
124 libraries and the SDL library. It is mostly used as a test bench for
125 the various APIs of FFmpeg.
127 %description ffplay -l pl
128 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
129 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
130 testowania ró¿nych API FFmpeg.
132 %package vhook-imlib2
133 Summary: imlib2 based hook
134 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
136 Requires: %{name} = %{version}-%{release}
138 %description vhook-imlib2
139 This module implements a text overlay for a video image. Currently it
140 supports a fixed overlay or reading the text from a file. The string
141 is passed through strftime so that it is easy to imprint the date and
144 %description vhook-imlib2 -l pl
145 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
146 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
147 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
158 # - it's not autoconf configure
159 # - -fomit-frame-pointer is always needed on x86 due to lack of registers
161 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
163 --prefix=%{_prefix} \
164 --libdir=%{_libdir} \
165 --mandir=%{_mandir} \
181 %ifnarch %{ix86} %{x8664}
188 --extra-cflags="%{rpmcflags}" \
189 --extra-ldflags="%{rpmldflags}" \
198 rm -rf $RPM_BUILD_ROOT
199 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
202 DESTDIR=$RPM_BUILD_ROOT
204 install xvmc_render.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
206 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
207 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
210 rm -rf $RPM_BUILD_ROOT
212 %post -p /sbin/ldconfig
213 %postun -p /sbin/ldconfig
216 %defattr(644,root,root,755)
217 %doc Changelog README doc/*.html
218 %attr(755,root,root) %{_bindir}/ffmpeg
219 %attr(755,root,root) %{_sbindir}/ffserver
220 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
221 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
222 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
223 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
224 %dir %{_libdir}/vhook
225 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
226 %attr(755,root,root) %{_libdir}/vhook/fish.so
227 %attr(755,root,root) %{_libdir}/vhook/null.so
228 %attr(755,root,root) %{_libdir}/vhook/ppm.so
229 %attr(755,root,root) %{_libdir}/vhook/watermark.so
230 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf
231 %{_mandir}/man1/ffmpeg.1*
232 %{_mandir}/man1/ffserver.1*
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_libdir}/libavcodec.so
237 %attr(755,root,root) %{_libdir}/libavformat.so
238 %attr(755,root,root) %{_libdir}/libavutil.so
239 %attr(755,root,root) %{_libdir}/libpostproc.so
241 %{_includedir}/ffmpeg
242 %{_includedir}/postproc
243 %{_pkgconfigdir}/*.pc
246 %defattr(644,root,root,755)
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_bindir}/ffplay
252 %{_mandir}/man1/ffplay.1*
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/vhook/imlib2.so