File vapoursynth-f3kdb.spec of Package vapoursynth-f3kdb

#
# spec file for package vapoursynth-f3kdb
#
# 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-f3kdb
Version:	2.0.01~git20190701T075230
Release:	0
License:	GPL-3.0
Summary:	A deband library and filter for VapourSynth
Url:		https://github.com/SAPikachu/flash3kyuu_deband
Group:		Productivity/Graphics/Bitmap Editors
Source:		https://github.com/SAPikachu/flash3kyuu_deband/archive/%{version}.tar.xz#/%{name}-%{version}.tar.xz
BuildRequires:	vapoursynth-devel python python3 gcc-c++
Requires:	vapoursynth
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
f3kdb (a.k.a. flash3kyuu_deband) is a deband library and Avisynth / Vapoursynth
filter, ported from an aviutl plugin.

It works by replacing banded pixels with average value of referenced pixels,
and optionally add grain (random dithering) to them.

%package devel
Summary:	Development headers for VapourSynth-f3kdb
Requires:	%{name} = %{version}

%description devel
f3kdb (a.k.a. flash3kyuu_deband) is a deband library and Avisynth / Vapoursynth
filter, ported from an aviutl plugin.

It works by replacing banded pixels with average value of referenced pixels,
and optionally add grain (random dithering) to them.

This package provides development headers for VapourSynth-f3kdb

%prep
%setup -q

%build
myopts="--no-static"
./waf configure \
  --prefix="%{_prefix}"              \
  --bindir="%{_bindir}"              \
  --libdir="%{_libdir}"              \
  ${myopts}
./waf build --verbose %{?_smp_mflags}
%install
./waf install --destdir=%{buildroot}  %{?_smp_mflags}
mkdir -p %{buildroot}%{_libdir}/vapoursynth
mv %{buildroot}%{_libdir}/libf3kdb.so %{buildroot}%{_libdir}/vapoursynth/

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc license.txt README.md docs/
%{_libdir}/vapoursynth

%files devel
%defattr(-,root,root)
%{_includedir}/f3kdb

openSUSE Build Service is sponsored by