%define prever 20091116 Summary: Advanced audio and video capturing, compositing, and editing Name: cinelerra Version: 2.1 Release: 20_git%{prever}%{?dist} License: GPL Group: Applications/Multimedia URL: http://cvs.cinelerra.org/ # Obtained from : # git clone git://git.cinelerra.org/j6t/cinelerra.git my_cinelerra # cd my_cinelerra # ./autogen.sh && ./configure && make dist # mv cinelerra-2.1.tar.gz cinelerra-2.1-git20091116.tar.gz Source0: cinelerra-%{version}%{?prever:-git%{prever}}.tar.gz Source1: cinelerra-64x64.png Patch0: cinelerra-ffmpeg.patch Patch1: cinelerra-2.1-stat.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ BuildRequires: libXt-devel, libXv-devel, libXxf86vm-devel, libXext-devel BuildRequires: gettext-devel Buildrequires: esound-devel BuildRequires: alsa-lib-devel >= 1.0.2 BuildRequires: mjpegtools-devel # Required for libuuid BuildRequires: e2fsprogs-devel BuildRequires: fftw3-devel BuildRequires: a52dec-devel BuildRequires: lame-devel BuildRequires: libsndfile-devel BuildRequires: OpenEXR-devel BuildRequires: faad2-devel BuildRequires: libraw1394-devel >= 1.2.0 BuildRequires: libiec61883-devel # >= 0.5.0 required because of the use of avc1394_vcr_get_timecode2 BuildRequires: libavc1394-devel >= 0.5.0 BuildRequires: x264-devel BuildRequires: libogg-devel, libvorbis-devel, libtheora-devel # This seems to actually require OpenGL 2.0 (NVidia proprietary only?) %{?_with_opengl:BuildRequires: libGL-devel, libGLU-devel} # Stuff not checked by configure, but still required BuildRequires: nasm BuildRequires: libtool BuildRequires: freetype-devel # Included ffmpeg snapshot requires this - No longer needed with shared ffmpeg #BuildRequires: faac-devel BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel BuildRequires: libdv-devel Buildrequires: ffmpeg-devel BuildRequires: %{_includedir}/uuid/uuid.h %description Heroine Virtual Ltd. presents an advanced content creation system for Linux. %prep %setup -q %patch0 -p1 -b .ffmpeg %patch1 -p1 -b .stat # Replace the ugly small xpm icon with a nicer png one perl -pi -e 's|^Icon=.*|Icon=cinelerra.png|g' image/cinelerra.desktop for finc in libavcodec/avcodec.h libswscale/swscale.h; do inc=`echo $finc | awk -F/ '{print $2}'` grep -r "^#include .$inc." . | xargs perl -pi -e"s,^#include .$inc.,#include <$finc>," done %build %configure \ --disable-rpath \ --with-plugindir=%{_libdir}/cinelerra \ %ifarch %{ix86} x86_64 --enable-mmx \ %endif %ifarch ppc --enable-altivec \ %endif --with-external-ffmpeg make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} \ plugindir=%{_libdir}/cinelerra %find_lang %{name} # Remove xpm icon and place png one #rm -f %{buildroot}%{_datadir}/pixmaps/cinelerra.xpm install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/cinelerra.png %clean rm -rf %{buildroot} %post echo 0x7ffffff > /proc/sys/kernel/shmmax if ! grep kernel.shmmax %{_sysconfdir}/sysctl.conf > /dev/null; then cat >> %{_sysconfdir}/sysctl.conf << EOF # cinelerra needs a large shmmax kernel.shmmax = 0x7fffffff EOF fi /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc ChangeLog COPYING LICENSE NEWS TODO %{_bindir}/cinelerra %{_bindir}/mpeg3cat %{_bindir}/mpeg3dump %{_bindir}/mpeg3toc %{_bindir}/mplexlo %exclude %{_includedir}/ %{_libdir}/cinelerra/ %exclude %{_libdir}/*.la %exclude %{_libdir}/*.so %{_libdir}/*.so.* %{_datadir}/applications/*cinelerra.desktop %{_datadir}/pixmaps/cinelerra.png %{_datadir}/pixmaps/cinelerra.xpm %changelog * Mon Nov 16 2009 Axel Thimm - 2.1-18_git20091116 - Update to latest git code. * Sun Nov 16 2008 Axel Thimm - 2.1-16_git20081116 - Update to latest git code. * Thu Feb 14 2008 Matthias Saou 2.0-0.15.20081102 - Update to today's GIT code. - Remove no longer needed patches. - Rebuild against new x264. - Disable external ffmpeg since no available version seems to work. * Thu Feb 14 2008 Matthias Saou 2.0-0.14.20080214 - Update to today's SVN code. - Update svn checkout instructions. * Sun Jun 03 2007 Dag Wieers - 2.0-0.13.20070108 - Rebuild against x264-0.4.20070529 because I missed it. * Mon Jan 8 2007 Matthias Saou 2.0-0.12.20070108 - Update to today's SVN code. - Include faad2 patch. - Try to enable OpenGL, but it seems like only proprietary NVidia libraries would work, and the configure detection would need some changes too. So no. - Switch to using external ffmpeg since the internal fails to build on i386. * Tue Oct 24 2006 Matthias Saou 2.0-0.10.20061024 - Update to today's SVN code. - Rebuild against new x264. - Re-enable _smp_mflags as they work again, yeah! - Add --with opengl build conditional, disabled for now, needs testing. * Tue Sep 26 2006 Matthias Saou 2.0-0.9.20060918 - Replace xpm icon with a nicer png one. - Remove empty AUTHORS file. * Mon Sep 18 2006 Matthias Saou 2.0-0.8.20060918 - Update to today's SVN code. * Fri May 12 2006 Matthias Saou 2.0-0.7.20060512 - Update to today's SVN code. - Remove no longer needed ffmpeg patch. * Fri Mar 17 2006 Matthias Saou 2.0-0.6.20060317 - Update to today's SVN code. - Remove no longer needed extraqualif patch. - Add gettext-devel build requirement since "make dist" requires it. - Remove _smp_mflags since the build fails with it. * Thu Jan 12 2006 Matthias Saou 2.0-0.5.20051210 - Add modular xorg conditional build. - Include extraqualif patch to fix build with gcc 4.1. - Add missing freetype-devel build requirement, weird (FC5). * Sat Dec 10 2005 Matthias Saou 2.0-0.4.20051210 - Force plugindir, so that 64bit plugins go into /usr/lib64. * Sat Dec 10 2005 Matthias Saou 2.0-0.3.20051210 - Update to today's SVN code. - Rebuild against mjpegtools 1.8.0. * Fri Nov 18 2005 Matthias Saou 2.0-0.2.20051118 - Update to today's svn code. - Add --enable-altivec for ppc (we require high end machines anyway). * Tue Oct 4 2005 Matthias Saou 2.0-0.1 - Initial RPM release. - Include patch to fix local ffmpeg search path.