Author: andreas
Date: Wed Oct 25 20:10:07 2006
New Revision: 72881

Added:
   packages/cooker/mlt/current/SOURCES/mlt-0.2.2-noO4.patch.bz2   (contents, 
props changed)
   packages/cooker/mlt/current/SOURCES/mlt-0.2.2-x86_64.patch.bz2   (contents, 
props changed)
Modified:
   packages/cooker/mlt/current/SPECS/mlt.spec

Log:
- commit on behalf of Giuseppe Ghibò to get package in sync with svn:
  * Wed Sep 13 2006 Giuseppe Ghibò <[EMAIL PROTECTED]> 0.2.2-2mdv2007.0
  - Fix build for X86_64.
  - Fixed License.
  - Removed suffix in configure, so to let modules avformat built.


Added: packages/cooker/mlt/current/SOURCES/mlt-0.2.2-noO4.patch.bz2
==============================================================================
Binary file. No diff available.

Added: packages/cooker/mlt/current/SOURCES/mlt-0.2.2-x86_64.patch.bz2
==============================================================================
Binary file. No diff available.

Modified: packages/cooker/mlt/current/SPECS/mlt.spec
==============================================================================
--- packages/cooker/mlt/current/SPECS/mlt.spec  (original)
+++ packages/cooker/mlt/current/SPECS/mlt.spec  Wed Oct 25 20:10:07 2006
@@ -1,100 +1,136 @@
 %define name mlt
 %define version 0.2.2
-%define release %mkrel 1
+%define release %mkrel 2
+%define major  0.2.2
 
-%define lib_name_orig lib%{name}
-# major is the part of the library name after the .so
-%define major %{version}
-%define lib_name %mklibname %{name} %{major}
+%define libname                %mklibname %name %major
+%define libnamedev     %mklibname %name %major -d
+%define libname_orig   lib%{name}
+
+%define build_plf 0
+%{?_with_plf: %{expand: %%global build_plf 1}}
+%{?_without_plf: %{expand: %%global build_plf 0}}
+%if %build_plf
+%define distsuffix plf
+%endif
 
 Summary: Mutton Lettuce Tomato Nonlinear Video Editor
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Source0: %{name}-%{version}.tar.bz2
-License: GPL
-Group: Video
-Url: http://mlt.sourceforge.net
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-
-BuildRequires: pkgconfig
-BuildRequires: pango-devel
-BuildRequires: gtk2-devel
-BuildRequires: SDL-devel
-BuildRequires: libvorbis-devel
-BuildRequires: libxml2-devel
-BuildRequires: sox-devel
-BuildRequires: libsamplerate-devel
-
+Name:          %{name}
+Version:       %{version}
+Release:       %{release}
+Source0:       %{name}-%{version}.tar.bz2
+Patch0:                %{name}-%{version}-x86_64.patch.bz2
+Patch1:                %{name}-%{version}-noO4.patch.bz2
+License:       LGPL
+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: libavifile-devel
+BuildRequires: libdv-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: libvorbis-devel
+BuildRequires: libxml2-devel
+BuildRequires: multiarch-utils >= 1.0.3
+BuildRequires: pango-devel
+BuildRequires: qt3-devel
+BuildRequires:  quicktime-devel
+BuildRequires: SDL-devel
+BuildRequires: sox-devel >= 12.18.1-2mdv2007.0
 Requires: pango
 Requires: gtk2
 Requires: SDL
 Requires: sox
 
 %description
-Mutton Lettuce Tomato Nonlinear Video Editor
+MLT is an open source multimedia framework, designed and developed for
+television broadcasting.
 
-%package -n     %{lib_name}
+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:       %{name} = %{version}-%{release}
 
-%description -n %{lib_name}
-This package contains the library needed to run programs dynamically
+%description -n %{libname}
+This package contains the libraries needed to run programs dynamically
 linked with mlt.
 
 
-%package -n     %{lib_name}-devel
+%package -n     %{libnamedev}
 Summary:        Headers for developing programs that will use mlt
 Group:          Development/C
-Requires:       %{lib_name} = %{version}
-Provides:       %{lib_name_orig}-devel = %{version}-%{release} 
+Requires:       %{libname} = %{version}
 Provides:       %{name}-devel = %{version}-%{release}
+Provides:      %{libname_orig}-devel = %{version}-%{release}
 
-%description -n %{lib_name}-devel
+%description -n %{libnamedev}
 This package contains the headers that programmers will need to develop
-applications which will use mlt
+applications which will use mlt.
 
 
 %prep
 %setup -q
-%configure --enable-debug \
-           --enable-gpl \
-          --disable-jackrack \
-           --disable-mmx \
-           --luma-compress \
-           --enable-avformat \
-          --avformat-suffix=.mlt
+%ifarch x86_64
+%patch0 -p1 -b .x86_64
+%endif
+%patch1 -p1 -b .noO4
+
 %build
+%configure2_5x \
+       --disable-debug \
+       --enable-gpl \
+       --disable-mmx \
+       --luma-compress \
+       --enable-avformat \
+       --avformat-shared=%{_prefix} \
+%ifarch x86_64
+       --disable-motion-est \
+%else
+       --enable-motion-est
+%endif
+
 %make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %makeinstall
+%multiarch_binaries %{buildroot}%{_bindir}/mlt-config
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -n %{lib_name} -p /sbin/ldconfig
-%postun -n %{lib_name} -p /sbin/ldconfig
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
+%doc docs COPYING README
 %{_bindir}/albino
 %{_bindir}/humperdink
 %{_bindir}/inigo
 %{_bindir}/miracle
+%{_datadir}/*
 
-%files -n %{lib_name}
+%files -n %{libname}
 %defattr(-,root,root)
 %{_libdir}/lib*.so.%{major}*
-%{_datadir}/mlt
 
-%files -n %{lib_name}-devel
+%files -n %{libnamedev}
 %defattr(-,root,root)
+%multiarch %{multiarch_bindir}/mlt-config
+%{_bindir}/mlt-config
 %{_includedir}/*
 %{_libdir}/*.so
-%{_bindir}/mlt-config
-%{_libdir}/pkgconfig/
+%{_libdir}/pkgconfig/*.pc
 

Reply via email to