File mingw64-gdk-pixbuf.spec of Package mingw64-gdk-pixbuf

#
# spec file for package mingw64-gdk-pixbuf
#
# Copyright (c) 2018 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/
#


Name:           mingw64-gdk-pixbuf
Version:        2.36.4
Release:        0
Summary:        Image loading library
License:        LGPL-2.1-or-later
Group:          Development/Libraries/GNOME
Url:            http://www.gtk.org/
Source:         http://download.gnome.org/sources/gdk-pixbuf/2.26/gdk-pixbuf-%{version}.tar.xz
# Native version for glib-genmarshal
BuildRequires:  glib2-devel
#!BuildIgnore: post-build-checks
BuildRequires:  gtk-doc
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-glib2-devel >= 2.31.0
BuildRequires:  mingw64-libintl-devel
BuildRequires:  mingw64-libjasper-devel
BuildRequires:  mingw64-libjpeg-devel
BuildRequires:  mingw64-libpng-devel
BuildRequires:  mingw64-libtiff-devel
BuildRequires:  python
BuildRequires:  xz
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
gdk-pixbuf is an image loading library that can be extended by loadable
modules for new image formats. It is used by toolkits such as GTK+ or
Clutter.

%package -n mingw64-libgdk_pixbuf-2_0-0
Summary:        MinGW Windows port of the GDK Image loading library
Group:          System/Libraries
Obsoletes:      mingw64-gdk-pixbuf
Provides:       mingw64-gdk-pixbuf

%description -n mingw64-libgdk_pixbuf-2_0-0
gdk-pixbuf is an image loading library that can be extended by loadable
modules for new image formats. It is used by toolkits such as GTK+ or
Clutter.

%package query-loaders
Summary:        Image loading library - Utility to create loaders cache
Group:          System/Libraries

%description query-loaders
gdk-pixbuf is an image loading library that can be extended by loadable
modules for new image formats. It is used by toolkits such as GTK+ or
Clutter.

This package contains the utility to create the cache file needed for loadable modules.

%package thumbnailer
Summary:        System helper creating thumbnails
Group:          System/Libraries

%description thumbnailer
gdk-pixbuf is an image loading library that can be extended by loadable
modules for new image formats. It is used by toolkits such as GTK+ or
Clutter.

This package contains the thumbnailer utility.

%package devel-tools
Summary:        Image loading library - Development tools
Group:          Development/Libraries

%description devel-tools
gdk-pixbuf is an image loading library that can be extended by loadable
modules for new image formats. It is used by toolkits such as GTK+ or
Clutter.

%package devel
Summary:        Image loading library - Development files
Group:          Development/Libraries/C and C++

%description devel
gdk-pixbuf is an image loading library that can be extended by loadable
modules for new image formats. It is used by toolkits such as GTK+ or
Clutter.

This package contains development files for gdk-pixbuf.

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n gdk-pixbuf-%{version}

%build
# Need to run the correct version of glib-mkenums.
export PATH="%{_mingw64_bindir}:$PATH"

echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}

%{_mingw64_configure} \
	--without-gdiplus \
	--with-libjasper \
	--with-included-loaders=yes \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%find_lang gdk-pixbuf

%files -n mingw64-libgdk_pixbuf-2_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgdk_pixbuf-2.0-0.dll

%files lang -f gdk-pixbuf.lang
%defattr(-,root,root)

%files query-loaders
%defattr(-,root,root)
%{_mingw64_bindir}/gdk-pixbuf-query-loaders.exe
%{_mingw64_mandir}/man1/gdk-pixbuf-query-loaders.1*

%files thumbnailer
%defattr(-,root,root)
%{_mingw64_bindir}/gdk-pixbuf-thumbnailer.exe
%{_mingw64_datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer

%files devel-tools
%defattr(-,root,root)
%{_mingw64_bindir}/gdk-pixbuf-csource.exe
%{_mingw64_bindir}/gdk-pixbuf-pixdata.exe
%{_mingw64_mandir}/man1/gdk-pixbuf-csource.1*

%files devel
%defattr(-,root,root)
%{_mingw64_datadir}/gtk-doc/html/gdk-pixbuf
%{_mingw64_includedir}/gdk-pixbuf-2.0/
%{_mingw64_libdir}/libgdk_pixbuf-2.0.dll.a
%{_mingw64_libdir}/pkgconfig/gdk-pixbuf-2.0.pc

%changelog
openSUSE Build Service is sponsored by