File mingw32-libgxps.spec of Package mingw32-libgxps
#
# spec file for package mingw32-libgxps
#
# 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-libgxps
Version: 0.2.2
Release: 0
Summary: The libgxps library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: https://live.gnome.org/libgxps
Source: http://ftp.gnome.org/pub/gnome/sources/libgxps/0.2/libgxps-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cairo-devel
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-freetype-devel
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-libarchive-devel
BuildRequires: mingw32-libjpeg-devel
BuildRequires: mingw32-liblcms2-devel
BuildRequires: mingw32-libtiff-devel
BuildRequires: xz
%_mingw32_package_header_debug
BuildArch: noarch
%description
libgxps is a GObject based library for handling and rendering XPS documents.
%package -n mingw32-libgxps2
Summary: The libgxps library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-libgxps2
libgxps is a GObject based library for handling and rendering XPS documents.
%package tools
Summary: The libgxps library -- Tools
Group: Productivity/Publishing
%description tools
libgxps is a GObject based library for handling and rendering XPS documents.
This package contains tools.
%package devel
Summary: The libgxps library -- Development Files
Group: Development/Libraries/C and C++
%description devel
libgxps is a GObject based library for handling and rendering XPS documents.
This package contains the development files.
%_mingw32_debug_package
%lang_package
%prep
%setup -q -n libgxps-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
# Build shared libraries, no static libraries
configure_args="--enable-shared --disable-static"
# Configure
%{_mingw32_configure} ${configure_args}
# Build
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-libgxps2
%defattr(-,root,root)
%{_mingw32_bindir}/libgxps-2.dll
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/xpstojpeg.exe
%{_mingw32_bindir}/xpstopdf.exe
%{_mingw32_bindir}/xpstopng.exe
%{_mingw32_bindir}/xpstops.exe
%{_mingw32_bindir}/xpstosvg.exe
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/libgxps/
%{_mingw32_libdir}/libgxps.dll.a
%{_mingw32_libdir}/pkgconfig/libgxps.pc
%{_mingw32_datadir}/gtk-doc/html/libgxps
%changelog