|
| 1 | +Summary: Digital VCR and streaming server |
| 2 | +Name: ffmpeg |
| 3 | +Version: 2.4.3 |
| 4 | +Release: 1 |
| 5 | +%if 0%{?_with_amr:1} |
| 6 | +License: GPLv3+ |
| 7 | +%else |
| 8 | +License: GPLv2+ |
| 9 | +%endif |
| 10 | +URL: http://ffmpeg.org/ |
| 11 | +Source0: ffmpeg-%{version}.tar.gz |
| 12 | +BuildRequires: bzip2-devel |
| 13 | +BuildRequires: freetype-devel |
| 14 | +BuildRequires: gnutls-devel |
| 15 | +BuildRequires: libass-devel |
| 16 | +BuildRequires: libmodplug-devel |
| 17 | +BuildRequires: libtheora-devel |
| 18 | +BuildRequires: libvorbis-devel |
| 19 | +BuildRequires: perl(Pod::Man) |
| 20 | +BuildRequires: zlib-devel |
| 21 | +BuildRequires: yasm |
| 22 | + |
| 23 | +%description |
| 24 | +FFmpeg is a complete and free Internet live audio and video |
| 25 | +broadcasting solution for Linux/Unix. It also includes a digital |
| 26 | +VCR. It can encode in real time in many formats including MPEG1 audio |
| 27 | +and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
| 28 | + |
| 29 | +%package devel-static |
| 30 | +Summary: Development package for %{name} |
| 31 | +Requires: pkgconfig |
| 32 | + |
| 33 | +%description devel-static |
| 34 | +FFmpeg is a complete and free Internet live audio and video |
| 35 | +broadcasting solution for Linux/Unix. It also includes a digital |
| 36 | +VCR. It can encode in real time in many formats including MPEG1 audio |
| 37 | +and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
| 38 | +This package contains development files for %{name} |
| 39 | + |
| 40 | +%global ff_configure \ |
| 41 | +./configure \\\ |
| 42 | + --prefix=%{_prefix} \\\ |
| 43 | + --bindir=%{_bindir} \\\ |
| 44 | + --datadir=%{_datadir}/%{name} \\\ |
| 45 | + --incdir=%{_includedir}/%{name} \\\ |
| 46 | + --libdir=%{_libdir} \\\ |
| 47 | + --mandir=%{_mandir} \\\ |
| 48 | + --arch=%{_target_cpu} \\\ |
| 49 | + --optflags="$RPM_OPT_FLAGS" |
| 50 | + |
| 51 | +%prep |
| 52 | +%setup -q -n ffmpeg-%{version} |
| 53 | + |
| 54 | +%build |
| 55 | +%{ff_configure}\ |
| 56 | + --disable-devices \ |
| 57 | + --disable-ffplay \ |
| 58 | + --disable-ffmpeg \ |
| 59 | + --disable-ffprobe \ |
| 60 | + --disable-ffserver \ |
| 61 | + --disable-doc \ |
| 62 | + --enable-gpl \ |
| 63 | + --enable-runtime-cpudetect \ |
| 64 | + --enable-postproc \ |
| 65 | + --enable-vaapi \ |
| 66 | + --enable-vdpau \ |
| 67 | + --enable-bzlib \ |
| 68 | + --enable-gnutls \ |
| 69 | + --enable-muxer=spdif \ |
| 70 | + --enable-muxer=adts \ |
| 71 | + --enable-muxer=asf \ |
| 72 | + --enable-muxer=ipod \ |
| 73 | + --enable-encoder=ac3 \ |
| 74 | + --enable-encoder=aac \ |
| 75 | + --enable-encoder=wmav2 \ |
| 76 | + --enable-protocol=http \ |
| 77 | + --enable-libvorbis \ |
| 78 | + --enable-muxer=ogg \ |
| 79 | + --enable-encoder=libvorbis \ |
| 80 | + --enable-nonfree \ |
| 81 | + --enable-pthreads \ |
| 82 | + --enable-zlib \ |
| 83 | +%ifarch mipsel |
| 84 | + --disable-mips32r2 \ |
| 85 | + --disable-mipsdspr1 \ |
| 86 | + --disable-mipsdspr2 |
| 87 | +%endif |
| 88 | + |
| 89 | +make %{?_smp_mflags} V=1 |
| 90 | + |
| 91 | +%install |
| 92 | +make install DESTDIR=$RPM_BUILD_ROOT V=1 |
| 93 | + |
| 94 | +%files devel-static |
| 95 | +%doc MAINTAINERS doc/APIchanges doc/*.txt |
| 96 | +%{_includedir}/ffmpeg |
| 97 | +%{_libdir}/pkgconfig/lib*.pc |
| 98 | +%{_libdir}/lib*.a |
| 99 | + |
0 commit comments