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

#
# spec file for package mingw64-clutter-gtk
#
# 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-gtk
Version:        0.10.8
Release:        0
Summary:        GTK+ integration for Clutter
License:        LGPL-2.1-or-later
Group:          Development/Libraries
Url:            http://clutter-project.org/
Source:         http://www.clutter-project.org/sources/clutter-gtk/1.0/clutter-gtk-%{version}.tar.bz2
Patch0:         clutter-gtk-0.10.8-win32.patch
Patch1:         clutter-gtk-0.10.8-gthread.patch
# Native version for glib-genmarshal
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  glib2-devel
#!BuildIgnore: post-build-checks
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  mingw64-clutter-devel
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-gtk2-devel
%_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 GTK+ enables the use of GTK+ with Clutter.

%package devel
Summary:        GTK+ integration for Clutter - Development Files
Group:          Development/Libraries

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

Clutter GTK+ enables the use of GTK+ with Clutter.

%_mingw64_debug_package

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

%patch -P 0 -p1 -b .win32
%patch -P 1 -p1 -b .gthread

%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
libtoolize --force --copy --install
autoreconf -v --force --install
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} V=1 || make V=1

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

%files
%defattr(-,root,root)
%{_mingw64_bindir}/libclutter-gtk-0.10-0.dll

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

%changelog
openSUSE Build Service is sponsored by