File gnonlin.spec of Package gnonlin

#
# spec file for package gnonlin
#
# 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:           gnonlin
Version:        1.4.0
Release:        0
%define gst_branch 1.0
Summary:        Non-linear audio and video support for GStreamer
License:        LGPL-2.1+
Group:          Productivity/Multimedia/Other
Url:            http://gstreamer.freedesktop.org/
Source:         http://gstreamer.freedesktop.org/src/gnonlin/%{name}-%{version}.tar.xz
Source1000:     baselibs.conf
BuildRequires:  gstreamer-plugins-base-devel >= 1.4.0
%define gnonlin_req %(zgrep --text "^GST.*_REQ" %{S:0} | sort -u | sed 's/GST_REQ=/gstreamer >= /;s/GSTPB_REQ=/gstreamer-plugins-base >= /' | tr '\\n' ' ')
Requires:       %gnonlin_req

%description
Gnonlin is a library built on top of GStreamer, which provides support
for writing non-linear audio and video editing applications. It
introduces the concept of a timeline.

%package -n gstreamer-plugin-gnonlin
Summary:        Non-linear audio and video support for GStreamer
Group:          Productivity/Multimedia/Other
Provides:       %{name} = %{version}
Obsoletes:      gstreamer-plugin-gnonlin-doc <= 1.4.0

%description -n gstreamer-plugin-gnonlin
Gnonlin is a library built on top of GStreamer, which provides support
for writing non-linear audio and video editing applications. It
introduces the concept of a timeline.

%prep
chmod 0644 %{S:0}
%setup -q

%build
%configure\
        --disable-static
%__make %{?_smp_mflags} V=1

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete -print

%files -n gstreamer-plugin-gnonlin
%doc AUTHORS ChangeLog COPYING NEWS README RELEASE REQUIREMENTS
%{_libdir}/gstreamer-%{gst_branch}/libgnl.so

%changelog
openSUSE Build Service is sponsored by