File mingw64-libwpd.spec of Package mingw64-libwpd

#
# spec file for package mingw64-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:           mingw64-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:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-librevenge-devel
BuildRequires:  xz
%_mingw64_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 mingw64-libwpd-0_10
Summary:        MinGW Windows port of the WordPerfect Document library
Group:          System/Libraries
Obsoletes:      mingw64-libwpd

%description -n mingw64-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.

%_mingw64_debug_package

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

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

%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

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

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

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

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

%changelog
openSUSE Build Service is sponsored by