File mingw32-gstreamer-sharp.spec of Package mingw32-gstreamer-sharp

#
# spec file for package mingw32-gstreamer-sharp
#
# 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:           mingw32-gstreamer-sharp
Version:        1.20.4
Release:        0
Summary:        GStreamer bindings
License:        LGPL
Group:          Development/Languages/Mono
Url:            http://gstreamer.freedesktop.org/
Source:         http://gstreamer.freedesktop.org/src/gstreamer-sharp/gstreamer-sharp-%{version}.tar.xz
#Patch0:         gstreamer-sharp-0.9.2.1-quickfix.patch
#Patch1:         gstreamer-sharp-0.9.2.1-glib-include.patch
#!BuildIgnore: post-build-checks
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-meson
BuildRequires:  mingw32(pkg:glib-2.0)
BuildRequires:  mingw32(pkg:gnome-vfs-2.0) 
BuildRequires:  mingw32(pkg:gstreamer-plugins-base-1.0)
BuildRequires:  mingw32(pkg:gstreamer-1.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  mono-core
BuildRequires:  mono-devel >= 2.4
%_mingw32_package_header_debug
BuildArch:      noarch

%description
GStreamer is a streaming media framework, based on graphs of filters which operate on media data. Applications using
this library can do anything from real-time sound processing to playing videos, and just about anything else
media-related.

The GStreamer# bindings allow Mono/.Net programs to use GStreamer functionality.

%_mingw32_debug_package

%prep
%autosetup -p1 -n gstreamer-sharp-%{version}
# replace all *0.10.dll references with *0.10-0.dll
#find . -type f -exec sed -i 's/-0\.10\.dll/-0.10-0.dll/' '{}' ';'

%build
%_mingw32_meson
%_mingw32_meson_build

%install
%_mingw32_meson_install

# mkdir -p %{buildroot}%{_mingw32_bindir}
# mv %{buildroot}%{_mingw32_libdir}/libgstreamersharpglue-0.10.dll %{buildroot}%{_mingw32_bindir}/gstreamersharpglue-0.10-0.dll
# rm -rf %{buildroot}%{_mingw32_libdir}/*.dll.a
# 
# rm -rf %{buildroot}%{_mingw32_datadir}/gapi-2.0

%files
%defattr(-,root,root)
%{_mingw32_bindir}/gstreamersharpglue-0.10-0.dll
%{_mingw32_libdir}/mono/gac/gstreamer-sharp/*/gstreamer-sharp.dll
%{_mingw32_libdir}/mono/gac/gstreamer-sharp/*/gstreamer-sharp.dll.config
%{_mingw32_libdir}/mono/gstreamer-sharp-0.10/gstreamer-sharp.dll
%{_mingw32_libdir}/pkgconfig/gstreamer-sharp-0.10.pc

%changelog
openSUSE Build Service is sponsored by