Accepting request 502647 from home:plater

Add linked webvfx package

OBS-URL: https://build.opensuse.org/request/show/502647
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=68
This commit is contained in:
Dave Plater 2017-06-09 14:28:25 +00:00 committed by Git OBS Bridge
parent 1fb17ac2b2
commit fc702c699f
7 changed files with 176 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jun 9 14:06:51 UTC 2017 - davejplater@gmail.com
- Added files for linked package webvfx which provides qmelt needed
by shotcut for video export see boo#1043070. Webvfx has to build
within the mlt sources.
-------------------------------------------------------------------
Tue Feb 21 21:30:37 UTC 2017 - mrueckert@suse.de

View File

@ -38,7 +38,7 @@ Summary: Multimedia framework designed and developed for television broad
License: GPL-3.0+
Group: System/Libraries
Url: http://www.mltframework.org
Source0: https://github.com/mltframework/mlt/archive/v%{version}.tar.gz
Source0: https://github.com/mltframework/mlt/archive/v%{version}.tar.gz#/%{_name}-%{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 use-recommended-freetype-include.patch -- Freetype upstream recommends using their macros together with

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86555a5e96a71a7b7d7cf6f80bf7a6fdb3bfbaa68742567400a69db2f6558a3e
size 239423

View File

@ -0,0 +1,11 @@
Index: webvfx-e918ce4667e623c3d60735cb898223e730c6d7af/webvfx/webvfx.pro
===================================================================
--- webvfx-e918ce4667e623c3d60735cb898223e730c6d7af/webvfx/webvfx.pro.orig 2016-08-23 20:36:10.000000000 +0200
+++ webvfx-e918ce4667e623c3d60735cb898223e730c6d7af/webvfx/webvfx.pro 2017-06-08 13:45:28.132171602 +0200
@@ -47,5 +47,5 @@ QT += opengl quick
TARGET = webvfx
-target.path = $$PREFIX/lib
+target.path = $$PREFIX/$$WLIB
INSTALLS += target

8
webvfx.changes Normal file
View File

@ -0,0 +1,8 @@
-------------------------------------------------------------------
Thu Jun 8 05:18:03 UTC 2017 - davejplater@gmail.com
- Created initial package version 0.44+git20160823 from current
git rev: e918ce4667e623c3d60735cb898223e730c6d7af needed by
shotcut. See boo#1043070
- Added webvfx-versioned-libdir.patch to enable arch dependent
library directory install

146
webvfx.spec Normal file
View File

@ -0,0 +1,146 @@
#
# spec file for package webvfx
#
# Copyright (c) 2017 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.4.1
%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 e918ce4667e623c3d60735cb898223e730c6d7af
Name: webvfx
Version: 0.44+git20160823
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-UPSTREAM webvfx-versioned-libdir.patch davejplater@gmail.com -- install webvfx lib in versioned _libdir
Patch4: webvfx-versioned-libdir.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig(Qt5Core) >= 5.5.0
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(mlt++)
BuildRequires: pkgconfig(mlt-framework)
#Requires:
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}
%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 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.
This version of melt works with webvfx
%prep
%setup -q -n %{_name}-%{mltversion} -a 1
%patch4
%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
popd
#Add webvfx module to versioned mlt module directory
mv %{buildroot}%{_libdir}/mlt %{buildroot}%{_libdir}/mlt-%{mltmaj}
chmod 0755 %{buildroot}%{_bindir}/*
%post -n libwebvfx%{sover} -p /sbin/ldconfig
%postun -n libwebvfx%{sover} -p /sbin/ldconfig
%files
%defattr(0755, root, root, 0755)
%{_bindir}/webvfx*
%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
%defattr(0755, root, root, 0755)
%{_bindir}/qmelt
%changelog