libmlt/webvfx.spec
Dave Plater a1748fdfe4 Accepting request 620326 from home:alois:branches:multimedia:libs
- Update to version 6.10.0
  * This version fixes bugs and supports serializing animation
    keyframes with a specified time format (previously only
    frame number).
  Framework:
  * Reverted mlt_pool change in v6.8.0 pending further testing. 
    (USE_MLT_POOL compiler define is now a 0/1 boolean, defaults
    to 1.)
  * Fixed crash regression in v6.8.0 "parsing non-animated
    string as an animation."
  * Added pointer checks to mlt_animation.
  * Changed producer cache size heuristic in mlt_multitrack to
    be more liberal.
  * Fixed handling reserved characters in names for YAML in
    mlt_properties.
  * Added clamping to prevent computing negative in and out
    points to mlt_producer.
  * Added functions to serialize animation with a time format:
    + mlt_animation_serialize_cut_tf()
    + mlt_animation_serialize_tf()
    + mlt_property_get_string_tf()
    + mlt_property_get_string_l_tf()
    + mlt_properties_get_value_tf()
    + Mlt::Properties::get(int, mlt_time_format)
    + Mlt::Animation::serialize_cut(mlt_time_format, int, int)
  * Added functions to clear a property to mlt_properties:
    + mlt_property_clear()
    + mlt_properties_clear()
    + Mlt::Properties::clear()
  Modules:
  * Fixed enabling sliced pix_fmt conversion in avformat
    producer.
  * Fixed incorrect seek and sync on audio files with discard
    packets.
  * Added support for avcodec_send_frame() API to avformat
    consumer.
  * Fixed compile errors with Libav master.
  * Fixed a crash in affine transition.
  * Fixed a crash in ladspa filters when consumer frame rate is
    low (e.g. <= 8).
  * Fixed a crash in boxblur filter.
  * Added animation support to boxblur hori and vert properties.
  * Fixed a crash in movit.convert.
  * Fixed incorrect alpha in affine transition blending routine.
  * Converted frei0r from deprecated mlt_geometry to
    mlt_animation API.
  * Fixed tilde in text string for pango producer.
  * Fixed using more than one channelcopy filter.
  * Fixed the mono filter reducing volume level.
  * Fixed degraded audio scrubbing in sdl2_audio consumer.
  * Converted dynamictext filter to use affine transition for
    more correct
    alpha compositing and sub-pixel positioning.
  * Added time format support for animation keyframes to the xml
    consumer.
  * Added animation support to more affine transition properties:
    + fix_rotate_x
    + fix_rotate_y
    + fix_rotate_z
    + fix_shear_x
    + fix_shear_y
    + fix_shear_z
    + ox
    + oy
    + scale_x
    + scale_y
  * Fixed gaps in text when characters overlap in qtext and
    kdenlive producers.
  * Fixed a crash in pixbuf producer with multiple render
    threads.
  * Converted the oldfilm vignette filter from mlt_geometry to
    mlt_animation.
  Other:
  * Numerous updates to mlt-xml.dtd.
  * Categorized many of the encode presets (using
    meta.preset.name).

OBS-URL: https://build.opensuse.org/request/show/620326
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=95
2018-07-03 07:02:49 +00:00

153 lines
4.9 KiB
RPMSpec

#
# 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
%define mltversion 6.10.0
%define mltsoversion 6.10.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
%setup -q -n %{_name}-%{mltversion} -a 1
%patch1
%patch10
%build
pushd webvfx-%{_rev}
%qmake5 \
QMAKE_STRIP="" \
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