File mingw64-libodfgen.spec of Package mingw64-libodfgen
#
# spec file for package mingw64-libodfgen
#
# Copyright (c) 2017 SUSE LINUX 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-libodfgen
Version: 0.1.6
Release: 0
Summary: Library for importing and converting Corel WordPerfect(tm) Graphics images
License: LGPL-2.1-or-later and MPL-2.0+
Group: Development/Libraries/C and C++
Url: http://libwpd.sourceforge.net
Source: http://downloads.sourceforge.net/project/libwpd/libodfgen/libodfgen-%{version}/libodfgen-%{version}.tar.xz
BuildRequires: m4
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-librevenge-devel >= 0.0.0
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libodfgen is a general purpose library designed to generate ODF documents
from api calls to libwpd and libwpg libraries.
%package -n mingw64-libodfgen-0_1
Summary: Library for importing and converting Corel WordPerfect(tm) Graphics images
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libodfgen-0_1
libodfgen is a general purpose library designed to generate ODF documents
from api calls to libwpd and libwpg libraries.
%package devel
Summary: Library to generate ODF documents from libwpd's and libwpg's api calls
Group: Development/Libraries/C and C++
%description devel
libodfgen is a general purpose library designed to generate ODF documents
from api calls to libwpd and libwpg libraries.
%_mingw64_debug_package
%prep
%setup -q -n libodfgen-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-werror \
--with-sharedptr=boost
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libodfgen-0_1
%defattr(-,root,root)
%{_mingw64_bindir}/libodfgen-0.1.dll
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libodfgen*.dll.a
%{_mingw64_libdir}/pkgconfig/libodfgen*.pc
%{_mingw64_includedir}/libodfgen-*/libodfgen
%changelog