File mingw64-goffice.spec of Package mingw64-goffice
#
# spec file for package mingw64-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: mingw64-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: mingw64-atk-devel
BuildRequires: mingw64-cairo-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: mingw64-libbz2-devel
BuildRequires: mingw64-libgsf-devel
BuildRequires: mingw64-libintl-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-pango-devel
BuildRequires: mingw64-pcre-devel
BuildRequires: mingw64-zlib-devel
Requires: %{name}-lang = %{version}
%_mingw64_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 mingw64-goffice-devel
Summary: GOffice library (development files)
Group: Development/Libraries
%description -n mingw64-goffice-devel
A glib/gtk set of document centric objects and utilities. (development files)
%_mingw64_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'" >>%{_mingw64_cache}
MINGW64_CFLAGS="%_mingw64_cflags -fcommon"
%{_mingw64_configure} \
--disable-schemas-install \
--without-gconf \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_mingw64_libdir}/goffice/%{version}/plugins/*/*.dll.a
%find_lang goffice-%{version}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/libgoffice-0.8-8.dll
%{_mingw64_libdir}/goffice
%{_mingw64_datadir}/goffice/%{version}
%{_mingw64_datadir}/pixmaps/goffice/%{version}
%files lang -f goffice-%{version}.lang
%defattr(-,root,root)
%files -n mingw64-goffice-devel
%defattr(-,root,root)
%{_mingw64_includedir}/libgoffice-0.8
%{_mingw64_libdir}/libgoffice-0.8.dll.a
%{_mingw64_libdir}/pkgconfig/libgoffice-0.8.pc
%{_mingw64_datadir}/gtk-doc/html/goffice-0.8
%changelog