]> git.pld-linux.org Git - packages/ffmpeg.git/blame - ffmpeg.spec
- dropped libtool patch, updated system-amr patch
[packages/ffmpeg.git] / ffmpeg.spec
CommitLineData
94447fde
ER
1# TODO
2# - libnut enabled no
197f4211 3#
2b3b2117 4# Conditional build:
e756f355 5%bcond_with amr # 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
874f67c9 8#
2305d791
ER
9%define _snap 2006-12-04
10%define snap %(echo %{_snap} | tr -d -)
89c7339b 11%define _rel 2
76243dbd
JB
12Summary: Realtime audio/video encoder and streaming server
13Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
9fc4ad22 14Name: ffmpeg
c32b589f 15Version: 0.4.9
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
2305d791
ER
22Source0: http://ffmpeg.mplayerhq.hu/%{name}-export-snapshot.tar.bz2
23# Source0-md5: 5be2e4d1e326bb7809205a3401204621
fde29260
ER
24Source1: ffserver.init
25Source2: ffserver.sysconfig
38cf6de3 26Source3: ffserver.conf
ee032235 27Patch0: %{name}-link.patch
d7493de8 28Patch1: %{name}-libdir.patch
7a286645 29Patch2: %{name}-gcc4.patch
fc8de229 30Patch3: %{name}-system-amr.patch
2305d791 31Patch4: %{name}-x264-symbol.patch
892bb830 32Patch5: %{name}-kill-mabi_altivec.patch
73e3bb9e 33Patch6: %{name}-altivec_fix.patch
d2fa6a1d 34URL: http://ffmpeg.mplayerhq.hu/
2a60eebe 35BuildRequires: SDL-devel
fc8de229
JB
36%if %{with amr}
37BuildRequires: amrnb-devel
38BuildRequires: amrwb-devel >= 5.3.0
39%endif
e380e18a 40BuildRequires: faac-devel
b959c224 41BuildRequires: faad2-devel
2a60eebe 42BuildRequires: freetype-devel
4bee03f0
JB
43%ifarch ppc
44# require version with altivec support fixed
45BuildRequires: gcc >= 5:3.3.2-3
46%endif
8a764e4b 47%{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2}
e380e18a 48BuildRequires: lame-libs-devel
b959c224 49BuildRequires: libdts-devel
f3692243 50BuildRequires: libgsm-devel
94447fde
ER
51BuildRequires: libogg-devel
52BuildRequires: libraw1394-devel
4814ac84 53BuildRequires: libtool >= 2:1.4d-3
e380e18a 54BuildRequires: libvorbis-devel
42dd6e0f 55BuildRequires: libx264-devel >= 0.1.2-1.20061024_2245.1
e1fe03f7 56%ifarch %{ix86}
57%ifnarch i386 i486
76243dbd
JB
58BuildRequires: nasm
59%endif
e1fe03f7 60%endif
1463656a 61BuildRequires: perl-tools-pod
593d3a64 62BuildRequires: rpmbuild(macros) >= 1.268
1463656a 63BuildRequires: tetex
9cf4d8a4 64BuildRequires: texinfo
872de59d 65%{?with_amr:BuildRequires: unzip}
46f2a56b 66BuildRequires: xvid-devel >= 1:1.1.0
33a1c0f3 67BuildRequires: zlib-devel
57ebb8ad 68%{?with_autoreqdep:BuildConflicts: libpostproc}
54ec280e 69Requires: %{name}-libs = %{version}-%{release}
839e806f 70Requires: xvid >= 1:1.1.0
af49d6ab 71Obsoletes: libpostproc
539b540f 72BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9fc4ad22 73
2a60eebe
JB
74%define _noautoreqdep libGL.so.1 libGLU.so.1
75
c01d7857
PS
76%define specflags -fno-strict-aliasing
77
78# -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
79%define specflags_ia32 -fomit-frame-pointer
80# -mmmx is needed to enable <mmintrin.h> code.
81%define specflags_i586 -mmmx
82%define specflags_i686 -mmmx
83
9fc4ad22
AM
84%description
85ffmpeg is a hyper fast realtime audio/video encoder and streaming
86server. It can grab from a standard Video4Linux video source and
87convert it into several file formats based on DCT/motion compensation
88encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
fda3e16d 89compatible stream.
9fc4ad22
AM
90
91%description -l pl
fda3e16d 92ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
93