File mingw64-libmwaw.spec of Package mingw64-libmwaw
#
# spec file for package mingw64-libmwaw
#
# 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-libmwaw
Version: 0.3.7
Release: 0
Summary: Pre Mac OSX text file formats parser library
License: LGPL-2.1-or-later or MPL-2.0
Group: Development/Libraries/C and C++
Url: http://libmwaw.sourceforge.net/
Source: http://downloads.sourceforge.net/project/libmwaw/libmwaw/libmwaw-%{version}/libmwaw-%{version}.tar.xz
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1.11
BuildRequires: libtool >= 2
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config >= 0.20
BuildRequires: mingw64(pkg:librevenge-0.0)
BuildRequires: mingw64(pkg:librevenge-stream-0.0)
BuildRequires: mingw64(pkg:zlib)
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
Libmwaw is a new project for converting many pre-OSX MAC text formats.
%package -n mingw64-libmwaw-0_3
Summary: Pre Mac OSX text file formats parser library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libmwaw-0_3
Libmwaw is a new project for converting many pre-OSX MAC text formats.
%package tools
Summary: Tools to work with publications in pre MAC OSX text file-formats
Group: Productivity/Publishing
%description tools
Command line tools to work with publications in pre MAC OSX text file-formats.
%package devel
Summary: Files for developing with libmwaw.
Group: Development/Libraries/C and C++
%description devel
Libmwaw is a new project for converting many pre-OSX MAC text formats.
This package contains the libmwaw development files.
%_mingw64_debug_package
%prep
%setup -q -n libmwaw-%{version}
%build
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-werror \
--without-docs
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -rfv %{buildroot}/%{_libdir}/libmwaw*.dll.a
%files -n mingw64-libmwaw-0_3
%defattr(-,root,root)
%{_mingw64_bindir}/libmwaw-0.3.dll
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/mwaw*.exe
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libmwaw-*.dll.a
%{_mingw64_libdir}/pkgconfig/libmwaw-*.pc
%{_mingw64_includedir}/libmwaw-*/libmwaw
%changelog