File mingw64-libpng.spec of Package mingw64-libpng

#
# 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-libpng
Version:        1.6.11
Release:        0
Summary:        PNG reference library
License:        Zlib
Group:          Development/Libraries/C and C++
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch:      noarch

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

%package -n mingw64-libpng16-16
Summary:        MinGW Windows port of the PNG reference library
Group:          System/Libraries
Obsoletes:      mingw64-libpng

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

%package devel
Summary:        PNG reference library (development files)
Group:          Development/Libraries/C and C++

%description devel
This package includes the header files, libraries, configuration files and
development tools necessary for compiling and linking programs which will
manipulate PNG files using libpng.

%package tools
Summary:        MinGW port of the PNG reference library's tools
Group:          Productivity/Graphics/Other

%description tools
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}

%files -n mingw64-libpng16-16
%defattr(-,root,root)
%{_mingw64_bindir}/libpng16-16.dll

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/libpng-config
%{_mingw64_bindir}/libpng16-config
%{_mingw64_includedir}/libpng16
%{_mingw64_includedir}/png.h
%{_mingw64_includedir}/pngconf.h
%{_mingw64_includedir}/pnglibconf.h
%{_mingw64_libdir}/libpng.dll.a
%{_mingw64_libdir}/libpng16.dll.a
%{_mingw64_libdir}/pkgconfig/libpng.pc
%{_mingw64_libdir}/pkgconfig/libpng16.pc
%exclude %{_mingw64_mandir}/man3
%exclude %{_mingw64_mandir}/man5

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/png-fix-itxt.exe
%{_mingw64_bindir}/pngfix.exe

%changelog