%if 0%{?rhel} >= 8 %global _without_sdlgfx 1 %endif Name: mjpegtools Version: 2.2.1 Release: 2%{?dist} Summary: Tools to manipulate MPEG data License: GPLv2 URL: https://mjpeg.sourceforge.io/ Source0: https://downloads.sourceforge.net/mjpeg/%{name}/%{version}/%{name}-%{version}.tar.gz BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: libtool BuildRequires: nasm BuildRequires: libdv-devel BuildRequires: SDL-devel >= 1.1.3 %{!?_without_sdlgfx:BuildRequires: SDL_gfx-devel} BuildRequires: libquicktime-devel >= 0.9.8 BuildRequires: libpng-devel BuildRequires: gtk2-devel >= 2.4.0 Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-lav%{?_isa} = %{version}-%{release} # mencoder for lav2avi.sh Requires: mencoder%{?_isa} # ffmpeg main package, y4mscaler and which for anytovcd.sh Requires: ffmpeg%{?_isa} Provides: y4mscaler = 9.0-14 # Could be dropped on Fedora 22 Obsoletes: y4mscaler < 9.0-14 Requires: which %description 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 mjpegtools console utilities. %package gui Summary: GUI tools to manipulate MPEG data Requires: %{name}%{?_isa} = %{version}-%{release} %description gui 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 mjpegtools GUI utilities. %package libs Summary: MJPEGtools libraries %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 Requires: %{name}-libs%{?_isa} = %{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 Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description 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 libraries. %package lav-devel Summary: Development files for mjpegtools lavpipe libraries Requires: %{name}-lav%{?_isa} = %{version}-%{release} Requires: %{name}-devel%{?_isa} = %{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 %autosetup -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 iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f done %build %configure LIBS="-lpthread" \ --disable-dependency-tracking \ %ifarch ppc64 --enable-simd-accel=no \ %endif %{?_without_sdlgfx: --without-sdlgfx} \ --disable-static %make_build %install %make_install rm -f %buildroot{%{_infodir}/dir,%{_libdir}/lib*.la} # too broken/outdated to be useful in 1.[89].0 (and would come with dep chain) rm %buildroot%{_bindir}/mpegtranscode %ldconfig_scriptlets libs %ldconfig_scriptlets lav %files %doc CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO %{_bindir}/* %exclude %{_bindir}/glav %exclude %{_bindir}/lavplay %exclude %{_bindir}/y4mhist %exclude %{_bindir}/yuvplay %{_mandir}/man1/*.1* %exclude %{_mandir}/man1/lavplay.1* %exclude %{_mandir}/man1/yuvplay.1* %{_mandir}/man5/yuv4mpeg.5* %{_infodir}/mjpeg-howto.info* %files gui %{_bindir}/glav # 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 %{_bindir}/yuvplay %{_mandir}/man1/lavplay.1* %{_mandir}/man1/yuvplay.1* %files libs %license COPYING %{_libdir}/libm*.so.* %files lav %{_libdir}/liblav*.so.* %files devel %{_includedir}/%{name} %exclude %{_includedir}/%{name}/*lav*.h %{_libdir}/libm*.so %{_libdir}/pkgconfig/%{name}.pc %files lav-devel %{_includedir}/%{name}/*lav*.h %{_libdir}/liblav*.so %changelog * Wed Feb 09 2022 RPM Fusion Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Dec 19 2021 Nicolas Chauvet - 2.2.1-1 - Update to 2.2.1 * Tue Aug 03 2021 RPM Fusion Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Apr 17 2021 Leigh Scott - 2.2.0-1 - Update to 2.2.0 * Wed Feb 03 2021 RPM Fusion Release Engineering - 2.1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 18 2020 RPM Fusion Release Engineering - 2.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Mar 12 2020 Leigh Scott - 2.1.0-19 - Rebuilt for i686 * Wed Feb 05 2020 RPM Fusion Release Engineering - 2.1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Sep 10 2019 Xavier Bachelot - 2.1.0-17 - Disable use of SDL_gfx on EL8. - Minor spec cleanup. * Fri Aug 09 2019 RPM Fusion Release Engineering - 2.1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 04 2019 RPM Fusion Release Engineering - 2.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 12 2018 Antonio Trande - 2.1.0-14 - Rebuild for ffmpeg-3.4.5 on el7 - infodir scriptlets deprecated * Fri Oct 12 2018 Leigh Scott - 2.1.0-13 - Remove Group tag - Add missing isa on Requires - Update scriptlets and buildroot macro * Fri Oct 12 2018 Sérgio Basto - 2.1.0-12 - Add BuildRequires: gcc-c++ * Fri Oct 12 2018 Sérgio Basto - 2.1.0-11 - Build with libquicktime again * Fri Jul 27 2018 RPM Fusion Release Engineering - 2.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 01 2018 RPM Fusion Release Engineering - 2.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 25 2018 Leigh Scott - 2.1.0-8 - Build without libquicktime for F28 - Disable AltiVec for ppc64 * Thu Aug 31 2017 RPM Fusion Release Engineering - 2.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Mar 20 2017 RPM Fusion Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Oct 19 2014 Sérgio Basto - 2.1.0-5 - Rebuilt for FFmpeg 2.4.3 * Sat Jul 26 2014 Sérgio Basto - 2.1.0-4 - Rebuild for new libSDL_gfx, need by mjpegtools-gui - Fix FTBFS for errors "format not a string literal and no format arguments" because FESCO decided Enable "-Werror=format-security" by default https://fedorahosted.org/fesco/ticket/1185 - Bring and add two patches from Gentoo: mjpegtools-2.1.0-pic.patch and mjpegtools-2.1.0-sdl-cflags.patch * Tue Nov 19 2013 Sérgio Basto - 2.1.0-3 - Better obsoletes/provides for y4mscaler. * Tue Nov 19 2013 Sérgio Basto - 2.1.0-2 - Fix rfbz #3022, Obsoletes: y4mscaler, because already integrate into mjpegtools-2.1.0 * Thu Nov 07 2013 Sérgio Basto - 2.1.0-1 - Update to 2.1.0 - Drop upstreamed patches. * Wed Nov 06 2013 Sérgio Basto - 2.0.0-9 - Rebuilt for x264/FFmpeg * Mon Sep 30 2013 Sérgio Basto - 2.0.0-8 - Rebuilt for x264/FFmpeg * Sat May 25 2013 Nicolas Chauvet - 2.0.0-7 - Rebuilt for x264/FFmpeg * Sun Mar 03 2013 Nicolas Chauvet - 2.0.0-6 - Mass rebuilt for Fedora 19 Features * Tue Jun 26 2012 Nicolas Chauvet - 2.0.0-5 - Rebuilt for FFmpeg * Wed May 02 2012 Sérgio Basto - 2.0.0-4 - Add patch for gcc 4.7 * Fri Mar 02 2012 Nicolas Chauvet - 2.0.0-3 - Rebuilt for c++ ABI breakage * Wed Feb 08 2012 Nicolas Chauvet - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * 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 * Wed Apr 15 2009 Hans de Goede 1.9.0-1 - Update to upstream 1.9.0 final release * Sun Mar 29 2009 Thorsten Leemhuis - 1.9.0-0.7.rc3 - rebuild for new F11 features * Fri Jul 25 2008 Hans de Goede 1.9.0-0.6.rc3 - Release bump for rpmfusion - Sync with freshrpms (no changes) * Tue Apr 22 2008 Ville Skyttä - 1.9.0-0.5.rc3 - Apply patch from Gentoo to fix build with GCC 4.3 (#1941). * Tue Dec 4 2007 Ville Skyttä - 1.9.0-0.4.rc3 - 1.9.0rc3. * Sat Sep 29 2007 Ville Skyttä - 1.9.0-0.4.rc2 - Requires: which * Wed Aug 22 2007 Ville Skyttä - 1.9.0-0.3.rc2 - License: GPLv2 * Thu Jun 21 2007 Ville Skyttä - 1.9.0-0.2.rc2 - Rebuild. * Fri Jun 8 2007 Ville Skyttä - 1.9.0-0.1.rc2 - 1.9.0rc2. * Sat Nov 25 2006 Ville Skyttä - 1.8.0-7 - Split GUI utilities into -gui subpackage. - Don't ship mpegtranscode, it's broken/outdated. - Require mencoder for lav2avi.sh. * Fri Oct 06 2006 Thorsten Leemhuis 1.8.0-6 - rebuilt for unwind info generation, broken in gcc-4.1.1-21 * Sun Sep 24 2006 Ville Skyttä - 1.8.0-5 - Specfile cleanup. * Sun Jun 4 2006 Ville Skyttä - 1.8.0-4 - Get rid of undefined non-weak symbols in liblav*. - Apply upstream fix for compiling with libquicktime 0.9.8. * Thu Mar 09 2006 Andreas Bierfert - switch to new release field * Tue Feb 28 2006 Andreas Bierfert - add dist * Sat Jan 21 2006 Ville Skyttä - 1.8.0-0.lvn.3 - Include license text in -libs, it can be installed without the main package. - Convert yuvfps man page to UTF-8. - Fix -devel Group tag. * Thu Jan 19 2006 Adrian Reber - 1.8.0-0.lvn.2 - Added patch to compile with gcc 4.1 - Dropped 0 Epoch * Mon Sep 19 2005 Ville Skyttä - 0:1.8.0-0.lvn.1 - 1.8.0. * Sat Aug 27 2005 Ville Skyttä - 0:1.6.3-0.lvn.0.1.rc3 - 1.6.3-rc3, Altivec fixes applied upstream. * Fri Aug 12 2005 Ville Skyttä - 0:1.6.3-0.lvn.0.1.rc2 - 1.6.3-rc2, clean up obsolete pre-FC2 stuff. - Fix Altivec build, kudos to upstream. * Thu May 26 2005 Ville Skyttä - 0:1.6,3-0.lvn.0.1.rc1 - 1.6.3-rc1 (1.7.0 snapshot package not released, so no Epoch bump). * Sun May 22 2005 Ville Skyttä - 0:1.7.0-0.lvn.0.2.cvs20050521 - PPC: disable Altivec due to gcc4 build failure, honor $RPM_OPT_FLAGS. * Sat May 21 2005 Ville Skyttä - 0:1.7.0-0.lvn.0.1.cvs20050521 - Pre-1.7.0 snapshot as of today, all patches applied or obsoleted upstream. - Require pkgconfig in -devel. * Wed Feb 2 2005 Ville Skyttä - 0:1.6.2-0.lvn.7 - Add corrected -fPIC tweak from Thorsten. * Mon Jan 31 2005 Ville Skyttä - 0:1.6.2-0.lvn.6 - Include PNG input support. - Remove no-op $RPM_OPT_FLAGS setting from %%build. - Remove bogus optimization settings from configure script. * Fri Dec 31 2004 Thorsten Leemhuis - 0:1.6.2-0.lvn.5 - CFLAGS="$CFLAGS -fPIC" on non x86; Fixes build error on x86_64; The option --with-pic is not enough * Sat Dec 18 2004 Dams - 0:1.6.2-0.lvn.4 - Disabling static libraries building * Tue Dec 14 2004 Ville Skyttä - 0:1.6.2-0.lvn.3 - Include quicktime support. - Apply patch from ALT Linux to fix info pages, fix typo in %%post. - Require /sbin/install-info. - Add "--without static" rpmbuild option to work around an issue with FC3 strip - Always enable SIMD accelerations, CPU capabilities detected at runtime. - Always disable use of cmov. * Thu Nov 11 2004 Dams 0:1.6.2-0.lvn.2 - Added patch to fix gcc3.4 build - Detected race condition in Makefiles (disabling _smp_mflags use) - Added info files & scriptlets - Dropped patch0 and patch1 * Tue Jun 8 2004 Dams 0:1.6.2-0.lvn.1 - Updated to 1.6.2 * Sun Sep 28 2003 Dams 0:1.6.1-0.fdr.6 - Removed comment after scriptlets * Fri Aug 22 2003 Dams 0:1.6.1-0.fdr.5 - buildroot -> RPM_BUILD_ROOT * Sun Aug 10 2003 Dams 0:1.6.1-0.fdr.4 - Applied upstream patches to fix build on gcc3.3 systems * Tue Apr 29 2003 Dams 0:1.6.1-0.fdr.3 - Now test arch for configure options (from Ville) - Removed ImageMagick-devel BuildRequires * Sun Apr 27 2003 Dams 0:1.6.1-0.fdr.2 - Added missing BuildRequires - Added post/postun scriplets for libs package * Wed Apr 23 2003 Dams - Initial build.