File mingw32-libmspub.spec of Package mingw32-libmspub

#
# spec file for package mingw32-libmspub
#
# 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-libmspub
Version:        0.1.0
Release:        0
Summary:        Microsoft Publisher file format parser library
License:        MPL-2.0
Group:          Development/Libraries/C and C++
Url:            http://www.freedesktop.org/wiki/Software/libmspub
Source:         http://dev-www.libreoffice.org/src/libmspub-%{version}.tar.xz
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-zlib-devel
BuildRequires:  xz
%_mingw32_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
libmspub is a library for parsing the Corel Draw file format structure. It is
cross-platform, at the moment it can be build on Microsoft Windows and Linux.

%package -n mingw32-libmspub-0_1
Summary:        Microsoft Publisher file format parser library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw32-libmspub-0_1
libmspub is a library for parsing the Corel Draw file format structure. It is
cross-platform, at the moment it can be build on Microsoft Windows and Linux.

%package tools
Summary:        Tools to work with publications in Microsoft Publisher file-format
Group:          Productivity/Publishing

%description tools
Command line tools to work with publications in Microsoft Publisher file-format.

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

%description devel
libmspub is a library for parsing the Microsoft Publisher file format structure.

This package contains the libmspub development files.

%_mingw32_debug_package

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

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

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make} V=1

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

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

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

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

%changelog
openSUSE Build Service is sponsored by