File mingw32-libwpd.spec of Package mingw32-libwpd

#
# spec file for package mingw32-libwpd
#
# 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:           mingw32-libwpd
Version:        0.10.0
Release:        0
Summary:        Library for Importing WordPerfect (tm) Documents
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/libwpd/libwpd-%{version}/libwpd-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires:  m4
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-librevenge-devel
BuildRequires:  xz
%_mingw32_package_header_debug
BuildArch:      noarch

%description
libwpd is a general purpose library for reading or interpreting data
from WordPerfect files. The library is not a stand-alone utility: it is
designed to be used by another program (for example, a word processor)
as an in-process component.

%package -n mingw32-libwpd-0_10
Summary:        MinGW Windows port of the WordPerfect Document library
Group:          System/Libraries
Obsoletes:      mingw32-libwpd

%description -n mingw32-libwpd-0_10
libwpd is a general purpose library for reading or interpreting data
from WordPerfect files. The library is not a stand-alone utility: it is
designed to be used by another program (for example, a word processor)
as an in-process component.

%package tools
Summary:        Library for importing WordPerfect (tm) documents
Group:          Productivity/Publishing/Word

%description tools
Tools to transform WordPerfect Documents into other formats. Currently
supported: html, raw, text

%package devel
Summary:        Library for importing WordPerfect (tm) documents
Group:          Development/Libraries/C and C++

%description devel
libwpd is a general purpose library for reading (or, interpreting data
from) WordPerfect files. The library is not a stand-alone utility: it
is designed to be used by another program (e.g.: a word processor) as
an in-process component.

%_mingw32_debug_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--without-docs --disable-werror \
	--enable-shared --disable-static

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

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

%files -n mingw32-libwpd-0_10
%defattr(644,root,root,755)
%{_mingw32_bindir}/libwpd-0.10.dll

%files tools
%defattr(755,root,root,755)
%{_mingw32_bindir}/wpd2*.exe

%files devel
%defattr(644,root,root,755)
%{_mingw32_libdir}/libwpd*-*.dll.a
%{_mingw32_libdir}/pkgconfig/libwpd*-*.pc
%{_mingw32_includedir}/libwpd-*/libwpd

%changelog
openSUSE Build Service is sponsored by