[packages/ffmpeg] - updated to 1.1 (note: new libavresample,libavutil sonames; ffmpeg 1.0.x left on ffmpeg-1.0 branch)

qboosh qboosh at pld-linux.org
Sun Jan 13 18:05:20 CET 2013


commit 286738561676a9de5e45cedab1f80266d8d25c4d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 13 18:05:36 2013 +0100

    - updated to 1.1 (note: new libavresample,libavutil sonames; ffmpeg 1.0.x left on ffmpeg-1.0 branch)
    - updated opencv24,cdio-paranoia patches
    - removed obsolete openjpeg patch

 ffmpeg-cdio-paranoia.patch | 22 +++++++++----------
 ffmpeg-opencv24.patch      | 12 +++++------
 ffmpeg-openjpeg.patch      | 11 ----------
 ffmpeg.spec                | 53 ++++++++++++++++++++++++++++++++++------------
 4 files changed, 57 insertions(+), 41 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index e056e46..bc53315 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -1,3 +1,4 @@
+# TODO: libsoxr [libsoxr, soxr.h]
 #
 # How to deal with ffmpeg/opencv checken-egg problem:
 #	1. make-request -r --without opencv ffmpeg.spec
@@ -25,7 +26,7 @@
 Summary:	FFmpeg - a very fast video and audio converter
 Summary(pl.UTF-8):	FFmpeg - szybki konwerter audio/wideo
 Name:		ffmpeg
-Version:	1.0.1
+Version:	1.1
 Release:	1
 # LGPL or GPL, chosen at configure time (GPL version is more featured)
 # (postprocessing, some filters, x264, xavs, xvid, x11grab)
@@ -33,16 +34,15 @@ Release:	1
 License:	GPL v3+ with LGPL v3+ parts
 Group:		Applications/Multimedia
 Source0:	http://ffmpeg.org/releases/%{name}-%{version}.tar.bz2
-# Source0-md5:	dbbb88ce5525dea22b24aaa098a9bcc2
+# Source0-md5:	578c590a0e996c1fc71acb666c0ed858
 Source1:	ffserver.init
 Source2:	ffserver.sysconfig
 Source3:	ffserver.conf
 Patch0:		%{name}-gsm.patch
 Patch1:		%{name}-opencv24.patch
-Patch2:		%{name}-openjpeg.patch
-Patch3:		%{name}-cdio-paranoia.patch
+Patch2:		%{name}-cdio-paranoia.patch
 URL:		http://www.ffmpeg.org/
-%{?with_openal:BuildRequires:	OpenAL-devel}
+%{?with_openal:BuildRequires:	OpenAL-devel >= 1.1}
 BuildRequires:	SDL-devel >= 1.2.1
 BuildRequires:	alsa-lib-devel
 BuildRequires:	bzip2-devel
@@ -79,7 +79,7 @@ BuildRequires:	libv4l-devel
 %{?with_va:BuildRequires:	libva-devel >= 1.0.3}
 BuildRequires:	libvdpau-devel >= 0.2
 BuildRequires:	libvorbis-devel
-%{?with_vpx:BuildRequires:	libvpx-devel >= 0.9.6}
+%{?with_vpx:BuildRequires:	libvpx-devel >= 0.9.7}
 # X264_BUILD >= 118
 %{?with_x264:BuildRequires:	libx264-devel >= 0.1.3-1.20111212_2245}
 %ifarch %{ix86}
@@ -107,6 +107,7 @@ BuildRequires:	vo-aacenc-devel
 BuildRequires:	vo-amrwbenc-devel
 %{?with_ilbc:BuildRequires:	webrtc-libilbc-devel}
 BuildRequires:	xavs-devel
+BuildRequires:	xorg-lib-libX11-devel
 BuildRequires:	xorg-lib-libXext-devel
 BuildRequires:	xorg-lib-libXfixes-devel
 BuildRequires:	xvid-devel >= 1:1.1.0
@@ -187,6 +188,7 @@ Requires:	lame-libs-devel >= 3.98.3
 Requires:	libass-devel
 Requires:	libavc1394-devel
 Requires:	libbluray-devel
