File mingw64-gst-0_10-plugins-base.spec of Package mingw64-gst-0_10-plugins-base

#
# spec file for package mingw64-gst-0_10-plugins-base
#
# Copyright (c) 2018 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:           mingw64-gst-0_10-plugins-base
Version:        0.10.36
Release:        0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
License:        LGPL-2.0-or-later
Group:          Development/Libraries
Url:            http://gstreamer.freedesktop.org/
#http://gstreamer.freedesktop.org/src/gst-plugins-base/
Source0:        gst-plugins-base-%{version}.tar.xz
Patch0:         gst-plugins-base-0.10.28-gnomevfswin32.patch
Patch1:         gst-plugins-base-0.10.36-warnings.patch
Patch2:         0001-audioresample-Fix-build-on-x86-if-emmintrin.h-is-ava.patch
Patch3:         0001-audioresample-It-s-HAVE_EMMINTRIN_H-not-HAVE_XMMINTR.patch
Patch4:         make43.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  glib2-devel
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-glib2-devel >= 2.8.3
BuildRequires:  mingw64-gnome-vfs2-devel
BuildRequires:  mingw64-gstreamer-0_10-devel >= %{version}
BuildRequires:  mingw64-libgnurx-devel
BuildRequires:  mingw64-libogg-devel
BuildRequires:  mingw64-liboil-devel >= 0.3.14
BuildRequires:  mingw64-libtheora-devel
BuildRequires:  mingw64-libvorbis-devel
BuildRequires:  mingw64-pango-devel
BuildRequires:  python
BuildRequires:  xz
%_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.  Its plugin-based architecture means
that new data types or processing capabilities can be added simply by
installing new plug-ins.

%package devel
Summary:        GStreamer Streaming-Media Framework Plug-Ins (development files)
Group:          Development/Libraries

%description devel
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. Its plug-in-based architecture
means that new data types or processing capabilities can be added by
installing new plug-ins.

This package contains all necessary include files and libraries needed
to develop applications that require these.

%package -n mingw64-libgstinterfaces-0_10
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          Development/Libraries

%description -n mingw64-libgstinterfaces-0_10
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. Its plug-in-based architecture
means that new data types or processing capabilities can be added by
installing new plug-ins.

%lang_package

%_mingw64_debug_package

%prep
%setup -q -n gst-plugins-base-%{version}

%patch -P 0 -p1 -b .gnomevfswin32
%patch -P 1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1

%build
NOCONFIGURE=indeed ./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--disable-vorbistest --disable-freetypetest \
	--disable-examples --enable-experimental
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install

%{_mingw64_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw64_libdir}/gstreamer-0.10/*.dll.a

%find_lang gst-plugins-base-0.10

%files
%defattr(-,root,root)
%{_mingw64_libdir}/gstreamer-0.10/libgstadder.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstapp.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstaudioconvert.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstaudiorate.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstaudioresample.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstaudiotestsrc.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstdecodebin2.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstdecodebin.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstencodebin.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstffmpegcolorspace.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstgdp.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstgio.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstgnomevfs.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstogg.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstpango.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstplaybin.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstsubparse.dll
%{_mingw64_libdir}/gstreamer-0.10/libgsttheora.dll
%{_mingw64_libdir}/gstreamer-0.10/libgsttypefindfunctions.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstvideorate.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstvideoscale.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstvideotestsrc.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstvolume.dll
%{_mingw64_libdir}/gstreamer-0.10/libgstvorbis.dll
%{_mingw64_bindir}/gst-discoverer-0.10.exe
%{_mingw64_bindir}/gst-visualise-0.10
%{_mingw64_mandir}/man1/gst-visualise-0.10.1*

%files lang -f gst-plugins-base-0.10.lang
%defattr(-,root,root)

%files -n mingw64-libgstinterfaces-0_10
%defattr(-,root,root)
%{_mingw64_bindir}/libgstapp-0.10-0.dll
%{_mingw64_bindir}/libgstaudio-0.10-0.dll
%{_mingw64_bindir}/libgstcdda-0.10-0.dll
%{_mingw64_bindir}/libgstfft-0.10-0.dll
%{_mingw64_bindir}/libgstinterfaces-0.10-0.dll
%{_mingw64_bindir}/libgstnetbuffer-0.10-0.dll
%{_mingw64_bindir}/libgstpbutils-0.10-0.dll
%{_mingw64_bindir}/libgstriff-0.10-0.dll
%{_mingw64_bindir}/libgstrtp-0.10-0.dll
%{_mingw64_bindir}/libgstrtsp-0.10-0.dll
%{_mingw64_bindir}/libgstsdp-0.10-0.dll
%{_mingw64_bindir}/libgsttag-0.10-0.dll
%{_mingw64_bindir}/libgstvideo-0.10-0.dll

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libgstapp-0.10.dll.a
%{_mingw64_libdir}/libgstaudio-0.10.dll.a
%{_mingw64_libdir}/libgstcdda-0.10.dll.a
%{_mingw64_libdir}/libgstfft-0.10.dll.a
%{_mingw64_libdir}/libgstinterfaces-0.10.dll.a
%{_mingw64_libdir}/libgstnetbuffer-0.10.dll.a
%{_mingw64_libdir}/libgstpbutils-0.10.dll.a
%{_mingw64_libdir}/libgstriff-0.10.dll.a
%{_mingw64_libdir}/libgstrtp-0.10.dll.a
%{_mingw64_libdir}/libgstrtsp-0.10.dll.a
%{_mingw64_libdir}/libgstsdp-0.10.dll.a
%{_mingw64_libdir}/libgsttag-0.10.dll.a
%{_mingw64_libdir}/libgstvideo-0.10.dll.a
%{_mingw64_libdir}/pkgconfig/gstreamer-app-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-audio-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-cdda-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-fft-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-floatcast-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-interfaces-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-netbuffer-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-pbutils-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-plugins-base-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-riff-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-rtp-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-rtsp-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-sdp-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-tag-0.10.pc
%{_mingw64_libdir}/pkgconfig/gstreamer-video-0.10.pc
%{_mingw64_includedir}/gstreamer-0.10/gst
%{_mingw64_datadir}/gtk-doc/html/gst-plugins-base-libs-0.10
%{_mingw64_datadir}/gtk-doc/html/gst-plugins-base-plugins-0.10
%{_mingw64_datadir}/gst-plugins-base

%changelog
openSUSE Build Service is sponsored by