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