2 %bcond_without imlib2 # we can safely play without it:-)
3 %bcond_without autoreqdep # don't care about package name deps generated by rpm
7 Summary: Realtime audio/video encoder and streaming server
8 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
11 Release: 3.%{snap}.%{_rel}
12 # LGPL or GPL, chosen at configure time (GPL version is more featured)
14 Group: Applications/Multimedia
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 Source1: ffserver.init
20 Source2: ffserver.sysconfig
21 Patch0: %{name}-libtool.patch
22 Patch1: %{name}-libdir.patch
23 Patch2: %{name}-gcc4.patch
24 URL: http://ffmpeg.sourceforge.net/
25 BuildRequires: SDL-devel
26 BuildRequires: faac-devel
27 BuildRequires: faad2-devel
28 BuildRequires: freetype-devel
30 # require version with altivec support fixed
31 BuildRequires: gcc >= 5:3.3.2-3
33 %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
34 BuildRequires: lame-libs-devel
35 BuildRequires: libdts-devel
36 BuildRequires: libgsm-devel
37 BuildRequires: libtheora-devel
38 BuildRequires: libtool >= 2:1.4d-3
39 BuildRequires: libvorbis-devel
40 #BuildRequires: libx264-devel
41 BuildRequires: lzo-devel
47 BuildRequires: perl-tools-pod
48 BuildRequires: rpmbuild(macros) >= 1.268
50 BuildRequires: texinfo
51 BuildRequires: xvid-devel >= 1:1.1.0
52 BuildRequires: zlib-devel
53 %{?with_autoreqdep:BuildConflicts: libpostproc}
54 Requires: %{name}-libs = %{version}-%{release}
55 Requires: xvid >= 1:1.1.0
56 Obsoletes: libpostproc
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 %define _noautoreqdep libGL.so.1 libGLU.so.1
61 %define specflags -fno-strict-aliasing
63 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
64 %define specflags_ia32 -fomit-frame-pointer
65 # -mmmx is needed to enable <mmintrin.h> code.
66 %define specflags_i586 -mmmx
67 %define specflags_i686 -mmmx
70 ffmpeg is a hyper fast realtime audio/video encoder and streaming
71 server. It can grab from a standard Video4Linux video source and
72 convert it into several file formats based on DCT/motion compensation
73 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
77 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
78 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
79 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
80 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
81 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
82 strumienia kompatybilnego z AC3.
85 Summary: ffmpeg libraries
86 Summary(pl): Biblioteki ffmpeg
90 This package contains ffmpeg shared libraries.
92 %description libs -l pl
93 Ten pakiet zawiera biblioteki wspó³dzielone ffmpeg.
96 Summary: ffmpeg header files
97 Summary(pl): Pliki nag³ówkowe ffmpeg
98 Group: Development/Libraries
99 Requires: %{name}-libs = %{version}-%{release}
100 Obsoletes: libpostproc-devel
103 Requires: lame-libs-devel
104 Requires: libdts-devel
105 Requires: libgsm-devel
106 Requires: libtheora-devel
107 Requires: libvorbis-devel
108 Requires: xvid-devel >= 1:1.1.0
114 %description devel -l pl
115 Pliki nag³ówkowe ffmpeg.
118 Summary: ffmpeg static libraries
119 Summary(pl): Statyczne biblioteki ffmpeg
120 Group: Development/Libraries
121 Requires: %{name}-devel = %{version}-%{release}
124 ffmpeg static libraries (libavcodec and libavformat).
126 %description static -l pl
127 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
130 Summary: FFplay - SDL-based media player
131 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
132 Group: Applications/Multimedia
133 Requires: %{name}-libs = %{version}-%{release}
136 FFplay is a very simple and portable media player using the FFmpeg
137 libraries and the SDL library. It is mostly used as a test bench for
138 the various APIs of FFmpeg.
140 %description ffplay -l pl
141 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
142 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
143 testowania ró¿nych API FFmpeg.
145 %package vhook-imlib2
146 Summary: imlib2 based hook
147 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
149 Requires: %{name}-libs = %{version}-%{release}
151 %description vhook-imlib2
152 This module implements a text overlay for a video image. Currently it
153 supports a fixed overlay or reading the text from a file. The string
154 is passed through strftime so that it is easy to imprint the date and
157 %description vhook-imlib2 -l pl
158 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
159 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
160 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
164 Summary: FFserver video server
166 Requires(post,preun): rc-scripts >= 0.4.0.10
167 Requires(post,preun): /sbin/chkconfig
169 %description ffserver
170 FFserver is a streaming server for both audio and video. It supports
171 several live feeds, streaming from files and time shifting on live
172 feeds (you can seek to positions in the past on each live feed,
173 provided you specify a big enough feed storage in ffserver.conf).
183 # - it's not autoconf configure
184 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
186 --prefix=%{_prefix} \
187 --libdir=%{_libdir} \
188 --mandir=%{_mandir} \
206 %ifnarch %{ix86} %{x8664}
213 --extra-cflags="%{rpmcflags}" \
214 --extra-ldflags="%{rpmldflags}" \
223 rm -rf $RPM_BUILD_ROOT
224 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}}
227 DESTDIR=$RPM_BUILD_ROOT
229 install xvmc_render.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
230 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ffserver
231 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ffserver
233 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
234 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
237 rm -rf $RPM_BUILD_ROOT
239 %post -p /sbin/ldconfig
240 %postun -p /sbin/ldconfig
243 /sbin/chkconfig --add ffserver
244 %service ffserver restart
247 if [ "$1" = 0 ]; then
248 %service ffserver stop
249 /sbin/chkconfig --del ffserver
253 %defattr(644,root,root,755)
254 %doc Changelog README doc/*.html doc/TODO
255 %attr(755,root,root) %{_bindir}/ffmpeg
256 %{_mandir}/man1/ffmpeg.1*
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
261 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
262 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
263 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
264 %dir %{_libdir}/vhook
265 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
266 %attr(755,root,root) %{_libdir}/vhook/fish.so
267 %attr(755,root,root) %{_libdir}/vhook/null.so
268 %attr(755,root,root) %{_libdir}/vhook/ppm.so
269 %attr(755,root,root) %{_libdir}/vhook/watermark.so
272 %defattr(644,root,root,755)
273 %doc doc/optimization.txt
274 %attr(755,root,root) %{_libdir}/libavcodec.so
275 %attr(755,root,root) %{_libdir}/libavformat.so
276 %attr(755,root,root) %{_libdir}/libavutil.so
277 %attr(755,root,root) %{_libdir}/libpostproc.so
279 %{_includedir}/ffmpeg
280 %{_includedir}/postproc
281 %{_pkgconfigdir}/*.pc
284 %defattr(644,root,root,755)
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_bindir}/ffplay
290 %{_mandir}/man1/ffplay.1*
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/vhook/imlib2.so
299 %defattr(644,root,root,755)
300 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf
301 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ffserver
302 %attr(755,root,root) %{_sbindir}/ffserver
303 %attr(754,root,root) /etc/rc.d/init.d/ffserver
304 %{_mandir}/man1/ffserver.1*