File mingw64-gstreamer-0_10-sharp.spec of Package mingw64-gstreamer-0_10-sharp

#
# spec file for package mingw64-gstreamer-0_10-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:           mingw64-gstreamer-0_10-sharp
Version:        0.9.2.1
Release:        0
Summary:        GStreamer bindings
License:        LGPL-2.1-only
Group:          Development/Languages/Mono
Url:            http://gstreamer.freedesktop.org/
# Tarball was produced by running 'make dist-bzip2' on a git clone on commit 9713ead7
Source:         http://gstreamer.freedesktop.org/src/gstreamer-sharp/gstreamer-sharp-%{version}.tar.bz2
Patch0:         gstreamer-sharp-0.9.2.1-quickfix.patch
Patch1:         gstreamer-sharp-0.9.2.1-glib-include.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  glib2-devel
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-gnome-vfs2-devel
BuildRequires:  mingw64-gst-0_10-plugins-base-devel >= 0.10.30
BuildRequires:  mingw64-gstreamer-0_10-devel >= 0.10.30
BuildRequires:  mono-devel >= 2.4
%_mingw64_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.

%_mingw64_debug_package

%prep
%setup -q -n gstreamer-sharp-%{version}
%patch -P 0 -p1
%patch -P 1 -p1
# 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
export PATH="%{_mingw64_bindir}:$PATH"
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
# Adjust the PKG_CONFIG_PATH so non-mingw mono can be found/used
%{_mingw64_configure} \
	PKG_CONFIG_PATH=%{_mingw64_libdir}/pkgconfig:%{_mingw64_datadir}/pkgconfig:%{_datadir}/pkgconfig:%{_libdir}/pkgconfig \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

mkdir -p %{buildroot}%{_mingw64_bindir}
mv %{buildroot}%{_mingw64_libdir}/libgstreamersharpglue-0.10.dll %{buildroot}%{_mingw64_bindir}/gstreamersharpglue-0.10-0.dll
rm -rf %{buildroot}%{_mingw64_libdir}/*.dll.a

rm -rf %{buildroot}%{_mingw64_datadir}/gapi-2.0

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

%changelog
openSUSE Build Service is sponsored by