File gstreamer-sharp.spec of Package gstreamer-sharp

#
# spec file for package gstreamer-sharp (Version 0.9.2)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           gstreamer-sharp
Version:        1.4
Release:        0
License:        LGPL-2.1+
Group:          Development/Languages/Mono
Summary:        .NET/C# Bindings for GStreamer
Url:            https://github.com/gstreamer-sharp/gstreamer-sharp
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}-rpmlintrc
Source99:       _service
Patch0:         glib-sharp-version-req.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  gtk-sharp3-devel
BuildRequires:  gtk-sharp3-gapi-devel
BuildRequires:  glib2-devel >= 2.18
BuildRequires:  gstreamer-devel >= 1.4
BuildRequires:  gstreamer-plugins-base-devel >= 1.4
BuildRequires:  gstreamer-plugins-bad-devel >= 1.4
BuildRequires:  mono-devel >= 4.0
BuildRequires:  monodoc-core

Requires:       gstreamer >= 1.4
Requires:       gstreamer-plugins-base >= 1.4
Requires:       mono-core >= 4.0

%description
gstreamer-sharp is a .NET/mono binding for Gstreamer generated from gobject-introspection data.
gstreamer-sharp currently wraps the API exposed by Gstreamer 1.4 and is compatible with newer gstreamer versions.
It was developed under GSoC 2014 for the mono organization.
gstreamer-sharp covers the core and base gstreamer libraries.

%package devel
Group:          Development/Languages/Mono
Summary:        .NET/C# Bindings for GStreamer
Requires:       %{name} = %{version}

%description devel
Files for developing programs that use gstreamer-sharp

%package docs
Group:          Development/Languages/Mono
Summary:        .NET/C# Bindings for GStreamer
Requires:       %{name} = %{version}
BuildRequires:  monodoc-core

%description docs
Documentation for developers using gstreamer-sharp

%prep
%setup -q
%patch0 -p1

%build
%{?env_options}
mkdir -p m4
autoreconf -fiv --warnings=none -I . -I m4
%configure
make

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/libgstreamersharpglue-1.0.0.la
rm $RPM_BUILD_ROOT%{_libdir}/libgstreamersharpglue-1.0.0.a

%clean
rm -rf "$RPM_BUILD_ROOT"

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc ChangeLog NEWS COPYING AUTHORS README
%{_libdir}/libgstreamersharpglue-1.0.0.so
%dir %_prefix/lib/mono/gstreamer-sharp
%_prefix/lib/mono/gstreamer-sharp/gstreamer-sharp.dll
%dir %_prefix/lib/mono/gac/gstreamer-sharp
%dir %_prefix/lib/mono/gac/gstreamer-sharp/*
%_prefix/lib/mono/gac/gstreamer-sharp/*/*.dll*

%files docs
%defattr(-,root,root)
%_prefix/lib/monodoc/sources/gstreamer-sharp-docs.*

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/gstreamer-sharp-1.0.pc
%dir %_prefix/share/gapi-3.0
%_prefix/share/gapi-3.0/gstreamer-sharp-api.xml

%changelog
openSUSE Build Service is sponsored by