+%{?with_caca:Requires:	libcaca-devel}
 Requires:	libcdio-paranoia-devel >= 0.90-2
 Requires:	libdc1394-devel >= 2
 Requires:	libgsm-devel
@@ -198,7 +200,7 @@ Requires:	librtmp-devel
 Requires:	libtheora-devel >= 1.0-0.beta3
 %{?with_va:Requires:	libva-devel >= 1.0.3}
 Requires:	libvorbis-devel
-%{?with_vpx:Requires:	libvpx-devel >= 0.9.6}
+%{?with_vpx:Requires:	libvpx-devel >= 0.9.7}
 %{?with_x264:Requires:	libx264-devel >= 0.1.3-1.20110625_2245}
 Requires:	opencore-amr-devel
 %{?with_opencv:Requires:	opencv-devel}
@@ -274,9 +276,8 @@ dużej przestrzeni na dane skonfigurowanej w ffserver.conf).
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p0
+%patch1 -p1
 %patch2 -p1
-%patch3 -p1
 
 # package the grep result for mplayer, the result formatted as ./mplayer/configure
 cat <<EOF > ffmpeg-avconfig
@@ -449,6 +450,12 @@ install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
 # simple to do (by querying pkgconfig), but why?
 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
 
+# fix man page
+%if %{with doc}
+install -d $RPM_BUILD_ROOT%{_mandir}/man3
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/lib*.3 $RPM_BUILD_ROOT%{_mandir}/man3
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -484,8 +491,19 @@ fi
 %dir %{_datadir}/ffmpeg
 %{_datadir}/ffmpeg/*.ffpreset
 %{_datadir}/ffmpeg/ffprobe.xsd
-%{?with_doc:%{_mandir}/man1/ffmpeg.1*}
-%{?with_doc:%{_mandir}/man1/ffprobe.1*}
+%if %{with doc}
+%{_mandir}/man1/ffmpeg.1*
+%{_mandir}/man1/ffmpeg-bitstream-filters.1*
+%{_mandir}/man1/ffmpeg-codecs.1*
+%{_mandir}/man1/ffmpeg-devices.1*
+%{_mandir}/man1/ffmpeg-filters.1*
+%{_mandir}/man1/ffmpeg-formats.1*
+%{_mandir}/man1/ffmpeg-protocols.1*
+%{_mandir}/man1/ffmpeg-resampler.1*
+%{_mandir}/man1/ffmpeg-scaler.1*
+%{_mandir}/man1/ffmpeg-utils.1*
+%{_mandir}/man1/ffprobe.1*
+%endif
 
 %files libs
 %defattr(644,root,root,755)
@@ -498,9 +516,9 @@ fi
 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.54
 %attr(755,root,root) %{_libdir}/libavresample.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libavresample.so.0
+%attr(755,root,root) %ghost %{_libdir}/libavresample.so.1
 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libavutil.so.51
+%attr(755,root,root) %ghost %{_libdir}/libavutil.so.52
 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.52
 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
@@ -540,6 +558,15 @@ fi
 %{_pkgconfigdir}/libpostproc.pc
 %{_pkgconfigdir}/libswresample.pc
 %{_pkgconfigdir}/libswscale.pc
+%if %{with doc}
+%{_mandir}/man3/libavcodec.3*
+%{_mandir}/man3/libavdevice.3*
+%{_mandir}/man3/libavfilter.3*
+%{_mandir}/man3/libavformat.3*
+%{_mandir}/man3/libavutil.3*
+%{_mandir}/man3/libswresample.3*
+%{_mandir}/man3/libswscale.3*
+%endif
 
 %files static
 %defattr(644,root,root,755)
diff --git a/ffmpeg-cdio-paranoia.patch b/ffmpeg-cdio-paranoia.patch
index 48ecede..c0ffc0d 100644
--- a/ffmpeg-cdio-paranoia.patch
+++ b/ffmpeg-cdio-paranoia.patch
@@ -11,14 +11,14 @@
  
  #include "libavutil/log.h"
  #include "libavutil/mem.h"
---- ffmpeg-1.0.1/configure.orig	2012-12-06 19:06:32.011945790 +0100
-+++ ffmpeg-1.0.1/configure	2012-12-06 19:29:13.155250760 +0100
-@@ -3771,7 +3771,7 @@
- enabled_any sndio_indev sndio_outdev && check_lib2 sndio.h sio_open -lsndio
- 
- enabled libcdio &&
--    check_lib2 "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open "-lcdio_paranoia -lcdio_cdda -lcdio"
-+    check_lib2 "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open "-lcdio_paranoia -lcdio_cdda -lcdio"
- 
- enabled x11grab                                           &&
- require X11 X11/Xlib.h XOpenDisplay -lX11                 &&
+--- ffmpeg-1.1/configure.orig	2013-01-12 20:17:28.423418802 +0100
++++ ffmpeg-1.1/configure	2013-01-12 20:41:48.743388367 +0100
+@@ -3817,7 +3817,7 @@
+ enabled libaacplus && require  "libaacplus >= 2.0.0" aacplus.h aacplusEncOpen -laacplus
+ enabled libass     && require_pkg_config libass ass/ass.h ass_library_init
+ enabled libbluray  && require libbluray libbluray/bluray.h bd_open -lbluray
+-enabled libcdio    && require2 libcdio "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio
++enabled libcdio    && require2 libcdio "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio
+ enabled libcelt    && require libcelt celt/celt.h celt_decode -lcelt0 &&
+                       { check_lib celt/celt.h celt_decoder_create_custom -lcelt0 ||
+                         die "ERROR: libcelt must be installed and version must be >= 0.11.0."; }
diff --git a/ffmpeg-opencv24.patch b/ffmpeg-opencv24.patch
index a510f24..86db421 100644
--- a/ffmpeg-opencv24.patch
+++ b/ffmpeg-opencv24.patch
@@ -1,11 +1,11 @@
---- configure.orig	2012-07-09 07:30:07.231478952 +0200
-+++ configure	2012-07-09 08:46:38.701177339 +0200
-@@ -3222,7 +3222,7 @@
+--- ffmpeg-1.1/configure.orig	2013-01-12 19:03:23.233511454 +0100
++++ ffmpeg-1.1/configure	2013-01-12 20:14:37.403422370 +0100
+@@ -3834,7 +3834,7 @@
  enabled libnut     && require  libnut libnut.h nut_demuxer_init -lnut
  enabled libopencore_amrnb  && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
  enabled libopencore_amrwb  && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
 -enabled libopencv  && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader
 +enabled libopencv  && add_extralibs -lopencv_core -lopencv_features2d -lopencv_imgproc -lopencv_objdetect -lgcrypt
- enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg
- enabled libpulse && require_pkg_config libpulse-simple pulse/simple.h pa_simple_new
- enabled librtmp    && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
+ enabled libopenjpeg && { check_lib openjpeg-1.5/openjpeg.h opj_version -lopenjpeg ||
+                          check_lib openjpeg.h opj_version -lopenjpeg ||
+                          die "ERROR: libopenjpeg not found"; }
diff --git a/ffmpeg-openjpeg.patch b/ffmpeg-openjpeg.patch
deleted file mode 100644
index 67158e2..0000000
--- a/ffmpeg-openjpeg.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ffmpeg-1.0/configure.orig	2012-10-05 22:13:45.328431216 +0200
-+++ ffmpeg-1.0/configure	2012-10-05 22:15:06.931762850 +0200
-@@ -3654,7 +3654,7 @@
- enabled libopencore_amrnb  && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
- enabled libopencore_amrwb  && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
- enabled libopencv  && add_extralibs -lopencv_core -lopencv_features2d -lopencv_imgproc -lopencv_objdetect -lgcrypt
--enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg
-+enabled libopenjpeg && require_pkg_config libopenjpeg openjpeg.h opj_version
- enabled libopus    && require_pkg_config opus opus_multistream.h opus_multistream_decoder_create
- enabled libpulse && require_pkg_config libpulse-simple pulse/simple.h pa_simple_new
- enabled librtmp    && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ffmpeg.git/commitdiff/286738561676a9de5e45cedab1f80266d8d25c4d



More information about the pld-cvs-commit mailing list