]> git.pld-linux.org Git - packages/ffmpeg.git/blame - ffmpeg.spec
- fixes build with libx264 20060828 snapshot
[packages/ffmpeg.git] / ffmpeg.spec
CommitLineData
8152d6a2 1#
294c9b1e 2# TODO: update for lzo 2.x (currently only lzo 1.x is supported)
8152d6a2 3#
2b3b2117 4# Conditional build:
3534e1ea 5%bcond_without amr # don't build 3GPP Adaptive Multi Rate (AMR) speech codec
294c9b1e
JB
6%bcond_without autoreqdep # don't care about package name deps generated by rpm
7%bcond_without imlib2 # don't build imlib2 vhook module
8%bcond_with lzo # build with LZO support
874f67c9 9#
76243dbd
JB
10Summary: Realtime audio/video encoder and streaming server
11Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
9fc4ad22 12Name: ffmpeg
c32b589f 13Version: 0.4.9
3534e1ea 14%define snap 20060129
7bf6921d 15%define _rel 14
839e806f 16Release: 3.%{snap}.%{_rel}
9cf4d8a4 17# LGPL or GPL, chosen at configure time (GPL version is more featured)
fc8de229 18# (postprocessing, a52, xvid, x264, dts, faad)
f68a4dcc 19License: GPL with LGPL parts
fde29260 20Group: Applications/Multimedia
d7493de8 21#Source0: http://dl.sourceforge.net/ffmpeg/%{name}-%{version}-pre1.tar.gz
f50f7d7c
JB
22#Source0: ftp://ftp2.mplayerhq.hu/MPlayer/cvs/FFMpeg-%{snap}.tar.bz2
23Source0: %{name}-%{snap}.tar.bz2
24# Source0-md5: d8ea09431d6c0c91bfd35e0ca74a67e1
fde29260
ER
25Source1: ffserver.init
26Source2: ffserver.sysconfig
38cf6de3 27Source3: ffserver.conf
d7493de8
JB
28Patch0: %{name}-libtool.patch
29Patch1: %{name}-libdir.patch
7a286645 30Patch2: %{name}-gcc4.patch
fc8de229 31Patch3: %{name}-system-amr.patch
7bf6921d 32Patch4: %{name}-x264.patch
d2fa6a1d 33URL: http://ffmpeg.mplayerhq.hu/
2a60eebe 34BuildRequires: SDL-devel
fc8de229
JB
35%if %{with amr}
36BuildRequires: amrnb-devel
37BuildRequires: amrwb-devel >= 5.3.0
38%endif
e380e18a 39BuildRequires: faac-devel
b959c224 40BuildRequires: faad2-devel
2a60eebe 41BuildRequires: freetype-devel
4bee03f0
JB
42%ifarch ppc
43# require version with altivec support fixed
44BuildRequires: gcc >= 5:3.3.2-3
45%endif
8a764e4b 46%{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
e380e18a 47BuildRequires: lame-libs-devel
b959c224 48BuildRequires: libdts-devel
f3692243 49BuildRequires: libgsm-devel
d7493de8 50BuildRequires: libtheora-devel
4814ac84 51BuildRequires: libtool >= 2:1.4d-3
e380e18a 52BuildRequires: libvorbis-devel
7bf6921d 53BuildRequires: libx264-devel >= 0.1.2-1.20060828_2245.1
294c9b1e 54%{?with_lzo:BuildRequires: lzo-devel < 2.0}
e1fe03f7 55%ifarch %{ix86}
56%ifnarch i386 i486
76243dbd
JB
57BuildRequires: nasm
58%endif
e1fe03f7 59%endif
1463656a 60BuildRequires: perl-tools-pod
593d3a64 61BuildRequires: rpmbuild(macros) >= 1.268
1463656a 62BuildRequires: tetex
9cf4d8a4 63BuildRequires: texinfo
872de59d 64%{?with_amr:BuildRequires: unzip}
46f2a56b 65BuildRequires: xvid-devel >= 1:1.1.0
33a1c0f3 66BuildRequires: zlib-devel
57ebb8ad 67%{?with_autoreqdep:BuildConflicts: libpostproc}
54ec280e 68Requires: %{name}-libs = %{version}-%{release}
839e806f 69Requires: xvid >= 1:1.1.0
af49d6ab 70Obsoletes: libpostproc
539b540f 71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9fc4ad22 72
2a60eebe
JB
73%define _noautoreqdep libGL.so.1 libGLU.so.1
74
c01d7857
PS
75%define specflags -fno-strict-aliasing
76
77# -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
78%define specflags_ia32 -fomit-frame-pointer
79# -mmmx is needed to enable <mmintrin.h> code.
80%define specflags_i586 -mmmx
81%define specflags_i686 -mmmx
82
9fc4ad22
AM
83%description
84ffmpeg is a hyper fast realtime audio/video encoder and streaming
85server. It can grab from a standard Video4Linux video source and
86convert it into several file formats based on DCT/motion compensation
87encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
fda3e16d 88compatible stream.
9fc4ad22
AM
89
90%description -l pl
fda3e16d 91ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
92