File mingw32-libetonyek.spec of Package mingw32-libetonyek

#
# spec file for package mingw32-libetonyek
#
# Copyright (c) 2016 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-libetonyek
Version:        0.1.6
Release:        0
Summary:        Library for Apple Keynote presentations
License:        MPL-2.0
Group:          Development/Libraries/C and C++
Url:            http://www.freedesktop.org/wiki/Software/libetonyek
Source0:        http://dev-www.libreoffice.org/src/libetonyek/libetonyek-%{version}.tar.xz
Patch0:         libetonyek-0.1.6-mdds.patch
BuildRequires:  autoconf automake libtool
BuildRequires:  gperf
BuildRequires:  mingw32-boost-devel
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-glm-devel
BuildRequires:  mingw32-libcppunit-devel
BuildRequires:  mingw32-liblangtag-devel
BuildRequires:  mingw32-librevenge-devel >= 0.0.0
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  xz
BuildRequires:  mingw32(pkg:mdds-1.2)
%_mingw32_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
Libetonyek is library providing ability to interpret and import Apple Keynote
presentations into various applications.

%package -n mingw32-libetonyek-0_1
Summary:        Library for Apple Keynote presentations
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw32-libetonyek-0_1
Libetonyek is library providing ability to interpret and import Apple Keynote
presentations into various applications.

%package tools
Summary:        Tools to work with Apple Keynote presentations
Group:          Productivity/Publishing/Word

%description tools
This package contains tools to work with Apple Keynote presentations

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

%description devel
Libetonyek is library providing ability to interpret and import Apple Keynote
presentations into various applications.

This package contains the libetonyek development files.

%_mingw32_debug_package

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

%build
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--with-boost-filesystem=libboost_filesystem \
	--without-docs --disable-werror \
	--with-mdds=1.2

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

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

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

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

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

%changelog
openSUSE Build Service is sponsored by