%define date 2005-07-28 %define sqdate %(echo %{date} | tr -d '-') %define dist fc2 %{?dist: %{expand: %%define %dist 1}} Name: mlt++ Version: 0.1.cvs Release: %{?date:%{sqdate}.}0.%{?dist:%{dist}.}ts License: GPL Summary: C++ Wrapper for MLT Group: Multimedia/Video/Editors URL: http://mlt.sourceforge.net Source: http://mlt.sourceforge.net/downloads/%{name}/%{name}-cvs.tar.gz #Patch0: mlt++.include.patch BuildRoot: %{_tmppath}/%{name}-root Packager: Torsten Spindler Buildrequires: mlt-devel, ruby-devel, ruby-libs, perl Requires: mlt-devel, ruby, perl %description C++ Wrapper for the MLT framework %package swig Summary: SWIG bindings for MLT++ Group: Development/Libraries Requires: mlt++ %description swig MLT++ bindings via SWIG for perl and ruby. Possible other languages are java, python and tcl, which are are not included in this rpm. %prep %setup -q -n %{name}-cvs rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT ./configure --prefix=$RPM_BUILD_ROOT %build make mkdir $RPM_BUILD_ROOT/usr mkdir $RPM_BUILD_ROOT/usr/lib %makeinstall #build swig # Change build paths in swig # Temporary hack until mlt++ gets a config #find . -name build -exec perl -pi -e "s=/usr/local/include/mlt=/usr/include/mlt=g" {} \; #find . -name Makefile.PL -exec perl -pi -e "s=/usr/local/include/mlt=/usr/include/mlt=g" {} \; cd swig ./configure all || true cd perl make make install DESTDIR=$RPM_BUILD_ROOT cd .. cd ruby make make install DESTDIR=$RPM_BUILD_ROOT cd .. %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) %{_includedir}/mlt++/ %{_libdir}/libmlt++.so %files swig %defattr(-, root, root) %{_libdir}/perl5/5.8.3/i386-linux-thread-multi/perllocal.pod %{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/mltpp/.packlist %{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/mltpp/mltpp.bs %{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/mltpp/mltpp.so %{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/mltpp.pm %{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/play.pl %{_libdir}/site_ruby/1.8/i386-linux-gnu/mltpp.so %changelog * Thu Jul 28 2005 Torsten Spindler - Removed mlt++ build dependency * Thu Jun 02 2005 Torsten Spindler - Added distribution specific macros - Added swig package * Mon Aug 23 2004 Torsten Spindler - Initial spec file