File mingw64-wv.spec of Package mingw64-wv

#
# spec file for package mingw64-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:           mingw64-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:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-libwmf-devel
BuildRequires:  mingw64(pkg:glib-2.0)
BuildRequires:  mingw64(pkg:libgsf-1) >= 1.13.0
BuildRequires:  mingw64(pkg:libpng)
BuildRequires:  mingw64(pkg:libxml-2.0)
BuildRequires:  mingw64(pkg:zlib)
%_mingw64_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 mingw64-libwv-1-2-4
Summary:        Library for Importing  Microsoft Word (tm) Documents
Group:          System/Libraries
Obsoletes:      mingw64-libwv

%description -n mingw64-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 mingw64-libwv-devel
Summary:        Import Libraries and Header Files for wv
Group:          Development/Libraries/C and C++

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

%_mingw64_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'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--with-zlib=%{_mingw64_prefix} --with-png=%{_mingw64_prefix} \
	--with-png=%{_mingw64_prefix} --with-libwmf=%{_mingw64_prefix}
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install

%{_mingw64_make} DESTDIR=%{buildroot} install

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

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

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

%files -n mingw64-libwv-devel
%defattr(-,root,root)
%{_mingw64_includedir}/wv
%{_mingw64_libdir}/libwv.dll.a
%{_mingw64_libdir}/pkgconfig/wv-1.0.pc

%changelog
openSUSE Build Service is sponsored by