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