File mingw32-libspectre.spec of Package mingw32-libspectre
#
# spec file for package mingw32-libspectre
#
# 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: mingw32-libspectre
Version: 0.2.6
Release: 0
Summary: Library for Rendering PostScript Documents
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Url: http://libspectre.freedesktop.org/wiki/
Source: http://libspectre.freedesktop.org/releases/libspectre-%{version}.tar.gz
Patch0: libspectre-0.2.4-vscprintf.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-libgs-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
libspectre is a small library for rendering Postscript documents. It
provides a convenient easy to use API for handling and rendering
Postscript documents.
%package -n mingw32-libspectre1
Summary: Library for Rendering PostScript Documents
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-libspectre1
libspectre is a small library for rendering Postscript documents. It
provides a convenient easy to use API for handling and rendering
Postscript documents.
%package devel
Summary: Library for Rendering PostScript Documents (development files)
Group: Development/Libraries/C and C++
%description devel
libspectre is a small library for rendering Postscript documents. It
provides a convenient easy to use API for handling and rendering
Postscript documents (development files).
%_mingw32_debug_package
%prep
%setup -q -n libspectre-%{version}
%patch -P 0 -p1 -b .vscprintf
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} --enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-libspectre1
%defattr(-,root,root)
%{_mingw32_bindir}/libspectre-1.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/libspectre
%{_mingw32_libdir}/libspectre.dll.a
%{_mingw32_libdir}/pkgconfig/libspectre.pc
%changelog