File mingw64-compat-libpng15.spec of Package mingw64-compat-libpng15

#
# spec file for package mingw64-libpng
#
# 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-compat-libpng15
Version:        1.5.17
Release:        0
Summary:        PNG reference library
License:        Zlib
Group:          System/Libraries
Url:            http://www.libpng.org/pub/png/
Source:         ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-zlib-devel
BuildRequires:  xz
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows libpng library. Libpng is the official reference library for the
Portable Network Graphics (PNG) format.

%_mingw64_debug_package

%prep
%setup -q -n libpng-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	as_ln_s='cp -p' \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_mingw64_bindir}/libpng-config
rm -f %{buildroot}%{_mingw64_bindir}/libpng15-config
rm -fr %{buildroot}%{_mingw64_includedir}
rm -fr %{buildroot}%{_mingw64_libdir}
rm -fr %{buildroot}%{_mingw64_mandir}

%files
%defattr(-,root,root)
%{_mingw64_bindir}/libpng15-15.dll

%changelog
openSUSE Build Service is sponsored by