File mingw64-libwmf.spec of Package mingw64-libwmf
#
# spec file for package mingw64-libwmf
#
# 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-libwmf
Version: 0.2.8.4
Release: 0
Summary: Library for Converting Metafile Images
License: GPL-2.0-or-later and LGPL-2.1-or-later
Group: Development/Libraries
Url: http://wvWare.sourceforge.net
Source0: http://downloads.sourceforge.net/wvware/libwmf-%{version}.tar.gz
Source1000: %{name}-%{version}-rpmlintrc
Patch0: libwmf-0.2.8.4-libpng.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-freetype-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: mingw64-libjpeg-devel
BuildRequires: mingw64-libpng-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
This library interprets metafile images and can convert them to
standard formats such as PNG, JPEG, PS, EPS, and more.
%package devel
Summary: Library for Converting Metafile Images (development files)
Group: Development/Libraries
%description devel
This library interprets metafile images and can convert them to
standard formats such as PNG, JPEG, PS, EPS, and more.
%package tools
Summary: Utilities for Converting Metafile Images
Group: Development/Libraries
%description tools
This library interprets metafile images and can convert them to
standard formats such as PNG, JPEG, PS, EPS, and more.
%package gnome
Summary: GNOME plugin for displaying and Converting Metafile Images
Group: Development/Libraries
%description gnome
This library interprets metafile images and can convert them to
standard formats such as PNG, JPEG, PS, EPS, and more.
%_mingw64_debug_package
%prep
%setup -q -n libwmf-%{version}
%patch -P 0 -p1 -b .libpng
%build
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--without-x \
--with-freetype=%{_mingw64_prefix}
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_mingw64_libdir}/gtk-2.0/2.*/loaders/*.dll.a
%files
%defattr(-,root,root)
%{_mingw64_bindir}/libwmf-0-2-7.dll
%{_mingw64_bindir}/libwmflite-0-2-7.dll
%{_mingw64_bindir}/libwmf-fontmap
%{_mingw64_datadir}/libwmf/fonts
%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/libwmf-config
%{_mingw64_includedir}/libwmf
%{_mingw64_libdir}/libwmf.dll.a
%{_mingw64_libdir}/libwmflite.dll.a
%{_mingw64_datadir}/doc/libwmf
%files gnome
%defattr(-,root,root)
%{_mingw64_libdir}/gtk-2.0/2.*/loaders/io-wmf.dll
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/wmf2*.exe
%changelog