File mingw64-libgxps.spec of Package mingw64-libgxps
#
# spec file for package mingw64-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: mingw64-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: mingw64-cairo-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-freetype-devel
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-libarchive-devel
BuildRequires: mingw64-libjpeg-devel
BuildRequires: mingw64-liblcms2-devel
BuildRequires: mingw64-libtiff-devel
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
%description
libgxps is a GObject based library for handling and rendering XPS documents.
%package -n mingw64-libgxps2
Summary: The libgxps library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-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.
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n libgxps-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
# Build shared libraries, no static libraries
configure_args="--enable-shared --disable-static"
# Configure
%{_mingw64_configure} ${configure_args}
# Build
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libgxps2
%defattr(-,root,root)
%{_mingw64_bindir}/libgxps-2.dll
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/xpstojpeg.exe
%{_mingw64_bindir}/xpstopdf.exe
%{_mingw64_bindir}/xpstopng.exe
%{_mingw64_bindir}/xpstops.exe
%{_mingw64_bindir}/xpstosvg.exe
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libgxps/
%{_mingw64_libdir}/libgxps.dll.a
%{_mingw64_libdir}/pkgconfig/libgxps.pc
%{_mingw64_datadir}/gtk-doc/html/libgxps
%changelog