File mingw64-librevenge.spec of Package mingw64-librevenge
#
# spec file for package mingw64-librevenge
#
# 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/
#
%define apiversion 0.0
Name: mingw64-librevenge
Version: 0.0.4
Release: 0
Summary: A base library for writing document import filters
License: LGPL-2.1-or-later or MPL-2.0+
Group: Development/Libraries/C and C++
Url: http://sourceforge.net/p/libwpd/wiki/librevenge/
Source: http://downloads.sourceforge.net/libwpd/librevenge-%{version}.tar.xz
BuildRequires: m4
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libcppunit-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
librevenge is a base library for writing document import filters. It has
interfaces for text documents, vector graphics, spreadsheets and
presentations.
%package -n mingw64-librevenge-0_0
Summary: A base library for writing document import filters
License: LGPL-2.1-or-later or MPL-2.0+
Group: System/Libraries
Obsoletes: mingw64-librevenge
%description -n mingw64-librevenge-0_0
librevenge is a base library for writing document import filters. It has
interfaces for text documents, vector graphics, spreadsheets and
presentations.
%package -n mingw64-librevenge-stream-0_0
Summary: A base library for writing document import filters (stream implementations)
# src/lib/RVNGOLEStream.{h,cpp} are BSD3c
License: (LGPL-2.1-or-later or MPL-2.0+) and BSD-3-Clause
Group: System/Libraries
Obsoletes: mingw64-librevenge-stream
%description -n mingw64-librevenge-stream-0_0
librevenge is a base library for writing document import filters. It has
interfaces for text documents, vector graphics, spreadsheets and
presentations.
This package contains the different stream implementations.
%package -n mingw64-librevenge-generators-0_0
Summary: A base library for writing document import filters
License: LGPL-2.1-or-later or MPL-2.0+
Group: System/Libraries
Obsoletes: mingw64-librevenge-generators
%description -n mingw64-librevenge-generators-0_0
librevenge is a base library for writing document import filters. It has
interfaces for text documents, vector graphics, spreadsheets and
presentations.
This package contains classes to be used by converters that generate
documents using librevenge's APIs.
%package devel
Summary: Development files for librevenge
License: LGPL-2.1-or-later or MPL-2.0+
Group: Development/Libraries/C and C++
%description devel
The devel package contains libraries and header files for developing
applications that use librevenge.
%_mingw64_debug_package
%prep
%setup -q -n librevenge-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--without-docs --disable-werror \
--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-librevenge-0_0
%defattr(644,root,root,755)
%{_mingw64_bindir}/librevenge-%{apiversion}.dll
%files -n mingw64-librevenge-generators-0_0
%defattr(644,root,root,755)
%{_mingw64_bindir}/librevenge-generators-%{apiversion}.dll
%files -n mingw64-librevenge-stream-0_0
%defattr(644,root,root,755)
%{_mingw64_bindir}/librevenge-stream-%{apiversion}.dll
%files devel
%defattr(644,root,root,755)
%{_mingw64_libdir}/librevenge*-*.dll.a
%{_mingw64_libdir}/pkgconfig/librevenge*-*.pc
%{_mingw64_includedir}/librevenge-*/librevenge
%{_mingw64_includedir}/librevenge-*/librevenge-generators
%{_mingw64_includedir}/librevenge-*/librevenge-stream
%changelog