diff --git a/.gitignore b/.gitignore index bbbf2f6..a750a96 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -mjpegtools-1.9.0.tar.gz +mjpegtools-2.0.0.tar.gz diff --git a/mjpegtools-1.9.0-gcc44.patch b/mjpegtools-1.9.0-gcc44.patch deleted file mode 100644 index 96c415d..0000000 --- a/mjpegtools-1.9.0-gcc44.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp~ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp ---- mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp~ 2005-10-13 18:43:10.000000000 +0200 -+++ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2009-04-15 12:22:29.000000000 +0200 -@@ -53,7 +53,7 @@ LPCMStream::LPCMStream(IBitStream &ibs, - - bool LPCMStream::Probe(IBitStream &bs ) - { -- char *last_dot = strrchr( bs.StreamName(), '.' ); -+ const char *last_dot = strrchr( bs.StreamName(), '.' ); - return - last_dot != NULL - && strcmp( last_dot+1, "lpcm") == 0; diff --git a/mjpegtools-1.9.0-png-memleak.patch b/mjpegtools-1.9.0-png-memleak.patch deleted file mode 100644 index f077a1a..0000000 --- a/mjpegtools-1.9.0-png-memleak.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up mjpegtools-1.9.0/lavtools/png2yuv.c~ mjpegtools-1.9.0/lavtools/png2yuv.c ---- mjpegtools-1.9.0/lavtools/png2yuv.c~ 2007-11-08 18:31:50.000000000 +0100 -+++ mjpegtools-1.9.0/lavtools/png2yuv.c 2010-09-03 13:32:43.015596001 +0200 -@@ -407,6 +407,7 @@ int decode_png(const char *pngname, int - return 2; - } - -+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); - fclose(pngfile); - - return 1; diff --git a/mjpegtools-1.9.0rc1-anytovcd-ffmpegver.patch b/mjpegtools-1.9.0rc1-anytovcd-ffmpegver.patch deleted file mode 100644 index 069cef6..0000000 --- a/mjpegtools-1.9.0rc1-anytovcd-ffmpegver.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- mjpegtools-1.9.0rc1/scripts/anytovcd.sh~ 2006-02-16 19:58:24.000000000 +0200 -+++ mjpegtools-1.9.0rc1/scripts/anytovcd.sh 2007-02-24 22:28:52.000000000 +0200 -@@ -206,7 +206,7 @@ - - fi - --FFMPEG_VERSION="`${FFMPEG} 2>&1 | awk '$4 == "build" {print $5}' | sed s/,// | head -1`" -+FFMPEG_VERSION="`${FFMPEG} -version 2>&1 | awk '$1 == "ffmpeg" {print $2}' | sed s/SVN-r// | head -n 1`" - - AUD_TRACK="`range_check ${AUD_TRACK} 1 99`" - FFMPEG_AUD_TRACK="`${FFMPEG} -i \"${AUDIO_SRC}\" 2>&1 | awk '/Audio:/ {sub("^#","",$2); print $2}' | awk -F[ '{print $1}' | head -${AUD_TRACK} | tail -1`" diff --git a/mjpegtools-2.0.0-no-config-in-public-header.h b/mjpegtools-2.0.0-no-config-in-public-header.h new file mode 100644 index 0000000..2043f31 --- /dev/null +++ b/mjpegtools-2.0.0-no-config-in-public-header.h @@ -0,0 +1,11 @@ +diff -up mjpegtools-2.0.0/mplex/stream_params.hpp~ mjpegtools-2.0.0/mplex/stream_params.hpp +--- mjpegtools-2.0.0/mplex/stream_params.hpp~ 2010-03-13 14:05:07.000000000 +0100 ++++ mjpegtools-2.0.0/mplex/stream_params.hpp 2011-08-02 23:34:12.126843444 +0200 +@@ -23,7 +23,6 @@ + #ifndef __STREAM_PARAMS_HH__ + #define __STREAM_PARAMS_HH__ + +-#include + #include + class LpcmParams + { diff --git a/mjpegtools.spec b/mjpegtools.spec index 03d4616..72641c1 100644 --- a/mjpegtools.spec +++ b/mjpegtools.spec @@ -1,17 +1,12 @@ Name: mjpegtools -Version: 1.9.0 -Release: 2%{?dist} +Version: 2.0.0 +Release: 1%{?dist} Summary: Tools to manipulate MPEG data - Group: Applications/Multimedia License: GPLv2 URL: http://mjpeg.sourceforge.net/ Source0: http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz -Patch0: %{name}-1.9.0rc1-anytovcd-ffmpegver.patch -Patch1: mjpegtools-1.9.0-gcc44.patch -Patch2: mjpegtools-1.9.0-png-memleak.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +Patch0: mjpegtools-2.0.0-no-config-in-public-header.h BuildRequires: libjpeg-devel BuildRequires: nasm BuildRequires: libdv-devel @@ -21,6 +16,7 @@ BuildRequires: libquicktime-devel >= 0.9.8 BuildRequires: libpng-devel BuildRequires: gtk2-devel >= 2.4.0 Requires: %{name}-libs = %{version}-%{release} +Requires: %{name}-lav = %{version}-%{release} # mencoder for lav2avi.sh Requires: mencoder # ffmpeg main package, y4mscaler and which for anytovcd.sh @@ -36,6 +32,7 @@ and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux. This package contains mjpegtools console utilities. + %package gui Summary: GUI tools to manipulate MPEG data Group: Applications/Multimedia @@ -47,22 +44,34 @@ and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux. This package contains mjpegtools GUI utilities. + %package libs -Summary: Libraries used by mjpegtools +Summary: MJPEGtools libraries Group: System Environment/Libraries -Requires: libquicktime >= 0.9.8 %description libs The mjpeg programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of +audio and video under Linux. This package contains libraries which are +used by mjpegtools and also by several other projects. + + +%package lav +Summary: MJPEGtools lavpipe libraries +Group: System Environment/Libraries +Requires: %{name}-libs = %{version}-%{release} + +%description lav +The mjpeg programs are a set of tools that can do recording of videos +and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux. This package contains libraries used by mjpegtools. + %package devel Summary: Development files for mjpegtools libraries Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} -Requires: pkgconfig %description devel The mjpeg programs are a set of tools that can do recording of videos @@ -71,11 +80,22 @@ audio and video under Linux. This package contains development files for building applications that use mjpegtools libraries. +%package lav-devel +Summary: Development files for mjpegtools lavpipe libraries +Group: Development/Libraries +Requires: %{name}-lav = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} + +%description lav-devel +The mjpeg programs are a set of tools that can do recording of videos +and playback, simple cut-and-paste editing and the MPEG compression of +audio and video under Linux. This package contains development files +for building applications that use mjpegtools lavpipe libraries. + + %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 sed -i -e 's/ARCHFLAGS=.*/ARCHFLAGS=/' configure* sed -i -e 's|/lib /usr/lib|/%{_lib} %{_libdir}|' configure # lib64 rpaths for f in docs/yuvfps.1 ; do @@ -85,36 +105,35 @@ done %build %configure --disable-dependency-tracking --disable-static -make # %{?_smp_mflags} +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_libdir}/lib*.la} # too broken/outdated to be useful in 1.[89].0 (and would come with dep chain) -rm -f $RPM_BUILD_ROOT%{_bindir}/mpegtranscode +rm $RPM_BUILD_ROOT%{_bindir}/mpegtranscode -%clean -rm -rf $RPM_BUILD_ROOT +%post +/sbin/install-info %{_infodir}/mjpeg-howto.info %{_infodir}/dir || : +%preun +[ $1 -eq 0 ] && \ +/sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || : %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig -%post -/sbin/install-info %{_infodir}/mjpeg-howto.info %{_infodir}/dir || : +%post lav -p /sbin/ldconfig -%preun -[ $1 -eq 0 ] && \ -/sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || : +%postun lav -p /sbin/ldconfig %files %defattr(-,root,root,-) -%doc COPYING CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO +%doc CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO %{_bindir}/* %exclude %{_bindir}/glav %exclude %{_bindir}/lavplay @@ -130,8 +149,8 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc README.glav %{_bindir}/glav -# lavplay and yuvplay won't save -libs/console util users from X11 and SDL -# dependencies as long as liblavplay is in -libs, but they're inherently +# lavplay and yuvplay won't save console util users from X11 and SDL +# dependencies as long as liblavplay is in -lav, but they're inherently # GUI tools -> include them here %{_bindir}/lavplay %{_bindir}/y4mhist @@ -142,16 +161,29 @@ rm -rf $RPM_BUILD_ROOT %files libs %defattr(-,root,root,-) %doc COPYING -%{_libdir}/lib*.so.* +%{_libdir}/libm*.so.* + +%files lav +%defattr(-,root,root,-) +%{_libdir}/liblav*.so.* %files devel %defattr(-,root,root,-) %{_includedir}/%{name} -%{_libdir}/lib*.so +%exclude %{_includedir}/%{name}/*lav*.h +%{_libdir}/libm*.so %{_libdir}/pkgconfig/%{name}.pc +%files lav-devel +%defattr(-,root,root,-) +%{_includedir}/%{name}/*lav*.h +%{_libdir}/liblav*.so + %changelog +* Mon Aug 1 2011 Hans de Goede - 2.0.0-1 +- Update to new upstream 2.0.0 final release + * Fri Sep 3 2010 Hans de Goede 1.9.0-2 - Fix a memleak which is causing issues for LiVES diff --git a/sources b/sources index 8b5e6e1..80e9c7f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -309a6fcf0900a010d6a9c1e91afc2f5c mjpegtools-1.9.0.tar.gz +903e1e3b967eebcc5fe5626d7517dc46 mjpegtools-2.0.0.tar.gz