File vapoursynth-fmtconv.spec of Package vapoursynth-fmtconv

#
# spec file for package vapoursynth-fmtconv
#
# Copyright (c) 2016 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/
#

Name:           vapoursynth-fmtconv
Version:	r26
Release:	1
License:	GPL-2.0
Summary:	A format-conversion plugin for the Vapoursynth video processing engine
Url:		https://github.com/EleonoreMizo/fmtconv
Group:		Productivity/Graphics/Bitmap Editors
Source:		https://github.com/EleonoreMizo/fmtconv/archive/r%{version}.tar.gz#/fmtconv-%{version}.tar.gz
BuildRequires:	gcc-c++ yasm pkg-config automake autoconf libtool
BuildRequires:	vapoursynth-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Fmtconv is a format-conversion plugin for the Vapoursynth video processing engine. It does:
* Resizing.
* Bitdepth conversion with dithering.
* Colorspace conversion (matrix, transfer characteristics and chromatic adaptation).

It supports:
* Pixel data types: 8-–12-, 14- and 16-bit integer, 32-bit float.
* Colorspaces: RGB, Y, YUV in 4:4:4, 4:2:2, 4:2:0, 4:1:1 and YCgCo with the same chroma subsampling factors.
* Progressive and interlaced content.

Fmtconv is focussed primarily on quality and exactness rather than execution speed.
This does not mean it is slow or unoptimized, but fmtconv is clearly not on par with the fastest equivalent 8-bit filters.

%prep
%setup -q -n fmtconv-%{version}
rm -v src/VapourSynth.h

%build
cd ./build/unix
export CPPFLAGS="${CPPFLAGS} $(pkg-config --cflags vapoursynth)"
autoreconf -fi
%configure --libdir="%{_libdir}/vapoursynth"
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags} -C "build/unix"

%files
%defattr(-,root,root)
%{_libdir}/vapoursynth
openSUSE Build Service is sponsored by