File mingw64-libepubgen.spec of Package mingw64-libepubgen
#
# spec file for package mingw64-libepubgen
#
# 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 libname libepubgen-0_0
Name: mingw64-libepubgen
Version: 0.0.0
Release: 0
Summary: An EPUB generator library
License: MPL-2.0
Group: Productivity/Publishing/Word
Url: https://sourceforge.net/projects/libepubgen/
Source: http://downloads.sourceforge.net/libepubgen/libepubgen-%{version}.tar.xz
Source1: compile-resource
Source2: lt-compile-resource
BuildRequires: m4
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cppunit-devel
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-librevenge-devel >= 0.0.0
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libepubgen is a library for generating EPUB documents. It is directly
pluggable into import filters based on librevenge.
%package -n mingw64-%{libname}
Summary: An EPUB generator library
Group: System/Libraries
%description -n mingw64-%{libname}
libepubgen is a library for generating EPUB documents. It is directly
pluggable into import filters based on librevenge.
%package devel
Summary: Development files for libepubgen
Group: Development/Libraries/C and C++
%description devel
libepubgen is a library for generating EPUB documents. It is directly
pluggable into import filters based on librevenge.
This package contains the libepubgen development files.
%_mingw64_debug_package
%prep
%setup -q -n libepubgen-%{version}
cp %{SOURCE1} build/win32/
cp %{SOURCE2} build/win32/
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-werror --disable-docs \
--with-sharedptr=boost
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-%{libname}
%defattr(-,root,root)
%{_mingw64_bindir}/libepubgen-*.dll
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libepubgen*.dll.a
%{_mingw64_libdir}/pkgconfig/libepubgen*.pc
%{_mingw64_includedir}/libepubgen-*/libepubgen
%changelog