File mingw32-goffice.spec of Package mingw32-goffice

#
# spec file for package mingw32-goffice
#
# 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:           mingw32-goffice
Version:        0.8.17
Release:        0
Summary:        GOffice library
License:        LGPL-2.1-only
Group:          Development/Libraries
Url:            http://www.gnumeric.org/
Source:         http://ftp.gnome.org/pub/GNOME/sources/goffice/0.8/goffice-%{version}.tar.bz2
Patch0:         goffice-0.8.17-win32.patch
Patch1:         goffice-0.8.17-pcre16.patch
#!BuildIgnore: post-build-checks
BuildRequires:  glib2-devel
BuildRequires:  intltool
BuildRequires:  mingw32-atk-devel
BuildRequires:  mingw32-cairo-devel
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gtk2-devel
BuildRequires:  mingw32-libbz2-devel
BuildRequires:  mingw32-libgsf-devel
BuildRequires:  mingw32-libintl-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-pango-devel
BuildRequires:  mingw32-pcre-devel
BuildRequires:  mingw32-zlib-devel
Requires:       %{name}-lang = %{version}
%_mingw32_package_header_debug
BuildArch:      noarch
%if 0%{?suse_version} >= 1140
BuildRequires:  pcre-tools
%else
BuildRequires:  pcre
%endif

%description
A glib/gtk set of document centric objects and utilities.

%package -n mingw32-goffice-devel
Summary:        GOffice library (development files)
Group:          Development/Libraries

%description -n mingw32-goffice-devel
A glib/gtk set of document centric objects and utilities. (development files)

%_mingw32_debug_package

%lang_package

%prep
%setup -q -n goffice-%{version}
%patch -P 0 -p1 -b .win32
%patch -P 1 -p1 -b .pcre16

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
MINGW32_CFLAGS="%_mingw32_cflags -fcommon"
%{_mingw32_configure} \
	--disable-schemas-install \
	--without-gconf \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

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

rm -rf %{buildroot}%{_mingw32_libdir}/goffice/%{version}/plugins/*/*.dll.a

%find_lang goffice-%{version}

%files
%defattr(-,root,root)
%{_mingw32_bindir}/libgoffice-0.8-8.dll
%{_mingw32_libdir}/goffice
%{_mingw32_datadir}/goffice/%{version}
%{_mingw32_datadir}/pixmaps/goffice/%{version}

%files lang -f goffice-%{version}.lang
%defattr(-,root,root)

%files -n mingw32-goffice-devel
%defattr(-,root,root)
%{_mingw32_includedir}/libgoffice-0.8
%{_mingw32_libdir}/libgoffice-0.8.dll.a
%{_mingw32_libdir}/pkgconfig/libgoffice-0.8.pc
%{_mingw32_datadir}/gtk-doc/html/goffice-0.8

%changelog
openSUSE Build Service is sponsored by