File mingw32-wv.spec of Package mingw32-wv

#
# spec file for package mingw32-wv
#
# 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-wv
Version:        1.2.9
Release:        0
Summary:        Tools for Importing  Microsoft Word (tm) Documents
License:        GPL-2.0-or-later and LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://wvWare.sourceforge.net
Source0:        http://www.abisource.com/downloads/wv/%{version}/wv-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-libwmf-devel
BuildRequires:  mingw32(pkg:glib-2.0)
BuildRequires:  mingw32(pkg:libgsf-1) >= 1.13.0
BuildRequires:  mingw32(pkg:libpng)
BuildRequires:  mingw32(pkg:libxml-2.0)
BuildRequires:  mingw32(pkg:zlib)
%_mingw32_package_header_debug
BuildArch:      noarch

%description
WV is a program that can understand the Microsoft Word 8 binary file
format (Office97). It currently converts Word into HTML, which can then
be read with a web browser.

%package -n mingw32-libwv-1-2-4
Summary:        Library for Importing  Microsoft Word (tm) Documents
Group:          System/Libraries
Obsoletes:      mingw32-libwv

%description -n mingw32-libwv-1-2-4
WV is a program that can understand the Microsoft Word 8 binary file
format (Office97). It currently converts Word into HTML, which can then
be read with a web browser.

%package -n mingw32-libwv-devel
Summary:        Import Libraries and Header Files for wv
Group:          Development/Libraries/C and C++

%description -n mingw32-libwv-devel
This package provides the import libraries and header files for
wv.

%_mingw32_debug_package

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

%build
chmod +x autogen.sh
NOCONFIGURE=indeed ./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--with-zlib=%{_mingw32_prefix} --with-png=%{_mingw32_prefix} \
	--with-png=%{_mingw32_prefix} --with-libwmf=%{_mingw32_prefix}
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install

%{_mingw32_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw32_bindir}/libwv.dll

%files
%defattr(-,root,root)
%{_mingw32_bindir}/wvWare.exe
%{_mingw32_bindir}/wvRTF.exe
%{_mingw32_bindir}/wvConvert.exe
%{_mingw32_bindir}/wvVersion.exe
%{_mingw32_bindir}/wvSummary.exe
%{_mingw32_bindir}/wvCleanLatex
%{_mingw32_bindir}/wvHtml
%{_mingw32_bindir}/wvDocBook
%{_mingw32_bindir}/wvAbw
%{_mingw32_bindir}/wvMime
%{_mingw32_bindir}/wvPS
%{_mingw32_bindir}/wvDVI
%{_mingw32_bindir}/wvLatex
%{_mingw32_bindir}/wvPDF
%{_mingw32_bindir}/wvText
%{_mingw32_bindir}/wvWml
%{_mingw32_mandir}/man1/wvAbw.1*
%{_mingw32_mandir}/man1/wvCleanLatex.1*
%{_mingw32_mandir}/man1/wvDVI.1*
%{_mingw32_mandir}/man1/wvHtml.1*
%{_mingw32_mandir}/man1/wvLatex.1*
%{_mingw32_mandir}/man1/wvMime.1*
%{_mingw32_mandir}/man1/wvPDF.1*
%{_mingw32_mandir}/man1/wvPS.1*
%{_mingw32_mandir}/man1/wvRTF.1*
%{_mingw32_mandir}/man1/wvSummary.1*
%{_mingw32_mandir}/man1/wvText.1*
%{_mingw32_mandir}/man1/wvVersion.1*
%{_mingw32_mandir}/man1/wvWare.1*
%{_mingw32_mandir}/man1/wvWml.1*
%{_mingw32_datadir}/wv

%files -n mingw32-libwv-1-2-4
%defattr(-,root,root)
%{_mingw32_bindir}/libwv-1-2-4.dll

%files -n mingw32-libwv-devel
%defattr(-,root,root)
%{_mingw32_includedir}/wv
%{_mingw32_libdir}/libwv.dll.a
%{_mingw32_libdir}/pkgconfig/wv-1.0.pc

%changelog
openSUSE Build Service is sponsored by