]>
Commit | Line | Data |
---|---|---|
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 |
15 | Summary: Realtime audio/video encoder and streaming server |
16 | Summary(pl): Koder audio/wideo czasu rzeczywistego oraz serwer strumieni | |
9fc4ad22 | 17 | Name: ffmpeg |
c32b589f | 18 | Version: 0.4.9 |
839e806f | 19 | Release: 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 | 22 | License: GPL with LGPL parts |
fde29260 | 23 | Group: 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 |
27 | Source0: http://ffmpeg.mplayerhq.hu/%{name}-export-snapshot.tar.bz2 | |
28 | # Source0-md5: 5be2e4d1e326bb7809205a3401204621 | |
fde29260 ER |
29 | Source1: ffserver.init |
30 | Source2: ffserver.sysconfig | |
38cf6de3 | 31 | Source3: ffserver.conf |
83dbfaf3 | 32 | #Patch0: %{name}-libtool.patch |
d7493de8 | 33 | Patch1: %{name}-libdir.patch |
7a286645 | 34 | Patch2: %{name}-gcc4.patch |
fc8de229 | 35 | Patch3: %{name}-system-amr.patch |
2305d791 | 36 | Patch4: %{name}-x264-symbol.patch |
892bb830 | 37 | Patch5: %{name}-kill-mabi_altivec.patch |
73e3bb9e | 38 | Patch6: %{name}-altivec_fix.patch |
d2fa6a1d | 39 | URL: http://ffmpeg.mplayerhq.hu/ |
2a60eebe | 40 | BuildRequires: SDL-devel |
fc8de229 JB |
41 | %if %{with amr} |
42 | BuildRequires: amrnb-devel | |
43 | BuildRequires: amrwb-devel >= 5.3.0 | |
44 | %endif | |
e380e18a | 45 | BuildRequires: faac-devel |
b959c224 | 46 | BuildRequires: faad2-devel |
2a60eebe | 47 | BuildRequires: freetype-devel |
4bee03f0 JB |
48 | %ifarch ppc |
49 | # require version with altivec support fixed | |
50 | BuildRequires: gcc >= 5:3.3.2-3 | |
51 | %endif | |
8a764e4b | 52 | %{?with_imlib2:BuildRequires: imlib2-devel >= 1.1.0-2} |
e380e18a | 53 | BuildRequires: lame-libs-devel |
b959c224 | 54 | BuildRequires: libdts-devel |
f3692243 | 55 | BuildRequires: libgsm-devel |
94447fde ER |
56 | BuildRequires: libogg-devel |
57 | BuildRequires: libraw1394-devel | |
4814ac84 | 58 | BuildRequires: libtool >= 2:1.4d-3 |
e380e18a | 59 | BuildRequires: libvorbis-devel |
42dd6e0f | 60 | BuildRequires: libx264-devel >= 0.1.2-1.20061024_2245.1 |
e1fe03f7 | 61 | %ifarch %{ix86} |
62 | %ifnarch i386 i486 | |
76243dbd JB |
63 | BuildRequires: nasm |
64 | %endif | |
e1fe03f7 | 65 | %endif |
1463656a | 66 | BuildRequires: perl-tools-pod |
593d3a64 | 67 | BuildRequires: rpmbuild(macros) >= 1.268 |
1463656a | 68 | BuildRequires: tetex |
9cf4d8a4 | 69 | BuildRequires: texinfo |
872de59d | 70 | %{?with_amr:BuildRequires: unzip} |
46f2a56b | 71 | BuildRequires: xvid-devel >= 1:1.1.0 |
33a1c0f3 | 72 | BuildRequires: zlib-devel |
57ebb8ad | 73 | %{?with_autoreqdep:BuildConflicts: libpostproc} |
54ec280e | 74 | Requires: %{name}-libs = %{version}-%{release} |
839e806f | 75 | Requires: xvid >= 1:1.1.0 |
af49d6ab | 76 | Obsoletes: libpostproc |
539b540f | 77 | BuildRoot: %{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 |
90 | ffmpeg is a hyper fast realtime audio/video encoder and streaming | |
91 | server. It can grab from a standard Video4Linux video source and | |
92 | convert it into several file formats based on DCT/motion compensation | |
93 | encoding. Sound is compressed in MPEG audio layer 2 or using an AC3 | |
fda3e16d | 94 | compatible stream. |
9fc4ad22 AM |
95 | |
96 | %description -l pl | |
fda3e16d | 97 | ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym |
98 |