libmlt/webvfx.spec

153 lines
4.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package webvfx
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define _name mlt
Accepting request 652058 from home:alois:branches:multimedia:libs - Update to version 6.12.0 Framework: * Changed buffer property to be mutable and adaptive to speed property in mlt_consumer. * Changed macOS RELOCATABLE build to use standard app bundle layout: + lib/mlt -> ../PlugIns/mlt + lib/frei0r-1 -> ../PlugIns/frei0r-1 + lib/ladspa -> ../PlugIns/ladspa + share/mlt -> ../Resources/mlt + share/movit -> ../Resources/movit * Fixed a_track of transitions matching deleted track in mlt_tractor_remove_track(). * Fixed multi-thread race crash in mlt_properties_clear(). * Fixed possiblle null pointer crash in mlt_property_get_rect() and mlt_property_get_time(). * Fixed non-animated strings containing ';' or '=' in mlt_animation_parse(). * Fixed crash in clear_property() with mlt_animation. Modules: * Added a generic text filter to the plus module. * Added a timer filter to the plus module. * Added audio timeout handling to sdl2 consumers. * Added spot_remove filter to the plus module. * Added dds, ico, and webp filename extensions for qimage producer. * Added support for color_range property in avformat consumer: "pc" or "jpeg" for full range, otherwise limited range. * Added a window property to the audiowaveform filter. * Added MM:SS.SS to the timer filter. * Added query string param "multi" to the xml producer to force using the multi consumer. * Improved WebP image support in avformat producer. * Integrated hwupload filter in avformat consumer if using VAAPI codec. * Changed count producer to use pango if qtext not available. * Changed qt moduled to not call XInitThreads() * Changed color producer to only set alpha on frame if rgb24a requested or not opaque. * Changed the xml producer to pass quality and performance parameters to the multi consumer. * Fixed sdl2_audio distortion (regression in v6.10.0). * Fixed dynamictext filter to not error on empty text. * Fixed dynamictext aliased (regression in v6.10.0). * Fixed qimage outputs premultiplied if scaled internally. * Fixed crash in cbrts consumer if running property was never set. * Fixed rendering edges of some typefaces in qtext producer. * Fixed qimage fails to load with wrong filename extension. * Fixed affine dark right and bottom edge artifacts regression in (v6.10.0). * Fixed support for vp8 and vp9 with alpha channel in avformat producer. * Fixed interpolation mode selection in qimage producer. * Fixed crash in qimage with alpha channel. * Fixed some AAC MP4 files start playing from middle in avformat producer. * Fixed crash in avfilter if initialization fails. * Fixed crash in mix when frame rate is very low. * Fixed crash on missing luma file in composite transition. * Fixed A/V sync on some files in avformat producer. * Fixed seeking on audio filter with album art in avformat producer. * Fixed colorspace conversion in avformat consumer. Other: * Added more avformat consumer presets: + alpha/Quicktime Animation + alpha/vp8 + alpha/vp9 + alpha/Ut Video + lossless/Ut Video * Added square video profiles: + square_1080p_30 + square_1080p_60 * Added support for nodejs to the swig bindings. * Changed configure script to require opencv module be explicitly enabled. * Numerous spelling fixes in source code and comments thanks to codespell. OBS-URL: https://build.opensuse.org/request/show/652058 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=99
2018-11-27 06:33:54 +00:00
%define mltversion 6.12.0
%define mltsoversion 6.12.0
%define sover 1
%define mltmaj %(echo %{mltversion} |cut -d "." -f 1)
# Find qt version used to build
%define qt5version %(pkg-config --modversion Qt5Core)
%define _rev d65a42d25a887d11fd5cf5e485c1561dc802b671
Name: webvfx
Version: 0.44+git20180223
Release: 0
Summary: Video effects engine based on web technologies
License: BSD-3-Clause
Group: Productivity/Multimedia/Video/Editors and Convertors
Url: https://github.com/mltframework/webvfx
Source0: %{_name}-%{mltversion}.tar.gz
# This is needed by shotcut and will only build within the mlt sources.
Source1: https://github.com/mltframework/webvfx/archive/%{_rev}.tar.gz#/webvfx-%{version}.tar.gz
# 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
#PATCH-FIX-UPSTREAM webvfx-versioned-libdir.patch davejplater@gmail.com -- install webvfx lib in versioned _libdir
Patch10: webvfx-versioned-libdir.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) >= 5.5.0
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(mlt++)
BuildRequires: pkgconfig(mlt-framework)
#Requires:
%description
WebVfx is a video effects library that allows effects to be
implemented using WebKit HTML or Qt QML.
%package -n libwebvfx%{sover}
Summary: Video effects engine based on web technologies
Group: System/Libraries
%description -n libwebvfx%{sover}
WebVfx is a video effects library that allows effects to be
implemented using WebKit HTML or Qt QML.
%package devel
Summary: Video effects engine based on web technologies
Group: Development/Libraries/C and C++
Requires: libwebvfx%{sover} = %{version}
Requires: pkgconfig(mlt-framework) = %{mltsoversion}
%description devel
WebVfx is a video effects library that allows effects to be
implemented using WebKit HTML or Qt QML. This package contains
the development library link.
%package module
Summary: Webvfx module for MLT
Group: Productivity/Multimedia/Video/Editors and Convertors
%description module
A module plugin for the MLT multimedia framework.
%package -n qmelt
Summary: A Melt that works with webvfx
Group: Productivity/Multimedia/Video/Editors and Convertors
%description -n qmelt
MLT is a 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 tools, XML authoring components, and an plug-in based API.
%prep
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
%setup -q -n %{_name}-%{mltversion} -a 1
%patch1
%patch10
%build
pushd webvfx-%{_rev}
%qmake5 \
QMAKE_STRIP="" \
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
MLT_SOURCE="%{_builddir}/%{_name}-%{mltversion}/" \
WLIB=%{_lib} \
PREFIX="%{_prefix}" -Wall -recursive
make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd webvfx-%{_rev}
%qmake5_install
chmod 0644 LICENSE README.md
popd
#Add webvfx module to versioned mlt module directory
mv %{buildroot}%{_libdir}/mlt %{buildroot}%{_libdir}/mlt-%{mltmaj}
chmod 0755 %{buildroot}%{_bindir}/*
#Create man pages for executables.
mkdir -p %{buildroot}%{_mandir}/man1
pushd %{buildroot}%{_bindir}
for i in *; do
help2man -N --no-discard-stderr -h "-help" -v "-version" ./${i} -o %{buildroot}%{_mandir}/man1/${i}.1 || touch %{buildroot}%{_mandir}/man1/${i}.1
done
popd
%post -n libwebvfx%{sover} -p /sbin/ldconfig
%postun -n libwebvfx%{sover} -p /sbin/ldconfig
%files
%{_bindir}/webvfx*
%{_mandir}/man1/webvfx*
%license webvfx-%{_rev}/LICENSE
%doc webvfx-%{_rev}/README.md
%files module
%defattr(0755, root, root, 0755)
%{_libdir}/mlt-%{mltmaj}/
%files -n libwebvfx%{sover}
%defattr(0755, root, root, 0755)
%{_libdir}/libwebvfx.so.*
%files devel
%defattr(0755, root, root, 0755)
%{_libdir}/libwebvfx.so
%files -n qmelt
%{_bindir}/qmelt
%{_mandir}/man1/qmelt*
%changelog