File mingw64-libwpg.spec of Package mingw64-libwpg
#
# spec file for package mingw64-libwpg
#
# 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: mingw64-libwpg
Version: 0.3.0
Release: 0
Summary: Library to read and parse graphics in WordPerfect Graphics format
License: LGPL-2.1-or-later and MPL-2.0+
Group: Development/Libraries/C and C++
Url: http://libwpg.sourceforge.net/
Source: http://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-%{version}/libwpg-%{version}.tar.xz
BuildRequires: m4
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-librevenge-devel >= 0.0.0
BuildRequires: mingw64-libwpd-devel >= 0.10.0
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libwpg is a C++ library to read and parse graphics in WPG (WordPerfect
Graphics) format. It is cross-platform, at the moment it can be build
on Microsoft Windows and Linux.
%package -n mingw64-libwpg-0_3
Summary: MinGW Windows port of the WordPerfect Graphics library
Group: System/Libraries
Obsoletes: mingw64-libwpg
%description -n mingw64-libwpg-0_3
libwpg is a C++ library to read and parse graphics in WPG (WordPerfect
Graphics) format. It is cross-platform, at the moment it can be build
on Microsoft Windows and Linux.
%package tools
Summary: Tools for converting WordPerfect Graphics files
Group: Productivity/Publishing/Word
%description tools
Tools to work with graphics in WPG (WordPerfect Graphics) format.
%package devel
Summary: Files for Developing with libwpg
Group: Development/Libraries/C and C++
%description devel
libwpg is a C++ library to read and parse graphics in WPG (WordPerfect
Graphics) format. It is cross-platform, at the moment it can be build
on Microsoft Windows and Linux.
%_mingw64_debug_package
%prep
%setup -q -n libwpg-%{version}
%build
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}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libwpg-0_3
%defattr(-,root,root)
%{_mingw64_bindir}/libwpg-0.3.dll
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/wpg2svgbatch.pl
%{_mingw64_bindir}/wpg2*.exe
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libwpg*.dll.a
%{_mingw64_libdir}/pkgconfig/libwpg*.pc
%{_mingw64_includedir}/libwpg*/libwpg
%changelog