File mingw64-libwps.spec of Package mingw64-libwps
#
# spec file for package mingw64-libwps
#
# 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-libwps
Version: 0.4.2
Release: 0
Summary: Library for importing the Microsoft Works word processor file format
License: LGPL-2.1-or-later and MPL-2.0+
Group: Development/Libraries/C and C++
Url: http://libwps.sourceforge.net/
Source: http://downloads.sourceforge.net/project/libwps/libwps/libwps-%{version}/libwps-%{version}.tar.xz
BuildRequires: autoconf >= 2.65
BuildRequires: automake >= 1.11
BuildRequires: libtool >= 2
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config >= 0.20
BuildRequires: mingw64(pkg:librevenge-0.0)
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libwps is a library (for use by word procesors, for example) for
importing the Microsoft Works word processor file format.
%package -n mingw64-libwps-0_4
Summary: MinGW Windows port of the Works Document library
Group: System/Libraries
Obsoletes: mingw64-libwps
%description -n mingw64-libwps-0_4
libwps is a library (for use by word procesors, for example) for
importing the Microsoft Works word processor file format.
%package tools
Summary: Tools for converting the Microsoft Works word processor file format
Group: Productivity/Publishing/Word
%description tools
Tools to work with the Microsoft Works word processor file format,
based on libwps.
%package devel
Summary: Files for Developing with libwps
Group: Development/Libraries/C and C++
%description devel
libwps is a library (for use by word procesors, for example) for
importing the Microsoft Works word processor file format.
This package contains the libwps development files.
%_mingw64_debug_package
%prep
%setup -q -n libwps-%{version}
%build
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--without-docs --disable-werror
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libwps-0_4
%defattr(-,root,root)
%{_mingw64_bindir}/libwps-0.4.dll
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/w?s2*.exe
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libwps-*.dll.a
%{_mingw64_libdir}/pkgconfig/libwps-*.pc
%{_mingw64_includedir}/libwps-*/libwps
%changelog