* Tue Mar 10 2009 Dominik Mierzejewski <rpm at greysector.net> - 0.5-1

- 0.5 release
- enable yasm on x86_64, fix resulting textrels
- add missing obsoletes for ffmpeg-compat-devel (really fix bug #173)
- disable yasm and certain asm optimizations for generic ix86 builds
- %{_bindir} is now usable
- include more docs
- specfile cleanups
- add JPEG2000 decoding support via openjpeg
el8
Dominik Mierzejewski 16 years ago
parent 588cc5fd58
commit 02338179c1

2
.gitignore vendored

@ -1 +1 @@
ffmpeg-20090131.tar.bz2 ffmpeg-0.5.tar.bz2

@ -1,17 +1,17 @@
# TODO: add make test to %%check section # TODO: add make test to %%check section
%define svn 20090131
%define faad2min 1:2.6.1 %define faad2min 1:2.6.1
Summary: Digital VCR and streaming server Summary: Digital VCR and streaming server
Name: ffmpeg Name: ffmpeg
Version: 0.4.9 Version: 0.5
Release: 0.58.%{svn}%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/Multimedia Group: Applications/Multimedia
URL: http://ffmpeg.org/ URL: http://ffmpeg.org/
Source0: http://rpm.greysector.net/livna/%{name}-%{svn}.tar.bz2 Source0: http://ffmpeg.org/releases/%{name}-%{version}.tar.bz2
Source1: %{name}-snapshot.sh # get rid of textrels on x86_64 in yasm code
Patch0: %{name}-textrel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%{?_with_amr:BuildRequires: amrnb-devel amrwb-devel} %{?_with_amr:BuildRequires: amrnb-devel amrwb-devel}
@ -24,6 +24,7 @@ BuildRequires: lame-devel
BuildRequires: libdc1394-devel BuildRequires: libdc1394-devel
BuildRequires: libtheora-devel BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel BuildRequires: libvorbis-devel
BuildRequires: openjpeg-devel
BuildRequires: schroedinger-devel BuildRequires: schroedinger-devel
BuildRequires: SDL-devel BuildRequires: SDL-devel
BuildRequires: speex-devel BuildRequires: speex-devel
@ -31,8 +32,7 @@ BuildRequires: texi2html
BuildRequires: x264-devel >= 0.0.0-0.14.20080613 BuildRequires: x264-devel >= 0.0.0-0.14.20080613
BuildRequires: xvidcore-devel BuildRequires: xvidcore-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
#don't enable on x86_64 until PIC issues on are fixed (in libavcodec/i386/fft_mmx.asm) %ifarch %{ix86} x86_64
%ifarch %{ix86}
BuildRequires: yasm BuildRequires: yasm
%endif %endif
@ -61,6 +61,7 @@ Summary: Development package for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
Obsoletes: ffmpeg-compat-devel < 0.4.9-0.49
%description devel %description devel
FFMpeg is a complete and free Internet live audio and video FFMpeg is a complete and free Internet live audio and video
@ -72,11 +73,14 @@ This package contains development files for %{name}
%define ff_configure \ %define ff_configure \
../configure \\\ ../configure \\\
--prefix=%{_prefix} \\\ --prefix=%{_prefix} \\\
--bindir=%{_bindir} \\\
--datadir=%{_datadir}/ffmpeg \\\
--incdir=%{_includedir}/ffmpeg \\\ --incdir=%{_includedir}/ffmpeg \\\
--libdir=%{_libdir} \\\ --libdir=%{_libdir} \\\
--mandir=%{_mandir} \\\ --mandir=%{_mandir} \\\
--arch=%{_target_cpu} \\\ --arch=%{_target_cpu} \\\
--extra-cflags="$RPM_OPT_FLAGS" \\\ --extra-cflags="$RPM_OPT_FLAGS -I%{_includedir}/openjpeg" \\\
--extra-version=rpmfusion \\\
%{?_with_amr:--enable-libamr-nb --enable-libamr-wb --enable-nonfree} \\\ %{?_with_amr:--enable-libamr-nb --enable-libamr-wb --enable-nonfree} \\\
--enable-bzlib \\\ --enable-bzlib \\\
--enable-libdc1394 \\\ --enable-libdc1394 \\\
@ -84,6 +88,7 @@ This package contains development files for %{name}
--enable-libfaad \\\ --enable-libfaad \\\
--enable-libgsm \\\ --enable-libgsm \\\
--enable-libmp3lame \\\ --enable-libmp3lame \\\
--enable-libopenjpeg \\\
--enable-libschroedinger \\\ --enable-libschroedinger \\\
--enable-libspeex \\\ --enable-libspeex \\\
--enable-libtheora \\\ --enable-libtheora \\\
@ -100,12 +105,12 @@ This package contains development files for %{name}
--enable-shared \\\ --enable-shared \\\
--enable-gpl \\\ --enable-gpl \\\
--disable-debug \\\ --disable-debug \\\
--disable-optimizations \\\
--disable-stripping --disable-stripping
%prep %prep
%setup -q -n %{name}-%{svn} %setup -q
%patch0 -p1 -b .textrel
%build %build
mkdir generic mkdir generic
@ -114,6 +119,10 @@ pushd generic
--shlibdir=%{_libdir} \ --shlibdir=%{_libdir} \
%ifarch %{ix86} %ifarch %{ix86}
--cpu=%{_target_cpu} \ --cpu=%{_target_cpu} \
--disable-mmx2 \
--disable-sse \
--disable-ssse3 \
--disable-yasm \
%endif %endif
%ifarch ppc ppc64 %ifarch ppc ppc64
--disable-altivec \ --disable-altivec \
@ -123,6 +132,7 @@ pushd generic
%endif %endif
make %{?_smp_mflags} make %{?_smp_mflags}
make documentation
popd popd
mkdir simd mkdir simd
@ -173,24 +183,15 @@ make %{?_smp_mflags}
popd popd
%install %install
rm -rf $RPM_BUILD_ROOT __doc rm -rf $RPM_BUILD_ROOT
pushd generic pushd generic
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
popd popd
pushd simd pushd simd
%ifarch %{ix86} %ifarch %{ix86} ppc ppc64 sparc sparc64
make install DESTDIR=$RPM_BUILD_ROOT
%endif
%ifarch ppc ppc64
make install DESTDIR=$RPM_BUILD_ROOT
%endif
%ifarch sparc sparc64
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%endif %endif
popd popd
cp -a doc __doc
rm -f __doc/{Makefile,*.{1,pl,texi}}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -202,11 +203,10 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING.GPL CREDITS Changelog README __doc/*.* %doc COPYING.GPL CREDITS Changelog README RELEASE doc/ffserver.conf
# Note: as of 20070204, "configure" doesn't have --bindir. %{_bindir}/ffmpeg
%{_prefix}/bin/ffmpeg %{_bindir}/ffplay
%{_prefix}/bin/ffplay %{_bindir}/ffserver
%{_prefix}/bin/ffserver
%{_mandir}/man1/ffmpeg.1* %{_mandir}/man1/ffmpeg.1*
%{_mandir}/man1/ffplay.1* %{_mandir}/man1/ffplay.1*
%{_mandir}/man1/ffserver.1* %{_mandir}/man1/ffserver.1*
@ -231,6 +231,7 @@ rm -rf $RPM_BUILD_ROOT
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc MAINTAINERS doc/APIchanges doc/TODO doc/*.txt
%{_includedir}/ffmpeg %{_includedir}/ffmpeg
%{_libdir}/pkgconfig/lib*.pc %{_libdir}/pkgconfig/lib*.pc
%{_libdir}/lib*.so %{_libdir}/lib*.so
@ -246,6 +247,16 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Mar 10 2009 Dominik Mierzejewski <rpm at greysector.net> - 0.5-1
- 0.5 release
- enable yasm on x86_64, fix resulting textrels
- add missing obsoletes for ffmpeg-compat-devel (really fix bug #173)
- disable yasm and certain asm optimizations for generic ix86 builds
- %%{_bindir} is now usable
- include more docs
- specfile cleanups
- add JPEG2000 decoding support via openjpeg
* Sat Jan 31 2009 Dominik Mierzejewski <rpm at greysector.net> - 0.4.9-0.58.20090131 * Sat Jan 31 2009 Dominik Mierzejewski <rpm at greysector.net> - 0.4.9-0.58.20090131
- 20090131 snapshot - 20090131 snapshot

@ -1 +1 @@
d1290cd26ffdba89af962529f86f904f ffmpeg-20090131.tar.bz2 be8503f15c3b81ba00eb8379ca8dcf33 ffmpeg-0.5.tar.bz2

Loading…
Cancel
Save