# # TODO: # - Newtek NDI SDK support: https://www.newtek.com/ndi/sdk/ # - bconds and module subpackages # - more bindings (csharp, java, lua, perl, php, ruby, tcl) # # Conditional build: %bcond_without opencv # OpenCV module # Summary: MLT - open source multimedia framework Summary(pl.UTF-8): MLT - szkielet multimedialny o otwartych źródłach Name: mlt Version: 6.16.0 Release: 1 License: GPL v3+ (LGPL v2.1+ code linked with GPL v2/GPL v3 libraries) Group: X11/Applications/Multimedia Source0: http://downloads.sourceforge.net/mlt/%{name}-%{version}.tar.gz # Source0-md5: e3872267232aae89f5182fd567be2596 Patch0: %{name}-qt5.patch URL: http://www.mltframework.org/ BuildRequires: OpenGL-devel BuildRequires: Qt5Core-devel >= 5 BuildRequires: Qt5Gui-devel >= 5 BuildRequires: Qt5OpenGL-devel >= 5 BuildRequires: Qt5Svg-devel >= 5 BuildRequires: Qt5Widgets-devel >= 5 BuildRequires: Qt5Xml-devel >= 5 BuildRequires: SDL-devel BuildRequires: SDL_image-devel # libavcodec libavdevice libavfilter >= 4.11.100 libavformat libavutil libswscale BuildRequires: ffmpeg-devel >= 2.3 BuildRequires: fftw3-devel >= 3 BuildRequires: frei0r-devel BuildRequires: gdk-pixbuf2-devel >= 2.0 BuildRequires: gtk+2-devel >= 1:2.0 BuildRequires: jack-audio-connection-kit-devel BuildRequires: ladspa-devel BuildRequires: libdv-devel >= 0.102 BuildRequires: libexif-devel BuildRequires: libquicktime-devel BuildRequires: libsamplerate-devel BuildRequires: libvorbis-devel >= 1:1.0.1 BuildRequires: libxml2-devel >= 1:2.5 BuildRequires: movit-devel %{?with_opencv:BuildRequires: opencv-devel >= 3.1.0} BuildRequires: pkgconfig BuildRequires: python-devel BuildRequires: rpm-pythonprov BuildRequires: rtaudio-devel BuildRequires: sox-devel BuildRequires: swfdec-devel >= 0.7 BuildRequires: swig-python BuildRequires: vid.stab-devel >= 0.98 BuildRequires: xorg-lib-libX11-devel BuildRequires: which Obsoletes: mlt++ < %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl.UTF-8 MLT to szkielet multimedialny o otwartych źródłach zaprojektowany i rozwijany do nadawania telewizji. Udostępnia zestaw narzędzi dla nadawców, edytory obrazu, odtwarzacze mediów, transkodery, narzędzia do udostępniania strumieni przez WWW i wiele innych rodzajów aplikacji. Funkcjonalność systemu jest zapewniona poprzez asortyment gotowych do użycia narzędzi, komponentów do tworzenia XML-a i rozszerzalne API oparte na wtyczkach. %package devel Summary: Header files for MLT Summary(pl.UTF-8): Pliki nagłówkowe dla MLT Group: Development/Libraries Requires: %{name} = %{version}-%{release} Obsoletes: mlt++-devel < %{version} %description devel This package contains header files for MLT. %description devel -l pl.UTF-8 Ten pakiet zawiera pliki nagłówkowe dla MLT. %package -n python-mlt Summary: MLT Python bindings Summary(pl.UTF-8): Wiązania MLT dla Pythona Group: Development/Languages/Python Requires: %{name} = %{version}-%{release} %description -n python-mlt Python bindings for MLT - open source multimedia framework. %description -n python-mlt -l pl.UTF-8 Wiązadania Pythona do MLT - szkieletu multimedialnego o otwartych źródłach. %prep %setup -q %patch0 -p1 # Don't overoptimize (breaks debugging) sed -i -e '/fomit-frame-pointer/d' configure sed -i -e '/ffast-math/d' configure %build %configure \ --enable-gpl \ --enable-gpl3 \ --enable-motion-est \ --disable-debug \ %ifarch i586 i686 %{x8664} --enable-mmx \ %else --disable-mmx \ %endif %{!?with_opencv:--disable-opencv} \ %ifarch %{x8664} --enable-sse \ --enable-sse2 \ %else --disable-sse \ --disable-sse2 \ %endif --swig-languages=python sed -i -e 's#OPTIMISATIONS=#OPTIMISATIONS=%{rpmcflags} %{rpmcppflags}#g' config.mak %{__make} \ CC="%{__cc}" \ CXX="%{__cxx}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{py_sitedir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT cp -p src/swig/python/{*.py,*.so} $RPM_BUILD_ROOT%{py_sitedir} %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_comp $RPM_BUILD_ROOT%{py_sitedir} %py_postclean %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README %attr(755,root,root) %{_bindir}/melt %attr(755,root,root) %{_libdir}/libmlt.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libmlt.so.6 %attr(755,root,root) %{_libdir}/libmlt++.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libmlt++.so.3 %dir %{_libdir}/%{name} %attr(755,root,root) %{_libdir}/%{name}/libmlt*.so %{_datadir}/mlt %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libmlt.so %attr(755,root,root) %{_libdir}/libmlt++.so %{_includedir}/mlt %{_includedir}/mlt++ %{_pkgconfigdir}/mlt-framework.pc %{_pkgconfigdir}/mlt++.pc %files -n python-mlt %defattr(644,root,root,755) %attr(755,root,root) %{py_sitedir}/_mlt.so %{py_sitedir}/codecs.py[co] %{py_sitedir}/getimage.py[co] %{py_sitedir}/mlt.py[co] %{py_sitedir}/play.py[co] %{py_sitedir}/switcher.py[co] %{py_sitedir}/test_animation.py[co] %{py_sitedir}/waveforms.py[co] %{py_sitedir}/webvfx_generator.py[co]