File mingw64-gst-plugins-bad.spec of Package mingw64-gst-plugins-bad

#
# spec file for package mingw64-gst-plugins-bad
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%_mingw64_package_header_debug
Name:           mingw64-gst-plugins-bad
Version:        1.14.5
Release:        0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
License:        LGPL-2.0-or-later
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Libraries
URL:            https://gstreamer.freedesktop.org/
Source0:        http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%{version}.tar.xz
Source1000:     %{name}-rpmlintrc
Patch0:         make43.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
%if %{?suse_version} >= 1599
BuildRequires:  gtk-doc
%endif
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-flac-devel
BuildRequires:  mingw64-glib2-devel >= 2.8.3
BuildRequires:  mingw64-gnome-vfs2-devel
BuildRequires:  mingw64-gst-plugins-base-devel >= 1.14.2
BuildRequires:  mingw64-gstreamer-devel >= 1.4.0
BuildRequires:  mingw64-libgcrypt-devel
BuildRequires:  mingw64-libgnurx-devel
BuildRequires:  mingw64-libneon-devel
BuildRequires:  mingw64-libnettle-devel
BuildRequires:  mingw64-libogg-devel
BuildRequires:  mingw64-liboil-devel >= 0.3.14
BuildRequires:  mingw64-libopenjpeg-devel
BuildRequires:  mingw64-librsvg-devel
BuildRequires:  mingw64-libsndfile-devel
BuildRequires:  mingw64-libsoup-devel
BuildRequires:  mingw64-libtheora-devel
BuildRequires:  mingw64-libvorbis-devel
BuildRequires:  xz
#!BuildIgnore:  post-build-checks
BuildArch:      noarch
%if 0%{?suse_version} >= 1500
BuildRequires:  python3
%else
BuildRequires:  python
%endif

%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)
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
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.

%lang_package

%_mingw64_debug_package

%prep
%setup -q -n gst-plugins-bad-%{version}
%patch -P 0 -p1

%build
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
export MINGW64_CFLAGS="%{_mingw64_cflags} -DHAVE_AUDCLNT_STREAMOPTIONS=1"
export PATH="%{_mingw64_bindir}:$PATH"
%_mingw64_configure \
	--enable-shared \
	--disable-static \
	--disable-wayland
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw64_libdir}/gstreamer-1.0/*.dll.a
rm -rf %{buildroot}%{_mingw64_datadir}/gtk-doc/html/gst-plugins-bad-plugins-1.0/

%find_lang gst-plugins-bad-1.0

%files
%{_mingw64_bindir}/libgst*.dll
%{_mingw64_libdir}/gstreamer-1.0/*.dll
%{_mingw64_datadir}/gstreamer-1.0/presets/GstFreeverb.prs

%files devel
%{_mingw64_libdir}/libgst*.dll.a
%{_mingw64_libdir}/pkgconfig/gstreamer-*.pc
%{_mingw64_includedir}/gstreamer-1.0/*
%{_mingw64_datadir}/gtk-doc/html/gst-plugins-bad-libs-1.0

%files lang -f gst-plugins-bad-1.0.lang

%changelog
openSUSE Build Service is sponsored by