File mingw64-clutter-gst.spec of Package mingw64-clutter-gst

#
# spec file for package mingw64-clutter-gst
#
# 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-clutter-gst
Version:        1.6.0
Release:        0
Summary:        GStreamer integration for Clutter
License:        LGPL-2.1-or-later
Group:          Development/Libraries
Url:            http://clutter-gst-project.org/
Source:         http://www.clutter-project.org/sources/clutter-gst/1.3/clutter-gst-%{version}.tar.xz
Patch0:         clutter-gst-1.6.0-windows.patch
# Need native one too for  glib-genmarshal
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  glib2-devel
BuildRequires:  gtk-doc
BuildRequires:  libtool
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-clutter-devel >= 1.6.0
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-gst-0_10-plugins-base-devel
BuildRequires:  mingw64-gstreamer-0_10-devel
BuildRequires:  xz
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.

Clutter GStreamer enables the use of GStreamer with Clutter.

%package devel
Summary:        GStreamer integration for Clutter (Development)
Group:          Development/Libraries

%description devel
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.

Clutter GStreamer enables the use of GStreamer with Clutter.

%_mingw64_debug_package

%prep
%setup -q -n clutter-gst-%{version}

%patch -P 0 -p1 -b .windows

%build
gtkdocize
sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
	&& mv gtk-doc.temp gtk-doc.make
sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
	&& mv gtk-doc.temp gtk-doc.make
glib-gettextize -f
autoreconf -v --install --force
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
	--disable-static --enable-shared \
	--with-flavour=win32
make %{?_smp_mflags} || make

%install

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

%files
%defattr(-,root,root)
%{_mingw64_libdir}/gstreamer-0.10/libgstclutter.dll
%{_mingw64_bindir}/libclutter-gst-1.0-0.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/clutter-1.0/clutter-gst
%{_mingw64_libdir}/gstreamer-0.10/libgstclutter.dll.a
%{_mingw64_libdir}/libclutter-gst-1.0.dll.a
%{_mingw64_libdir}/pkgconfig/clutter-gst-1.0.pc
%{_mingw64_datadir}/gtk-doc/html/clutter-gst

%changelog
openSUSE Build Service is sponsored by