Accepting request 585444 from multimedia:libs

OBS-URL: https://build.opensuse.org/request/show/585444
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmlt?expand=0&rev=37
This commit is contained in:
Dominique Leuenberger 2018-03-12 11:12:18 +00:00 committed by Git OBS Bridge
commit 293bdf31d3
3 changed files with 11 additions and 14 deletions

View File

@ -72,6 +72,7 @@ BuildRequires: pkgconfig(libquicktime)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(movit)
BuildRequires: pkgconfig(opencv) >= 3.1.0
#!BuildIgnore: opencv-qt5-devel
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(samplerate)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Mar 11 10:58:37 UTC 2018 - davejplater@gmail.com
- Fix Leap:15.0 build and run spec-cleaner.
-------------------------------------------------------------------
Wed Jan 24 14:20:40 UTC 2018 - davejplater@gmail.com

View File

@ -20,12 +20,9 @@
%define mltversion 6.6.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 e918ce4667e623c3d60735cb898223e730c6d7af
Name: webvfx
Version: 0.44+git20160823
Release: 0
@ -43,19 +40,15 @@ Patch10: webvfx-versioned-libdir.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: pkg-config
BuildRequires: pkgconfig
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
@ -72,8 +65,8 @@ implemented using WebKit HTML or Qt QML.
%package devel
Summary: Video effects engine based on web technologies
Group: Development/Libraries/C and C++
Requires: libmlt-devel = %{mltversion}
Requires: libwebvfx%{sover} = %{version}
Requires: pkgconfig(mlt-framework) = %{mltversion}
%description devel
WebVfx is a video effects library that allows effects to be
@ -111,12 +104,13 @@ pushd webvfx-%{_rev}
WLIB=%{_lib} \
PREFIX="%{_prefix}" -Wall -recursive
make %{_smp_mflags} VERBOSE=1
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}
@ -125,16 +119,14 @@ chmod 0755 %{buildroot}%{_bindir}/*
mkdir -p %{buildroot}%{_mandir}/man1
pushd %{buildroot}%{_bindir}
for i in *; do
help2man -N --no-discard-stderr ./${i} -o %{buildroot}%{_mandir}/man1/${i}.1
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
%defattr(0755, root, root, 0755)
%{_bindir}/webvfx*
%{_mandir}/man1/webvfx*
%license webvfx-%{_rev}/LICENSE
@ -153,7 +145,6 @@ popd
%{_libdir}/libwebvfx.so
%files -n qmelt
%defattr(0755, root, root, 0755)
%{_bindir}/qmelt
%{_mandir}/man1/qmelt*