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