File frei0r-plugins.spec of Package frei0r-plugins

#
# spec file for package frei0r-plugins
#
# Copyright (c) 2013 SUSE LINUX Products 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:           frei0r-plugins
Version:        1.4
Release:        0
Summary:        Collection of video sources and filters plugins
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Editors and Convertors
Url:            http://www.piksel.org/frei0r
Source:         http://files.dyne.org/frei0r/releases/frei0r-plugins-%{version}.tar.gz
# PATCH-FIX-UPSTREAM frei0r-plugins-1.4-missing_include.patch http://www.piksel.no/projects/frei0r/ticket/41 reddwarf@opensuse.org -- Add missing header
Patch0:         frei0r-plugins-1.4-missing_include.patch
BuildRequires:  gcc-c++
# For the automatic pkgconfig() Provides
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(cairo) >= 1.0.0
BuildRequires:  pkgconfig(gavl) >= 0.2.3
BuildRequires:  pkgconfig(opencv) >= 1.0.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides a collection of video sources and filters plugins,
using the Frei0r API.

%package devel
Summary:        Frei0r plugin API for video sources and filters
Group:          Development/Libraries/C and C++
# No Requires on main subpackage as there is no dependency between the two

%description devel
Frei0r is a minimalistic plugin API for video sources and filters. The
behaviour of the effects can be controlled from the host by simple
parameters. The intent is to solve the recurring reimplementation or
adaptation issue of standard effects.

%prep
%setup -q
%patch0
# Timestamp problem. Remove in next release.
touch include/config.h.in

%build
%configure
make %{?_smp_mflags}

%install
%make_install
# we'll package the relevant files with %%doc
rm %{buildroot}%{_datadir}/doc/frei0r-plugins/{AUTHORS,ChangeLog,README,TODO}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/frei0r-1/

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/frei0r.pc
%{_includedir}/frei0r.h

%changelog