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 Source3: ffserver.conf
22 Patch0: %{name}-libtool.patch
23 Patch1: %{name}-libdir.patch
24 Patch2: %{name}-gcc4.patch
25 URL: http://ffmpeg.sourceforge.net/
26 BuildRequires: SDL-devel
27 BuildRequires: faac-devel
28 BuildRequires: faad2-devel
29 BuildRequires: freetype-devel
31 # require version with altivec support fixed
32 BuildRequires: gcc >= 5:3.3.2-3
34 %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
35 BuildRequires: lame-libs-devel
36 BuildRequires: libdts-devel
37 BuildRequires: libgsm-devel
38 BuildRequires: libtheora-devel
39 BuildRequires: libtool >= 2:1.4d-3
40 BuildRequires: libvorbis-devel
41 #BuildRequires: libx264-devel
42 BuildRequires: lzo-devel
48 BuildRequires: perl-tools-pod
49 BuildRequires: rpmbuild(macros) >= 1.268
51 BuildRequires: texinfo
52 BuildRequires: xvid-devel >= 1:1.1.0
53 BuildRequires: zlib-devel
54 %{?with_autoreqdep:BuildConflicts: libpostproc}
55 Requires: %{name}-libs = %{version}-%{release}
56 Requires: xvid >= 1:1.1.0
57 Obsoletes: libpostproc
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 %define _noautoreqdep libGL.so.1 libGLU.so.1
62 %define specflags -fno-strict-aliasing
64 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
65 %define specflags_ia32 -fomit-frame-pointer
66 # -mmmx is needed to enable <mmintrin.h> code.
67 %define specflags_i586 -mmmx
68 %define specflags_i686 -mmmx
71 ffmpeg is a hyper fast realtime audio/video encoder and streaming
72 server. It can grab from a standard Video4Linux video source and
73 convert it into several file formats based on DCT/motion compensation
74 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
78 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
79 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
80 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
81 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
82 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
83 strumienia kompatybilnego z AC3.
86 Summary: ffmpeg libraries
87 Summary(pl): Biblioteki ffmpeg
91 This package contains ffmpeg shared libraries.
93 %description libs -l pl
94 Ten pakiet zawiera biblioteki wspó³dzielone ffmpeg.
97 Summary: ffmpeg header files
98 Summary(pl): Pliki nag³ówkowe ffmpeg
99 Group: Development/Libraries
100 Requires: %{name}-libs = %{version}-%{release}
101 Obsoletes: libpostproc-devel
104 Requires: lame-libs-devel
105 Requires: libdts-devel
106 Requires: libgsm-devel
107 Requires: libtheora-devel
108 Requires: libvorbis-devel
109 Requires: xvid-devel >= 1:1.1.0
115 %description devel -l pl
116 Pliki nag³ówkowe ffmpeg.
119 Summary: ffmpeg static libraries
120 Summary(pl): Statyczne biblioteki ffmpeg
121 Group: Development/Libraries
122 Requires: %{name}-devel = %{version}-%{release}
125 ffmpeg static libraries (libavcodec and libavformat).
127 %description static -l pl
128 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
131 Summary: FFplay - SDL-based media player
132 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
133 Group: Applications/Multimedia
134 Requires: %{name}-libs = %{version}-%{release}
137 FFplay is a very simple and portable media player using the FFmpeg
138 libraries and the SDL library. It is mostly used as a test bench for
139 the various APIs of FFmpeg.
141 %description ffplay -l pl
142 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
143 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
144 testowania ró¿nych API FFmpeg.
146 %package vhook-imlib2
147 Summary: imlib2 based hook
148 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
150 Requires: %{name}-libs = %{version}-%{release}
152 %description vhook-imlib2
153 This module implements a text overlay for a video image. Currently it
154 supports a fixed overlay or reading the text from a file. The string
155 is passed through strftime so that it is easy to imprint the date and
158 %description vhook-imlib2 -l pl
159 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
160 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
161 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
165 Summary: FFserver video server
167 Requires(post,preun): /sbin/chkconfig
168 Requires(post,preun): rc-scripts >= 0.4.0.10
170 %description ffserver
171 FFserver is a streaming server for both audio and video. It supports
172 several live feeds, streaming from files and time shifting on live
173 feeds (you can seek to positions in the past on each live feed,
174 provided you specify a big enough feed storage in ffserver.conf).
184 # - it's not autoconf configure
185 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
187 --prefix=%{_prefix} \
188 --libdir=%{_libdir} \
189 --mandir=%{_mandir} \
207 %ifnarch %{ix86} %{x8664}
214 --extra-cflags="%{rpmcflags}" \
215 --extra-ldflags="%{rpmldflags}" \
224 rm -rf $RPM_BUILD_ROOT
225 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
226 $RPM_BUILD_ROOT/var/{cache,log}/ffserver
229 DESTDIR=$RPM_BUILD_ROOT
231 install xvmc_render.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
232 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ffserver
233 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ffserver
234 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ffserver.conf
235 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
238 rm -rf $RPM_BUILD_ROOT
240 %post -p /sbin/ldconfig
241 %postun -p /sbin/ldconfig
244 %groupadd -g 167 ffserver
245 %useradd -g ffserver -u 167 ffserver
248 /sbin/chkconfig --add ffserver
249 %service ffserver restart
252 if [ "$1" = 0 ]; then
253 %service ffserver stop
254 /sbin/chkconfig --del ffserver
258 if [ "$1" = 0 ]; then
260 %groupremove ffserver
264 %defattr(644,root,root,755)
265 %doc Changelog README doc/*.html doc/TODO
266 %attr(755,root,root) %{_bindir}/ffmpeg
267 %{_mandir}/man1/ffmpeg.1*
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
272 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
273 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
274 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
275 %dir %{_libdir}/vhook
276 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
277 %attr(755,root,root) %{_libdir}/vhook/fish.so
278 %attr(755,root,root) %{_libdir}/vhook/null.so
279 %attr(755,root,root) %{_libdir}/vhook/ppm.so
280 %attr(755,root,root) %{_libdir}/vhook/watermark.so
283 %defattr(644,root,root,755)
284 %doc doc/optimization.txt
285 %attr(755,root,root) %{_libdir}/libavcodec.so
286 %attr(755,root,root) %{_libdir}/libavformat.so
287 %attr(755,root,root) %{_libdir}/libavutil.so
288 %attr(755,root,root) %{_libdir}/libpostproc.so
290 %{_includedir}/ffmpeg
291 %{_includedir}/postproc
292 %{_pkgconfigdir}/*.pc
295 %defattr(644,root,root,755)
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_bindir}/ffplay
301 %{_mandir}/man1/ffplay.1*
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/vhook/imlib2.so
310 %defattr(644,root,root,755)
311 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf
312 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ffserver
313 %attr(755,root,root) %{_sbindir}/ffserver
314 %attr(754,root,root) /etc/rc.d/init.d/ffserver
315 %{_mandir}/man1/ffserver.1*
316 %dir %attr(770,root,ffserver) /var/cache/ffserver
317 %dir %attr(770,root,ffserver) /var/log/ffserver