3 # _without_imlib - we can safetly play without it :-)
6 Summary: Realtime audio/video encoder and streaming server
7 Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
13 Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}.tar.gz
14 # Source0-md5: bdd96d28327d3abe02e886c13e633878
15 Patch0: %{name}-opt.patch
16 Patch1: %{name}-imlib2.patch
17 Patch2: %{name}-libtool.patch
18 URL: http://ffmpeg.sourceforge.net/
19 %{!?_without_imlib:BuildRequires: imlib2-devel}
20 BuildRequires: libtool >= 2:1.4d-3
21 %ifarch i586 i686 athlon
24 BuildRequires: zlib-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 ffmpeg is a hyper fast realtime audio/video encoder and streaming
29 server. It can grab from a standard Video4Linux video source and
30 convert it into several file formats based on DCT/motion compensation
31 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
34 This package contains also ffmpeg shared libraries (libavcodec and
38 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
39 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
40 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
41 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
42 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
43 strumienia kompatybilnego z AC3.
45 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
49 Summary: imlib2 based hook
50 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
52 Requires: %{name} = %{version}
54 %description vhook-imlib2
55 This module implements a text overlay for a video image. Currently it
56 supports a fixed overlay or reading the text from a file. The string
57 is passed through strftime so that it is easy to imprint the date and
60 %description vhook-imlib2 -l pl
61 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
62 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
63 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
67 Summary: ffmpeg header files
68 Summary(pl): Pliki nag³ówkowe ffmpeg
69 Group: Development/Libraries
70 Requires: %{name} = %{version}
75 %description devel -l pl
76 Pliki nag³ówkowe ffmpeg.
79 Summary: ffmpeg static libraries
80 Summary(pl): Statyczne biblioteki ffmpeg
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}
85 ffmpeg static libraries (libavcodec and libavformat).
87 %description static -l pl
88 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
97 # note: it's not autoconf configure
102 %ifnarch i586 i686 athlon
106 # note: -fomit-frame-pointer is always needed on x86 due to lack of registers
110 OPT="%{rpmcflags} -fomit-frame-pointer -I/usr/X11R6/include" \
111 LDOPT="%{rpmldflags} -L/usr/X11R6/lib"
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
120 DESTDIR=$RPM_BUILD_ROOT
122 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
123 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
132 %defattr(644,root,root,755)
133 %doc Changelog README doc/*.html
134 %attr(755,root,root) %{_bindir}/*
135 %attr(755,root,root) %{_sbindir}/*
136 %attr(755,root,root) %{_libdir}/libavcodec-*.so
137 %attr(755,root,root) %{_libdir}/libavformat-*.so
138 %dir %{_libdir}/vhook
139 %attr(755,root,root) %{_libdir}/vhook/null.so
140 %attr(755,root,root) %{_libdir}/vhook/fish.so
141 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
143 %if %{!?_without_imlib:1}0
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/vhook/imlib2.so
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/libavcodec.so
152 %attr(755,root,root) %{_libdir}/libavformat.so
154 %{_includedir}/ffmpeg
157 %defattr(644,root,root,755)