%define major 1 %define libname %mklibname %name %major %define libnamedev %mklibname %name -d %define libname_orig lib%{name} %define use_mmx 0 %{?_with_mmx: %global use_mmx 1} %{?_without_mmx: %global use_mmx 0} %define useqt3 0 %{?_with_qt3: %global useqt3 1} %define version 0.3.1 %define snapshot 1180 %define rel 3 %if %snapshot %define release %mkrel 0.svn%snapshot.%rel %else %define release %mkrel %rel %endif Name: mlt Version: %version Release: %release Summary: Mutton Lettuce Tomato Nonlinear Video Editor %if %snapshot # http://mlt.svn.sourceforge.net/viewvc/mlt/trunk/mlt/ Source: %{name}-r%{snapshot}.tar.bz2 %else Source0: http://ovh.dl.sourceforge.net/sourceforge/mlt/%name-%version.tar.gz %endif Patch0: mlt-0.3.0-fix-underlink.patch Patch1: %{name}-0.2.2-noO4.patch Patch2: mlt-0.2.2-linuxppc.patch License: LGPLv2+ Group: Video Url: http://mlt.sourceforge.net BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: pkgconfig BuildRequires: ffmpeg BuildRequires: ffmpeg-devel >= 0.4.9-3.pre1 BuildRequires: glib2-devel BuildRequires: gtk2-devel BuildRequires: ladspa-devel BuildRequires: libdv-devel BuildRequires: libsamplerate-devel BuildRequires: libvorbis-devel BuildRequires: libxml2-devel BuildRequires: multiarch-utils >= 1.0.3 BuildRequires: pango-devel %if %useqt3 BuildRequires: qt3-devel %else BuildRequires: qt4-devel BuildConflicts: qt3-devel %endif BuildRequires: quicktime-devel BuildRequires: SDL-devel BuildRequires: ImageMagick BuildRequires: mad-devel BuildRequires: libjack-devel BuildRequires: sox-devel %description MLT is an open source multimedia framework, designed and developed for television broadcasting. It provides a toolkit for broadcasters, video editors, media players, transcoders, web streamers and many more types of applications. The functionality of the system is provided via an assortment of ready to use tools, xml authoring components, and an extendible plug-in based API. %package -n %{libname} Summary: Main library for mlt Group: System/Libraries Provides: %{libname_orig} = %{version}-%{release} %description -n %{libname} This package contains the libraries needed to run programs dynamically linked with mlt. %package -n %{libnamedev} Summary: Headers for developing programs that will use mlt Group: Development/C Requires: %{libname} = %{version} # mlt-config requires stuff from %{_datadir}/%{name} Requires: %{name} = %{version} Provides: %{name}-devel = %{version}-%{release} Provides: %{libname_orig}-devel = %{version}-%{release} Obsoletes: %mklibname -d %name 0.3.0 Obsoletes: %mklibname -d %name 0.2.2 %description -n %{libnamedev} This package contains the headers that programmers will need to develop applications which will use mlt. %prep %setup -q -n %name %patch0 -p0 -b .underlink %patch1 -p1 -b .noO4 %patch2 -p1 -b .ppc find ./ -name configure -exec chmod 755 {} \; chmod 755 src/modules/lumas/create_lumas %build %configure2_5x \ --disable-debug \ --enable-gpl \ %if %use_mmx --enable-mmx \ %else --disable-mmx \ %endif --luma-compress \ --enable-avformat \ --avformat-shared=%{_prefix} \ --enable-motion-est \ %if %useqt3 --force-qt3 \ --qimage-libdir=%{qt3lib} \ --qimage-includedir=%{qt3include} \ %else --qimage-libdir=%{qt4lib} \ --qimage-includedir=%{qt4include} \ %endif %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %multiarch_binaries %{buildroot}%{_bindir}/mlt-config %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc docs COPYING README %{_bindir}/albino %{_bindir}/humperdink %{_bindir}/inigo %{_bindir}/miracle %{_datadir}/* %{_libdir}/mlt %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib*.so.%{major}* %{_libdir}/lib*.so.%{version} %files -n %{libnamedev} %defattr(-,root,root) %multiarch %{multiarch_bindir}/mlt-config %{_bindir}/mlt-config %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Wed Sep 10 2008 Stéphane Téletchéa <steletch@mandriva.org> 0.3.1-0.svn1180.3mdv2009.0 + Revision: 283525 - re-enabling sox, it works correctly now * Tue Sep 09 2008 Stéphane Téletchéa <steletch@mandriva.org> 0.3.1-0.svn1180.2mdv2009.0 + Revision: 283342 - update Obsoletes to ease migration from previous release * Tue Sep 09 2008 Stéphane Téletchéa <steletch@mandriva.org> 0.3.1-0.svn1180.1mdv2009.0 + Revision: 283341 - update to latest svn revision - fix the svn case for a smoother upgrade - update to latest svn revision to build a working kdenlive * Wed Sep 03 2008 Helio Chissini de Castro <helio@mandriva.com> 0.3.0-2mdv2009.0 + Revision: 279971 - We have qt4 in main and kdenlive is qt4, so make library qt3 not helps in any way. This fix startup crashes on kdenlive - Clean the redefinitions in spec - Kill all hack to enable and patch and disable and buildconflicts where just a --disable-sox would work * Wed Aug 06 2008 Funda Wang <fundawang@mandriva.org> 0.3.0-1mdv2009.0 + Revision: 264227 - add sox detection patch - disable sox build as mlt 0.3 does not like sox 14.1 - more underlink patch - update libmajor - New version 0.3.0 - apply underlink patch - fix under llink + Thierry Vignaud <tvignaud@mandriva.com> - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Sat Feb 02 2008 Austin Acton <austin@mandriva.org> 0.2.5-0.20080123.2mdv2008.1 + Revision: 161308 - rebuild for new libsox * Wed Jan 23 2008 Giuseppe Ghibò <ghibo@mandriva.com> 0.2.5-0.20080123.1mdv2008.1 + Revision: 156997 - Update to mlt svn 20080123 (for bug #36896). + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Nov 19 2007 Adam Williamson <awilliamson@mandriva.com> 0.2.4-3mdv2008.1 + Revision: 110562 - buildrequires libjack-devel (#33601) * Wed Sep 05 2007 Funda Wang <fundawang@mandriva.org> 0.2.4-2mdv2008.0 + Revision: 80185 - Obsoletes old devel package * Sun Aug 12 2007 Funda Wang <fundawang@mandriva.org> 0.2.4-1mdv2008.0 + Revision: 62171 - drop patch5, not needed - drop patch4, merged upstream - Drop patch3, merged upstream - New version 0.2.4 * Tue Mar 13 2007 Giuseppe Ghibò <ghibo@mandriva.com> 0.2.2-9mdv2007.1 + Revision: 142397 - Rebuilt against latest ffmpeg. * Mon Mar 12 2007 Giuseppe Ghibò <ghibo@mandriva.com> 0.2.2-8mdv2007.1 + Revision: 141637 - Don't revert gb PPC patch. - Better handling of avformat-swscale (for now disabled). * Sun Mar 11 2007 Giuseppe Ghibò <ghibo@mandriva.com> 0.2.2-7mdv2007.1 + Revision: 141361 - Unbzip2 patches. - Added Patch3 from cvs (fix motion-est for x86_64). - Added Patch4 to build with sox 13 (fix bug #29207). - Added Patch5 (to enable --avformat-swscale). + Gwenole Beauchesne <gbeauchesne@mandriva.com> - lib{32,64} fixes * Mon Dec 18 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.2.2-6mdv2007.1 + Revision: 98492 - fix patch2: enable SSE optimizations for x86-64 - drop BuildRequires libavifile-devel (not used) - patch2: fix build on ppc * Mon Oct 30 2006 Anssi Hannula <anssi@mandriva.org> 0.2.2-5mdv2007.1 + Revision: 73837 - buildrequires mad-devel - buildrequires ImageMagick - rebuild - drop unused plf build switch fix invalid provides of libpackage fix requires of devel package + Andreas Hasenack <andreas@mandriva.com> - commit on behalf of Giuseppe Ghib?\195?\178 to get package in sync with svn: * Wed Sep 13 2006 Giuseppe Ghib?\195?\178 <ghibo@mandriva.com> 0.2.2-2mdv2007.0 - Fix build for X86_64. - Fixed License. - Removed suffix in configure, so to let modules avformat built. + Jerome Martin <jmartin@mandriva.org> - import mlt-0.2.2-0.1.20060mdk * Wed Jun 21 2006 Jerome Martin <jmartin@mandriva.org> 0.2.2-1 - Initial version