Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37048530
en ru br
ALT Linux repos
S:6.0-alt2.1
D:0.5.0-alt0.14329.1
5.0: 15151-alt5.M50.1
4.1: 11656-alt1.M41.1
4.0: 10629-alt3.M40.0
3.0: 0.4.9-alt2cvs20050406

Group :: Video
RPM: ffmpeg

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_without M24

%if_with M24
%define _release alt1.M24.1
%else
%define _release alt2
%endif

%if_with M24
%set_verify_elf_method textrel=relaxed
%endif

%define cvsdate 20050406
#%%undefine cvsdate
%def_disable mp3lame
%def_enable ogg
%def_enable vorbis
%def_disable a52
%def_enable a52bin
%def_disable faad
%def_enable faadbin
%def_disable faac
%def_enable xvid
%def_disable dts

Name: ffmpeg
Version: 0.4.9

%ifdef cvsdate
Release: %{_release}cvs%cvsdate
%else
Release: %_release
%endif

Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
Summary(ru_RU.KOI8-R): Быстрый кодировщик/декодировщик MPEG1/MPEG4/H263/RV и AC3/MPEG
Group: Video
License: GPL
Url: http://%name.sourceforge.net

%ifndef cvsdate
Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.gz
%else
Source: http://mplayerhq.hu/MPlayer/cvs/FFMpeg-%cvsdate.tar.bz2
%endif

Patch0: ffmpeg-20041113-alt-include.patch
# Debian: patent issues
Patch1: ffmpeg-20050313-deb-legal.patch
# Debian: MMX and PARISC/S390 improvements
Patch3: ffmpeg-20050313-deb-arch.patch
# ALT: hide configure options banner
Patch4: ffmpeg-20050329-alt-nobanner.patch
# Debian: ffmpeg-config manpage
Patch5: ffmpeg-20050313-deb-config.patch
# Debian, ALT: ffmpeg-config for development packages
Patch6: ffmpeg-20050313-alt-config.patch

### ffmpeg CVS patches follow ###

# CABAC support for MBAFF I frames
#Patch10: ffmpeg-20050405-cvs-cabac.patch
# Fix colors for YV12 case in loco (u/v planes are swapped)
Patch11: ffmpeg-20050407-cvs-locoyv12.patch
# Fixing lossless snow
#Patch12: ffmpeg-20050405-cvs-snow.patch
# 10% faster unpack_coeffs
#Patch13: ffmpeg-20050405-cvs-unpack.patch


Requires: lib%name = %version-%release

%if_enabled a52bin
Requires: liba52
%endif

%if_enabled faadbin
Requires: libfaad
%endif

# Added on Thu Dec 23 2004

BuildRequires: esound freetype2-devel imlib2-devel libSDL-devel XFree86-devel zlib-devel tetex-core
# XFree86-libs

%if_enabled mp3lame
BuildRequires: liblame-devel
%endif

%if_enabled ogg
BuildRequires: libogg-devel
%endif

%if_enabled vorbis
BuildRequires: libvorbis-devel
%endif

%if_enabled a52
%if_disabled a52bin
BuildRequires: liba52-devel
%endif
%endif

%if_enabled faad
%if_disabled faadbin
BuildRequires: libfaad-devel
%endif
%endif

%if_enabled faac
BuildRequires: libfaac-devel
%endif

%if_enabled xvid
BuildRequires: xvid-devel
%endif

%description
%name is a hyper fast realtime audio/video encoder, a streaming
server and a generic audio and video file converter.

It can grab from a standard Video4Linux video source and convert it into
several file formats based on DCT/motion compensation encoding. Sound is
compressed in MPEG audio layer 2 or using an AC3 compatible stream.

%description -l ru_RU.KOI8-R
%name -- это "сверхзвуковой" кодировщик/декодировщик видео и звука,
работающий в режиме реального времени, а также потоковый сервер и
преобразователь различных звуковых и видеоформатов.

%name умеет захватывать видеосигнал из источника Video4Linux и
преобразовывать его в файлы различных форматов на основе
компенсирующего кодирования DCT/motion. Звук при этом сжимается по
алгоритму MPEG audio layer 2 или алгоритму, совместимому с AC3.

%package -n lib%name
Summary: Shared libraries to run ffmpeg
Group: System/Libraries
Provides: libavcodec.so
Provides: libavformat.so

%description -n lib%name
This package contains the shared libraries required for ffmpeg

%description -n lib%name -l ru_RU.KOI8-R
Этот пакет содержит разделяемые библиотеки для ffmpeg.

%package devel
Summary: Development files for ffmpeg
Group: Development/C
Requires: lib%name = %version-%release

%description devel
This package includes the development libraries, header files and
documentation necessary for developing programs which will use ffmpeg.

%description -l ru_RU.KOI8-R devel
Этот пакет содержит все необходимые файлы для разработки программ на
основе ffmpeg -- библиотеки для разработки, заголовочные файлы и
документацию.

%prep
%ifndef cvsdate
%setup -q -n %name-%version
%else
%setup -q -n FFMpeg-%cvsdate
%endif

%patch0 -p1
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

# ffmpeg CVS patches

#%patch10 -p1
%patch11 -p1
#%patch12 -p1
#%patch13 -p1

find ./ -name Makefile -print0 |xargs -r0 %__subst '/ldconfig/d' --
%__subst 's,\-lImlib2,`imlib2-config --libs`,' configure

%build
export CFLAGS="-I../ -I%_includedir/mp4"
%configure \
   --enable-gpl \
   --enable-pp \
   --enable-shared-pp \
   --enable-pthreads \
   --enable-shared \
%ifnarch i686 athlon
   --disable-mmx \
%endif
   %{subst_enable mp3lame} \
   %{subst_enable ogg} \
   %{subst_enable vorbis} \
   %{subst_enable a52} \
   %{subst_enable a52bin} \
   %{subst_enable faad} \
   %{subst_enable faadbin} \
   %{subst_enable faac} \
   %{subst_enable xvid} \
   %{subst_enable dts}

# SMP-incompatible build

%make
%make_build -C doc
%make includedir=%_includedir ffmpeg-config

%install
%makeinstall

# libpostproc header

%__install -pD -m644 libavcodec/libpostproc/postprocess.h \
   %buildroot%_includedir/postproc/postprocess.h

# server config

%__install -pD -m640 doc/ffserver.conf %buildroot%_sysconfdir/ffserver.conf

%__install -m755 ffmpeg-config %buildroot%_bindir/ffmpeg-config
%__install -m644 ffmpeg-config.1 %buildroot%_man1dir/ffmpeg-config.1

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files
%exclude %_bindir/%name-config
%exclude %_man1dir/%name-config.*
%_bindir/*
%_man1dir/*
%config(noreplace) %_sysconfdir/*
%doc README doc/TODO Changelog doc/*.html doc/README.ALT doc/*.txt

%files -n lib%name
%_libdir/*.so*
%dir %_libdir/vhook
%_libdir/vhook/*.so

%files devel
%_includedir/*
%_bindir/%name-config
%_man1dir/%name-config.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin