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: ftp://ftp.sourceforge.net/pub/sourceforge/ffmpeg/%{name}-%{version}.tar.gz
14 Patch0: %{name}-opt.patch
15 Patch1: %{name}-imlib2.patch
16 Patch2: %{name}-libtool.patch
17 URL: http://ffmpeg.sourceforge.net/
18 %{!?_without_imlib:BuildRequires: imlib2-devel}
19 BuildRequires: libtool >= 1:1.4.2-9
20 %ifarch i586 i686 athlon
23 BuildRequires: zlib-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 ffmpeg is a hyper fast realtime audio/video encoder and streaming
28 server. It can grab from a standard Video4Linux video source and
29 convert it into several file formats based on DCT/motion compensation
30 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
33 This package contains also ffmpeg shared libraries (libavcodec and
37 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
38 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
39 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
40 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
41 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
42 strumienia kompatybilnego z AC3.
44 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
48 Summary: imlib2 based hook
49 Summary(pl): Modu³ przej¶ciowy oparty o imlib2
51 Requires: %{name} = %{version}
53 %description vhook-imlib2
54 This module implements a text overlay for a video image. Currently it
55 supports a fixed overlay or reading the text from a file. The string
56 is passed through strftime so that it is easy to imprint the date and
59 %description vhook-imlib2 -l pl
60 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
61 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
62 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
66 Summary: ffmpeg header files
67 Summary(pl): Pliki nag³ówkowe ffmpeg
68 Group: Development/Libraries
69 Requires: %{name} = %{version}
74 %description devel -l pl
75 Pliki nag³ówkowe ffmpeg.
78 Summary: ffmpeg static libraries
79 Summary(pl): Statyczne biblioteki ffmpeg
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{version}
84 ffmpeg static libraries (libavcodec and libavformat).
86 %description static -l pl
87 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
96 # note: it's not autoconf configure
101 %ifnarch i586 i686 athlon
105 # note: -fomit-frame-pointer is always needed on x86 due to lack of registers
108 OPT="%{rpmcflags} -fomit-frame-pointer -I/usr/X11R6/include" \
109 LDOPT="%{rpmldflags} -L/usr/X11R6/lib"
114 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
118 DESTDIR=$RPM_BUILD_ROOT
120 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
121 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
130 %defattr(644,root,root,755)
131 %doc Changelog README doc/*.html
132 %attr(755,root,root) %{_bindir}/*
133 %attr(755,root,root) %{_sbindir}/*
134 %attr(755,root,root) %{_libdir}/libavcodec-*.so
135 %attr(755,root,root) %{_libdir}/libavformat-*.so
136 %dir %{_libdir}/vhook
137 %attr(755,root,root) %{_libdir}/vhook/null.so
138 %attr(755,root,root) %{_libdir}/vhook/fish.so
139 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/vhook/imlib2.so
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/libavcodec.so
148 %attr(755,root,root) %{_libdir}/libavformat.so
150 %{_includedir}/ffmpeg
153 %defattr(644,root,root,755)