File gstreamer-transcoder.spec of Package gstreamer-transcoder

# spec file for package gstreamer-transcoder
# Copyright (c) 2019 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

%define _name   gst-transcoder
Name:           gstreamer-transcoder
Version:        1.16.0
Release:        0
Summary:        GStreamer Transcoding API
License:        LGPL-2.1-only
Group:          Productivity/Multimedia/Other

BuildRequires:  gtk-doc
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gstreamer-pbutils-1.0) >= 1.15.0

GStreamer Transcoding API.
Used by Pitvi currently.

%package -n libgsttranscoder-1_0-0
Summary:        GStreamer Transcoder API
Group:          System/Libraries

%description -n libgsttranscoder-1_0-0
This subpackage contains the implementation of the GStreamer API.

%package -n typelib-1_0-GstTranscoder-1_0
Summary:        Introspection bindings for the GStreamer Transcoder API
Group:          System/Libraries

%description -n typelib-1_0-GstTranscoder-1_0
This subpackage contains the introspection bindings for the GStreamer Transcoding API.

%package devel
Summary:        Development files for the GStreamer Transcoding API
Group:          Development/Languages/C and C++
Requires:       %{name} = %{version}
# Needed due to gh#pitivi/gst-transcoder#4
Requires:       gstreamer-devel
Requires:       libgsttranscoder-1_0-0 = %{version}
Requires:       typelib-1_0-GstTranscoder-1_0 = %{version}

%description devel
This subpackage contains the header files needed to build applications
making use of the GStreamer Transcoding API.

%setup -q -n %{_name}-%{version}

%meson \
	-Ddisable_doc=false \
	-Ddisable_introspection=false \


%post -n libgsttranscoder-1_0-0 -p /sbin/ldconfig
%postun -n libgsttranscoder-1_0-0 -p /sbin/ldconfig

%license LICENSE

%files -n libgsttranscoder-1_0-0

%files -n typelib-1_0-GstTranscoder-1_0

%files devel
%doc %{_datadir}/gtk-doc/html/gstreamer-transcoder/