File mingw64-libgdata.spec of Package mingw64-libgdata

#
# spec file for package mingw64-libgdata
#
# 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/
#


%_mingw64_package_header_debug
Name:           mingw64-libgdata
Version:        0.8.1
Release:        0
Summary:        GLib-based library for accessing online service APIs using the GData protocol
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://developer.gnome.org/projects/gap/

Source:         http://download.gnome.org/sources/libgdata/0.8/libgdata-%{version}.tar.bz2
# Need native one too for msgfmt
BuildRequires:  gettext-runtime
# Need native one too for  glib-genmarshal
BuildRequires:  glib2-devel
BuildRequires:  intltool
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-gettext-tools
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-libsoup-devel
BuildRequires:  mingw64-libxml2-devel
BuildRequires:  mingw64-win_iconv-devel
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol \u2014 most notably, Google's services. It provides APIs
to access the common Google services, and has full asynchronous support.

%package -n mingw64-libgdata11
Summary:        GLib-based library for accessing online service APIs using the GData protocol
Group:          System/Libraries
Provides:       %name
Obsoletes:      %name

%description -n mingw64-libgdata11
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol \u2014 most notably, Google's services. It provides APIs
to access the common Google services, and has full asynchronous support.

%package devel
Summary:        GLib-based library for accessing online service APIs using the GData protocol
Group:          Development/Libraries/C and C++

%description devel
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol \u2014 most notably, Google's services. It provides APIs
to access the common Google services, and has full asynchronous support.

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n libgdata-%{version}

%build
PATH="%{_mingw64_bindir}:$PATH" \
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--disable-gnome
make %{?_smp_mflags} || make

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

%files -n mingw64-libgdata11
%defattr(-,root,root)
%{_mingw64_bindir}/libgdata-11.dll

%files lang -f gdata.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libgdata/gdata/
%{_mingw64_libdir}/libgdata.dll.a
%{_mingw64_libdir}/pkgconfig/libgdata.pc
%{_mingw64_datadir}/gtk-doc/html/gdata/

%changelog
openSUSE Build Service is sponsored by