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