File gnonlin.spec of Package gnonlin

#
# spec file for package gnonlin
#
# Copyright (c) 2014 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:           gnonlin
Version:        1.4.0
Release:        0
%define gst_branch 1.0
Summary:        Non-liner 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
BuildRequires:  gtk-doc
# Needed to build the docs
BuildRequires:  python-xml
%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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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-liner audio and video support for GStreamer
Group:          Productivity/Multimedia/Other
Provides:       %{name} = %{version}

%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.

%package -n gstreamer-plugin-gnonlin-doc
Summary:        Non-liner audio and video support for GStreamer -- Documentation
Group:          Documentation/Other
Requires:       gstreamer-plugin-gnonlin = %{version}

%description -n gstreamer-plugin-gnonlin-doc
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 \
        --enable-gtk-doc
%__make %{?_smp_mflags} V=1

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

%clean
rm -rf %{buildroot}

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

%files -n gstreamer-plugin-gnonlin-doc
%defattr(-, root, root)
%doc %{_datadir}/gtk-doc/html/gnonlin-1.0/

%changelog