File mingw64-gtkimageview.spec of Package mingw64-gtkimageview
#
# spec file for package mingw64-gtkimageview
#
# 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-gtkimageview
Version: 1.6.4
Release: 0
Summary: Libraries for GtkImageView widget
License: LGPL-2.0-or-later
Group: Development/Libraries/C and C++
Url: http://trac.bjourne.webfactional.com
Source0: http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/gtkimageview-%{version}.tar.gz
Source1000: %{name}-rpmlintrc
Patch0: gtkimageview-1.6.4-gcc6.patch
#!BuildIgnore: post-build-checks
BuildRequires: glib2-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: python
%_mingw64_package_header_debug
BuildArch: noarch
%description
GtkImageView is a widget that provides a zoomable and panable view of a
GdkPixbuf. It is intended to be usable in most types of image viewing
applications.
%package -n mingw64-libgtkimageview0
Summary: Libraries for GtkImageView widget
Group: System/Libraries
Obsoletes: mingw64-gtkimageview < %version-%release
Provides: mingw64-gtkimageview = %version-%release
%description -n mingw64-libgtkimageview0
GtkImageView is a widget that provides a zoomable and panable view of a
GdkPixbuf. It is intended to be usable in most types of image viewing
applications.
%package devel
Summary: Libraries for GtkImageView widget
Group: Development/Libraries/C and C++
%description devel
GtkImageView is a widget that provides a zoomable and panable view of a
GdkPixbuf. It is intended to be usable in most types of image viewing
applications.
This package contains headers and import libraries necessary to build
applications using GtkImageView
%_mingw64_debug_package
%prep
%setup -q -n gtkimageview-%{version}
%patch -P 0 -p1
# Allow the usage of deprecated functions of gdk-pixbuf
sed -i "s:-DGDK_PIXBUF_DISABLE_DEPRECATED::g" configure
# As deprecations are still a warning, we also have to stop raising them to errors
sed -i "s:-Werror::g" configure
%build
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
--disable-static --enable-shared
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libgtkimageview0
%defattr(-,root,root)
%{_mingw64_bindir}/libgtkimageview-0.dll
%files devel
%defattr(-,root,root)
%{_mingw64_datadir}/gtk-doc/html/gtkimageview
%{_mingw64_includedir}/gtkimageview
%{_mingw64_libdir}/libgtkimageview.dll.a
%{_mingw64_libdir}/pkgconfig/gtkimageview.pc
%changelog