3 %bcond_without imlib2 # we can safely play without it :-)
5 Summary: Realtime audio/video encoder and streaming server
6 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
10 # LGPL or GPL, chosen at configure time (GPL version is more featured)
13 Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}-pre1.tar.gz
14 # Source0-md5: ea5587e3c66d50b1503b82ac4179c303
15 Patch0: %{name}-imlib2.patch
16 Patch1: %{name}-libtool.patch
17 URL: http://ffmpeg.sourceforge.net/
18 BuildRequires: SDL-devel
19 BuildRequires: freetype-devel
21 # require version with altivec support fixed
22 BuildRequires: gcc >= 5:3.3.2-3
24 %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
25 BuildRequires: libtool >= 2:1.4d-3
31 BuildRequires: perl-tools-pod
33 BuildRequires: texinfo
34 BuildRequires: zlib-devel
35 Obsoletes: libpostproc
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _noautoreqdep libGL.so.1 libGLU.so.1
41 ffmpeg is a hyper fast realtime audio/video encoder and streaming
42 server. It can grab from a standard Video4Linux video source and
43 convert it into several file formats based on DCT/motion compensation
44 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
47 This package contains also ffmpeg shared libraries (libavcodec and
51 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
52 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
53 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
54 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
55 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
56 strumienia kompatybilnego z AC3.
58 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
62 Summary: ffmpeg header files
63 Summary(pl): Pliki nag³ówkowe ffmpeg
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Obsoletes: libpostproc-devel
71 %description devel -l pl
72 Pliki nag³ówkowe ffmpeg.
75 Summary: ffmpeg static libraries
76 Summary(pl): Statyczne biblioteki ffmpeg
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
81 ffmpeg static libraries (libavcodec and libavformat).
83 %description static -l pl
84 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
87 Summary: FFplay - SDL-based media player
88 Summary(pl): FFplay - odtwarzacz mediów oparty na SDL
89 Group: Applications/Multimedia
90 Requires: %{name} = %{version}-%{release}
93 FFplay is a very simple and portable media player using the FFmpeg
94 libraries and the SDL library. It is mostly used as a test bench for
95 the various APIs of FFmpeg.
97 %description ffplay -l pl
98 FFplay to bardzo prosty i przeno¶ny odtwarzacz mediów u¿ywaj±cy
99 bibliotek FFmpeg oraz biblioteki SDL. Jest u¿ywany g³ównie do
100 testowania ró¿nych API FFmpeg.
102 %package vhook-imlib2
103 Summary: imlib2 based hook
104 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
106 Requires: %{name} = %{version}-%{release}
108 %description vhook-imlib2
109 This module implements a text overlay for a video image. Currently it
110 supports a fixed overlay or reading the text from a file. The string
111 is passed through strftime so that it is easy to imprint the date and
114 %description vhook-imlib2 -l pl
115 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
116 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
117 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
121 %setup -q -n ffmpeg-0.4.9-pre1
127 # - it's not autoconf configure
128 # - -fomit-frame-pointer is always needed on x86 due to lack of registers
130 # - --disable-debug, --disable-opts, tune=generic causes not to override our optflags
132 --prefix=%{_prefix} \
133 --libdir=%{_libdir} \
134 --mandir=%{_mandir} \
148 --extra-cflags="%{rpmcflags} -fomit-frame-pointer" \
149 --extra-ldflags="%{rpmldflags}" \
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
162 DESTDIR=$RPM_BUILD_ROOT
164 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
165 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
168 rm -rf $RPM_BUILD_ROOT
170 %post -p /sbin/ldconfig
171 %postun -p /sbin/ldconfig
174 %defattr(644,root,root,755)
175 %doc Changelog README doc/*.html
176 %attr(755,root,root) %{_bindir}/ffmpeg
177 %attr(755,root,root) %{_sbindir}/ffserver
178 %attr(755,root,root) %{_libdir}/libavcodec-*.so
179 %attr(755,root,root) %{_libdir}/libavformat-*.so
180 %attr(755,root,root) %{_libdir}/libpostproc.so.*
181 %dir %{_libdir}/vhook
182 %attr(755,root,root) %{_libdir}/vhook/drawtext.so
183 %attr(755,root,root) %{_libdir}/vhook/fish.so
184 %attr(755,root,root) %{_libdir}/vhook/null.so
185 %attr(755,root,root) %{_libdir}/vhook/ppm.so
186 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ffserver.conf
187 %{_mandir}/man1/ffmpeg.1*
188 %{_mandir}/man1/ffserver.1*
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/libavcodec.so
193 %attr(755,root,root) %{_libdir}/libavformat.so
194 %attr(755,root,root) %{_libdir}/libpostproc.so
196 %{_includedir}/ffmpeg
197 %{_includedir}/postproc
200 %defattr(644,root,root,755)
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_bindir}/ffplay
206 %{_mandir}/man1/ffplay.1*
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_libdir}/vhook/imlib2.so