File mingw32-libabw.spec of Package mingw32-libabw

#
# spec file for package mingw32-libabw
#
# 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-libabw
Version:        0.1.1
Release:        0
Summary:        Library for parsing the Abiword file format structure
License:        MPL-2.0
Group:          Development/Libraries/C and C++
Url:            http://www.freedesktop.org/wiki/Software/libabw
Source:         http://dev-www.libreoffice.org/src/libabw/libabw-%version.tar.xz
BuildRequires:  gperf
BuildRequires:  m4
BuildRequires:  mingw32-boost-devel
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-libicu-devel
BuildRequires:  mingw32-librevenge-devel >= 0.0.0
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  xz
%_mingw32_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
Libabw is library providing ability to interpret and import AbiWord documents
into various applications.

%package -n mingw32-libabw-0_1
Summary:        Library for parsing the Abiword file format structure
Group:          System/Libraries
Obsoletes:      %{name} < %{version}-%{release}
Provides:       %{name} = %{version}-%{release}

%description -n mingw32-libabw-0_1
Libabw is library providing ability to interpret and import AbiWord documents
into various applications.

%package tools
Summary:        Tools to work with documents in AbiWord file-format
Group:          Productivity/Publishing/Word

%description tools
This package contains tools to work with documents in AbiWord file-format.

%package devel
Summary:        Files for Developing with libabw
Group:          Development/Libraries/C and C++

%description devel
Libabw is library providing ability to interpret and import AbiWord documents
into various applications.

This package contains the libabw development files.

%_mingw32_debug_package

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

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

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

%install
%{_mingw32_make} DESTDIR=%{buildroot} install

%files -n mingw32-libabw-0_1
%defattr(-,root,root)
%{_mingw32_bindir}/libabw-0.1.dll

%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/abw2*.exe

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

%changelog
openSUSE Build Service is sponsored by