2012-03-17 13:20:10 +00:00
|
|
|
#
|
|
|
|
# spec file for package libmlt
|
|
|
|
#
|
2015-04-21 05:33:24 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-17 13:20:10 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_with ffmpeg
|
2013-05-02 10:32:35 +00:00
|
|
|
# Dan Dennedy asked to disable it since it's buggy and unmaintained (see e.g. http://www.kdenlive.org/mantis/view.php?id=3070)
|
|
|
|
%bcond_with vdpau
|
2012-03-17 13:20:10 +00:00
|
|
|
|
2014-11-11 11:38:40 +00:00
|
|
|
# vidstab currently can't enter Factory due to legal review / unclarity. Temp disable
|
|
|
|
%bcond_with vidstab
|
|
|
|
|
2012-03-17 13:20:10 +00:00
|
|
|
%define _name mlt
|
|
|
|
%define libname lib%{_name}
|
2013-06-30 09:51:22 +00:00
|
|
|
%define soname 6
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%define _name_pp %{_name}++
|
|
|
|
%define libname_pp lib%{_name_pp}
|
|
|
|
%define soname_pp 3
|
|
|
|
|
|
|
|
Name: %{libname}
|
2015-08-08 06:22:57 +00:00
|
|
|
Version: 0.9.8
|
2012-03-17 13:20:10 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
2012-03-27 12:29:46 +00:00
|
|
|
License: GPL-3.0+
|
2012-03-17 13:20:10 +00:00
|
|
|
Group: System/Libraries
|
2015-08-08 06:22:57 +00:00
|
|
|
Url: http://www.mltframework.org
|
|
|
|
Source0: https://github.com/mltframework/mlt/archive/v%{version}.tar.gz
|
2012-08-30 23:14:36 +00:00
|
|
|
# PATCH-FIX-OPENSUSE libmlt-0.8.2-vdpau.patch reddwarf@opensuse.org -- Make VDPAU support work without the devel package
|
|
|
|
Patch1: libmlt-0.8.2-vdpau.patch
|
2013-12-12 09:40:45 +00:00
|
|
|
# PATCH-FIX-UPSTREAM use-recommended-freetype-include.patch -- Freetype upstream recommends using their macros together with
|
|
|
|
# ft2build include. Positive sideeffect is that this patch makes it build with both freetype2 2.5.1, and older versions
|
|
|
|
Patch2: use-recommended-freetype-include.patch
|
2012-03-17 13:20:10 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ladspa-devel
|
|
|
|
BuildRequires: pkg-config
|
2015-11-09 13:57:19 +00:00
|
|
|
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse})
|
2015-04-21 05:33:24 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
%else
|
2012-03-17 13:20:10 +00:00
|
|
|
BuildRequires: pkgconfig(QtCore)
|
|
|
|
BuildRequires: pkgconfig(QtGui)
|
|
|
|
BuildRequires: pkgconfig(QtSvg)
|
|
|
|
BuildRequires: pkgconfig(QtXml)
|
2015-04-21 05:33:24 +00:00
|
|
|
%endif
|
2013-04-19 15:36:45 +00:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
2012-03-17 13:20:10 +00:00
|
|
|
BuildRequires: pkgconfig(frei0r)
|
2012-06-18 16:04:35 +00:00
|
|
|
BuildRequires: pkgconfig(gdk-2.0)
|
2012-03-17 13:20:10 +00:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
BuildRequires: pkgconfig(libdv)
|
2014-11-04 09:58:19 +00:00
|
|
|
BuildRequires: pkgconfig(libexif)
|
2012-03-17 13:20:10 +00:00
|
|
|
BuildRequires: pkgconfig(libquicktime)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
BuildRequires: pkgconfig(pangoft2)
|
|
|
|
BuildRequires: pkgconfig(samplerate)
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
|
|
|
BuildRequires: pkgconfig(sox)
|
2014-11-11 11:38:40 +00:00
|
|
|
%if %{with vidstab}
|
2014-10-27 15:03:30 +00:00
|
|
|
BuildRequires: pkgconfig(vidstab)
|
2014-11-11 11:38:40 +00:00
|
|
|
%endif
|
2012-03-17 13:20:10 +00:00
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
|
|
|
%if %{with ffmpeg}
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavdevice)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
BuildRequires: pkgconfig(libswscale)
|
2013-05-02 10:32:35 +00:00
|
|
|
%if %{with vdpau}
|
2012-08-05 02:08:35 +00:00
|
|
|
BuildRequires: pkgconfig(vdpau)
|
2012-06-18 16:04:35 +00:00
|
|
|
# VDPAU support requires it
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2012-03-17 13:20:10 +00:00
|
|
|
%endif
|
2013-05-02 10:32:35 +00:00
|
|
|
%endif
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package -n %{libname}%{soname}
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: System/Libraries
|
|
|
|
Recommends: %{libname}%{soname}-data
|
|
|
|
Recommends: %{libname}%{soname}-modules
|
|
|
|
|
|
|
|
%description -n %{libname}%{soname}
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname}%{soname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package -n %{libname_pp}%{soname_pp}
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname_pp}%{soname_pp}
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package -n %{libname_pp}-devel
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname_pp}%{soname_pp} = %{version}
|
|
|
|
Requires: %{libname}-devel = %{version}
|
|
|
|
|
|
|
|
%description -n %{libname_pp}-devel
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
2012-11-30 11:01:04 +00:00
|
|
|
%package -n melt%{soname}
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
Requires: melt
|
|
|
|
|
|
|
|
%description -n melt%{soname}
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
2012-03-17 13:20:10 +00:00
|
|
|
%package -n melt
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
2012-11-30 11:01:04 +00:00
|
|
|
Requires: melt%{soname}
|
|
|
|
Conflicts: melt > %{version}
|
|
|
|
Conflicts: melt < %{version}
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%description -n melt
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package -n %{libname}%{soname}-modules
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
Requires: %{_bindir}/melt
|
|
|
|
Requires: %{libname}%{soname} = %{version}
|
|
|
|
Recommends: frei0r-plugins
|
2012-08-07 22:45:04 +00:00
|
|
|
%if %{with ffmpeg}
|
|
|
|
Provides: mlt(%{soname})(avformat)
|
2013-05-02 10:32:35 +00:00
|
|
|
%if %{with vdpau}
|
2012-08-17 13:10:10 +00:00
|
|
|
# I would recommend it, but to the best of my knowledge nobody but nvidia provides a backend
|
|
|
|
Suggests: %(rpm -qf $(readlink -e %{_libdir}/libvdpau.so) --qf '%{NAME}')
|
2012-08-07 22:45:04 +00:00
|
|
|
%endif
|
2013-05-02 10:32:35 +00:00
|
|
|
%endif
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%description -n %{libname}%{soname}-modules
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package -n %{libname}%{soname}-data
|
|
|
|
Summary: Multimedia framework designed and developed for television broadcasting
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
Requires: %{libname}%{soname} = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{libname}%{soname}-data
|
|
|
|
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 extensible plug-in based API.
|
|
|
|
|
|
|
|
%package -n python-%{_name}
|
|
|
|
Summary: Python bindings for MLT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: swig
|
2012-08-25 14:35:26 +00:00
|
|
|
Requires: %{libname_pp}%{soname_pp} >= %{version}
|
|
|
|
Requires: %{libname}%{soname} >= %{version}
|
2012-03-17 13:20:10 +00:00
|
|
|
%{py_requires}
|
2012-08-07 22:45:04 +00:00
|
|
|
Provides: python-%{_name}%{soname}
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%description -n python-%{_name}
|
|
|
|
This package is needed to use MLT from Python.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{_name}-%{version}
|
2012-08-05 02:08:35 +00:00
|
|
|
%patch1
|
2013-12-12 09:40:45 +00:00
|
|
|
%patch2 -p1
|
2012-03-17 13:20:10 +00:00
|
|
|
|
2012-08-17 13:10:10 +00:00
|
|
|
# To complement libmlt-0.8.0-vdpau.patch.
|
|
|
|
# When vdpau support is not compiled it will break the code. Doesn't matter because the code will not be used anyway.
|
|
|
|
VDPAU_SONAME=$(objdump -p $(readlink -e %{_libdir}/libvdpau.so) | grep SONAME | sed 's/.*SONAME.* //' | tr -d '\n')
|
|
|
|
sed "s/__VDPAU_SONAME__/${VDPAU_SONAME}/" -i src/modules/avformat/vdpau.c
|
|
|
|
|
2012-03-17 13:20:10 +00:00
|
|
|
%build
|
2012-11-27 22:34:12 +00:00
|
|
|
%configure \
|
|
|
|
%ifnarch %{ix86} x86_64
|
|
|
|
--disable-mmx \
|
|
|
|
--disable-sse \
|
|
|
|
--disable-sse2 \
|
|
|
|
%endif
|
|
|
|
--enable-gpl --enable-gpl3 \
|
2012-03-17 13:20:10 +00:00
|
|
|
%ifarch i586
|
|
|
|
--disable-mmx \
|
|
|
|
%endif
|
2012-06-18 16:04:35 +00:00
|
|
|
%if %{with ffmpeg}
|
2013-05-02 10:32:35 +00:00
|
|
|
%if %{with vdpau}
|
2012-06-18 16:04:35 +00:00
|
|
|
--avformat-vdpau \
|
|
|
|
%endif
|
2013-05-02 10:32:35 +00:00
|
|
|
%endif
|
2013-06-30 09:51:22 +00:00
|
|
|
--enable-extra-versioning \
|
2012-03-17 13:20:10 +00:00
|
|
|
--swig-languages=python
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2012-11-30 11:01:04 +00:00
|
|
|
install -Dpm 0644 docs/melt.1 %{buildroot}%{_mandir}/man1/melt%{soname}.1
|
|
|
|
ln -s melt%{soname}.1 %{buildroot}%{_mandir}/man1/melt.1
|
2012-03-17 13:20:10 +00:00
|
|
|
install -Dpm 0644 src/swig/python/_%{_name}.so '%{buildroot}%{python_sitearch}/_%{_name}.so'
|
2012-08-07 22:45:04 +00:00
|
|
|
install -Dpm 0644 src/swig/python/%{_name}.py '%{buildroot}%{python_sitearch}/%{_name}.py'
|
2012-03-17 13:20:10 +00:00
|
|
|
|
2012-08-16 11:28:37 +00:00
|
|
|
# Get the modules that need data
|
|
|
|
for MODULE in %{buildroot}%{_libdir}/mlt-%{soname}/libmlt*.so; do
|
|
|
|
echo $MODULE
|
|
|
|
MODULEDIR=%{_datadir}/mlt-%{soname}/$(echo $MODULE | sed 's|%{buildroot}%{_libdir}/mlt-%{soname}/libmlt\(.*\).so|\1|')
|
|
|
|
echo $MODULEDIR
|
|
|
|
if [ -e %{buildroot}$MODULEDIR ]; then
|
|
|
|
echo Done $MODULEDIR
|
|
|
|
echo $MODULEDIR >> module_data.dirs
|
|
|
|
fi;
|
|
|
|
done
|
|
|
|
|
|
|
|
# Pure data modules
|
|
|
|
for MODULE in feeds lumas; do
|
|
|
|
echo %{_datadir}/mlt-%{soname}/$MODULE >> module_data.dirs
|
|
|
|
done
|
|
|
|
|
2013-06-30 09:51:22 +00:00
|
|
|
# Remove the unversioned symbolic links
|
|
|
|
rm -f %{buildroot}%{_libdir}/mlt
|
|
|
|
rm -f %{buildroot}%{_datadir}/mlt
|
2012-11-30 11:01:04 +00:00
|
|
|
|
2012-03-17 13:20:10 +00:00
|
|
|
%post -n %{libname}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{libname}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n %{libname_pp}%{soname_pp} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{libname_pp}%{soname_pp} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libname}%{soname}
|
|
|
|
%defattr(0644, root, root, 0755)
|
2012-06-18 16:04:35 +00:00
|
|
|
%doc AUTHORS ChangeLog COPYING GPL GPLv3 NEWS README
|
2012-03-17 13:20:10 +00:00
|
|
|
%{_libdir}/lib%{_name}.so.%{soname}
|
|
|
|
%{_libdir}/lib%{_name}.so.%{version}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%{_libdir}/lib%{_name}.so
|
|
|
|
%{_includedir}/%{_name}
|
|
|
|
%{_libdir}/pkgconfig/%{_name}-framework.pc
|
|
|
|
|
|
|
|
%files -n %{libname_pp}%{soname_pp}
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%{_libdir}/lib%{_name_pp}.so.%{soname_pp}
|
|
|
|
%{_libdir}/lib%{_name_pp}.so.%{version}
|
|
|
|
|
|
|
|
%files -n %{libname_pp}-devel
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%{_libdir}/lib%{_name_pp}.so
|
|
|
|
%{_includedir}/%{_name_pp}
|
|
|
|
%{_libdir}/pkgconfig/%{_name_pp}.pc
|
|
|
|
|
2012-11-30 11:01:04 +00:00
|
|
|
%files -n melt%{soname}
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%attr(0755, root, root) %{_bindir}/melt%{soname}
|
|
|
|
%{_mandir}/man1/melt%{soname}.1%{ext_man}
|
|
|
|
|
2012-03-17 13:20:10 +00:00
|
|
|
%files -n melt
|
|
|
|
%defattr(0644, root, root, 0755)
|
2014-11-11 11:38:40 +00:00
|
|
|
%{_bindir}/melt
|
2012-03-17 13:20:10 +00:00
|
|
|
%{_mandir}/man1/melt.1%{ext_man}
|
|
|
|
|
2012-08-16 11:28:37 +00:00
|
|
|
%files -n %{libname}%{soname}-modules -f module_data.dirs
|
2012-03-17 13:20:10 +00:00
|
|
|
%defattr(0644, root, root, 0755)
|
2012-08-07 22:45:04 +00:00
|
|
|
%{_libdir}/%{_name}-%{soname}/
|
2012-08-16 11:28:37 +00:00
|
|
|
%dir %{_datadir}/%{_name}-%{soname}/
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%files -n %{libname}%{soname}-data
|
|
|
|
%defattr(0644, root, root, 0755)
|
2012-08-16 11:28:37 +00:00
|
|
|
%dir %{_datadir}/%{_name}-%{soname}/
|
|
|
|
%{_datadir}/%{_name}-%{soname}/metaschema.yaml
|
|
|
|
%{_datadir}/%{_name}-%{soname}/profiles/
|
|
|
|
%{_datadir}/%{_name}-%{soname}/presets/
|
2014-11-11 11:38:40 +00:00
|
|
|
%if %{with vidstab}
|
2014-10-27 15:03:30 +00:00
|
|
|
%{_datadir}/%{_name}-%{soname}/vid.stab/
|
2014-11-11 11:38:40 +00:00
|
|
|
%endif
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%files -n python-%{_name}
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%{python_sitearch}/_%{_name}.so
|
2012-08-07 22:45:04 +00:00
|
|
|
%{python_sitearch}/%{_name}.py
|
2012-03-17 13:20:10 +00:00
|
|
|
|
|
|
|
%changelog
|