File mingw64-libpagemaker.spec of Package mingw64-libpagemaker

#
# spec file for package mingw64-libpagemaker
#
# 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-libpagemaker
Version:        0.0.2
Release:        0
Summary:        A library for import of Adobe PageMaker documents
License:        MPL-2.0
Group:          Development/Libraries/C and C++
Url:            http://www.freedesktop.org/wiki/Software/libpagemaker
Source:         http://dev-www.libreoffice.org/src/libpagemaker/libpagemaker-%{version}.tar.xz
Patch0:         libpagemaker-0.0.2-no_undefined.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-boost-devel
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-librevenge-devel >= 0.0.0
BuildRequires:  xz
%_mingw64_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
libpagemaker is library providing ability to interpret and import
Adobe PageMaker documents into various applications.

%package -n mingw64-libpagemaker-0_0
Summary:        A library for import of Adobe PageMaker documents
Group:          System/Libraries

%description -n mingw64-libpagemaker-0_0
libpagemaker is library providing ability to interpret and import
Adobe PageMaker documents into various applications.

%package tools
Summary:        Tools to work with Adobe PageMaker documents
Group:          Productivity/Graphics

%description tools
Tools to work with Adobe PageMaker documents.

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

%description devel
libpagemaker is library providing ability to interpret and import
Adobe PageMaker documents into various applications.

This package contains the libpagemaker development files.

%_mingw64_debug_package

%prep
%setup -q -n libpagemaker-%{version}
%patch -P 0 -p1

%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} V=1

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files -n mingw64-libpagemaker-0_0
%defattr(-,root,root)
%{_mingw64_bindir}/libpagemaker-0.0.dll

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/pmd2*.exe

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libpagemaker-*.dll.a
%{_mingw64_libdir}/pkgconfig/libpagemaker-*.pc
%{_mingw64_includedir}/libpagemaker-*/libpagemaker

%changelog
openSUSE Build Service is sponsored by