%define date 2005-07-28 %define sqdate %(echo %{date} | tr -d '-') %define dist fc4 %{?dist: %{expand: %%define %dist 1}} %{?rhel3:%define _gdkpixbufnamedevel gdk-pixbuf-devel} %{?rhel3:%define _gdkpixbufname gdk-pixbuf} %{?rhel3:%define _without_sox 1} %{?fc4:%define _gdkpixbufnamedevel gdk-pixbuf-devel} %{?fc4:%define _gdkpixbufname gdk-pixbuf} %{?fc4:%define _without_sox 1} %{?fc2:%define _gdkpixbufnamedevel gdk-pixbuf-devel} %{?fc2:%define _gdkpixbufname gdk-pixbuf} %{?fc2:%define _without_sox 1} %{?mdk:%define _gdkpixbufname libgdk_pixbuf2.0_0} %{?mdk:%define _gdkpixbufnamedevel libgdk_pixbuf2.0_0-devel} %{?mdk:%define _without_sox 1} %{?mdk:%define _without_samplerate 1} Name: mlt Version: 0.2.0.cvs Release: %{?date:%{sqdate}.}%{?dist:%{dist}.}2.ts License: GPL Summary: Mutton Lettuce Tomato Nonlinear Video Editor Group: Multimedia/Video/Editors URL: http://mlt.sourceforge.net Source: http://mlt.sourceforge.net/downloads/%{name}/%{name}-cvs.tar.gz #Patch0: mlt.motion.patch #Patch1: sdl_still.patch BuildRoot: %{_tmppath}/%{name}-root Packager: Torsten Spindler BuildRequires: libdv-devel, pkgconfig, pango-devel, gtk2-devel, SDL-devel, libvorbis-devel, libxml2-devel %{!?_gdkpixbufnamedevel: %{_gdkpixbufnamedevel}} %{!?_without_sox:BuildRequires: sox-devel} %{!?_without_samplerate:BuildRequires: libsamplerate-devel} Requires: libdv, pango, gtk2, SDL, libvorbis, libxml2 %{!?_without_sox:Requires: sox} %{!?_without_samplerate:Requires: libsamplerate} %{!?_gdkpixbufname: %{_gdkpixbufname}} %description Nonlinear Video Editor. %package devel Summary: MLT Video Editor headers/development files Group: Development/Libraries #Requires: mlt = %{version} #BuildRequires: mlt %description devel Headers for MLT. %prep %setup -q -n %{name}-cvs #%patch0 -p1 #%patch1 -p1 %configure --enable-debug \ --enable-gpl \ --disable-jackrack \ --disable-mmx \ --luma-compress \ --enable-avformat \ --avformat-cvs \ --avformat-suffix=.mlt \ %{?_without_ffmpegcvs:--without-ffmpeg-cvs} \ %{?_without_sox:--disable-sox} \ %{?_without_samplerate:--disable-resample} %build make %makeinstall %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) /usr/bin/albino /usr/bin/humperdink /usr/bin/inigo /usr/bin/miracle /usr/bin/mlt-config /usr/lib/libmiracle.so /usr/lib/libmlt.so /usr/lib/libvalerie.so /usr/lib/libavformat.mlt.so /usr/lib/libavcodec.mlt.so /usr/lib/pkgconfig/mlt-framework.pc /usr/lib/pkgconfig/mlt-miracle.pc /usr/lib/pkgconfig/mlt-valerie.pc /usr/share/mlt/ %files devel /usr/include/mlt/ %changelog * Thu Jul 28 2004 Torsten Spindler - Added fc4 support - Removed ffmpeg dependency - Changed gdkpixbuf dependency * Mon Jul 26 2004 Torsten Spindler - Added dependencies * Mon Jul 19 2004 Torsten Spindler - Initial spec file