File mingw32-farstream.spec of Package mingw32-farstream

#
# spec file for package mingw32-farstream
#
# 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:           mingw32-farstream
Version:        0.1.2
Release:        0
Summary:        Farstream - Audio/Video Communications Framework
License:        LGPL-2.1-or-later
Group:          Development/Libraries
Url:            http://www.freedesktop.org/wiki/Software/Farstream/
Source0:        farstream-%{version}.tar.gz
Patch0:         farstream-0.1.2.patch
Patch1:         make43.patch
#!BuildIgnore: post-build-checks
# I have no idea what dependencies should be here
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  glib2-devel
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-glib2-devel >= 2.8.3
BuildRequires:  mingw32-gst-0_10-plugins-base-devel >= 0.10.33
BuildRequires:  mingw32-gstreamer-0_10-devel >= 0.10.33
BuildRequires:  mingw32-libnice-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  python
%_mingw32_package_header_debug
BuildArch:      noarch

%description
The Farstream (formerly Farsight) project is an effort to create a
framework to deal with all known audio/video conferencing protocols. On
one side it offers a generic API that makes it possible to write
plugins for different streaming protocols, on the other side it offers
an API for clients to use those plugins.

%package devel
Summary:        Farstream - Audio/Video Communications Framework (development files)
Group:          Development/Libraries

%description devel
The Farstream (formerly Farsight) project is an effort to create a
framework to deal with all known audio/video conferencing protocols. On
one side it offers a generic API that makes it possible to write
plugins for different streaming protocols, on the other side it offers
an API for clients to use those plugins.

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

%lang_package

%_mingw32_debug_package

%prep
%setup -q -n farstream-%{version}
%patch -P 0
%patch -P 1 -p1

%build
NOCONFIGURE=indeed ./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH"; export PATH; \
%{_mingw32_configure} \
	--enable-shared --disable-static --disable-python
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install

%{_mingw32_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw32_libdir}/farstream-0.1/*.dll.a
rm -f %{buildroot}%{_mingw32_libdir}/gstreamer-0.10/*.dll.a

%files
%defattr(-,root,root)
%{_mingw32_bindir}/libfarstream-0.1-0.dll
%{_mingw32_libdir}/farstream-0.1/libmulticast-transmitter.dll
%{_mingw32_libdir}/farstream-0.1/libnice-transmitter.dll
%{_mingw32_libdir}/farstream-0.1/librawudp-transmitter.dll
%{_mingw32_libdir}/farstream-0.1/libshm-transmitter.dll
%{_mingw32_libdir}/gstreamer-0.10/libfsfunnel.dll
%{_mingw32_libdir}/gstreamer-0.10/libfsmsnconference.dll
%{_mingw32_libdir}/gstreamer-0.10/libfsrawconference.dll
%{_mingw32_libdir}/gstreamer-0.10/libfsrtcpfilter.dll
%{_mingw32_libdir}/gstreamer-0.10/libfsrtpconference.dll
%{_mingw32_libdir}/gstreamer-0.10/libfsvideoanyrate.dll
%{_mingw32_datadir}/farstream/0.1/fsrawconference
%{_mingw32_datadir}/farstream/0.1/fsrtpconference

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/farstream-0.1
%{_mingw32_libdir}/libfarstream-0.1.dll.a
%{_mingw32_libdir}/pkgconfig/farstream-0.1.pc
%{_mingw32_datadir}/gtk-doc/html/farstream-libs-0.10
%{_mingw32_datadir}/gtk-doc/html/farstream-plugins-0.1

%changelog
openSUSE Build Service is sponsored by