File mingw32-libwebp.spec of Package mingw32-libwebp

#
# spec file for package mingw32-libwebp
#
# Copyright (c) 2015 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:           mingw32-libwebp
Version:        1.3.1
Release:        0
Summary:        Library and tools for the WebP graphics format
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Url:            https://developers.google.com/speed/webp/

#Git-Clone:	http://git.chromium.org/webm/libwebp.git
Source:         http://downloads.webmproject.org/releases/webp/libwebp-%version.tar.gz
Source2:        http://downloads.webmproject.org/releases/webp/libwebp-%version.tar.gz.asc
Source3:        %name.keyring
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf >= 2.60
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-giflib-devel
BuildRequires:  mingw32-libjpeg-devel
BuildRequires:  mingw32-libpng-devel
BuildRequires:  mingw32-libtiff-devel
%_mingw32_package_header_debug
BuildArch:      noarch

%description
WebP is an image format that does lossy compression of digital
photographic images. WebP consists of a codec based on VP8, and a
container based on RIFF. Webmasters, web developers and browser
developers can use WebP to compress, archive and distribute digital
images more efficiently.

%package devel
Summary:        Development files for libwebp, a library for the WebP format
Group:          Development/Libraries/C and C++

%description devel
WebP is an image format that does lossy compression of digital
photographic images. WebP consists of a codec based on VP8, and a
container based on RIFF. Webmasters, web developers and browser
developers can use WebP to compress, archive and distribute digital
images more efficiently.

%package tools
Summary:        The WebP command line tools
Group:          Productivity/Archiving/Compression

%description tools
WebP is an image format that does lossy compression of digital
photographic images. WebP consists of a codec based on VP8, and a
container based on RIFF. Webmasters, web developers and browser
developers can use WebP to compress, archive and distribute digital
images more efficiently.

%package -n mingw32-libwebp7
Summary:        Library for the WebP graphics format
Group:          System/Libraries
Obsoletes:      %name
Provides:       %name

%description -n mingw32-libwebp7
WebP is an image format that does lossy compression of digital
photographic images. WebP consists of a codec based on VP8, and a
container based on RIFF. Webmasters, web developers and browser
developers can use WebP to compress, archive and distribute digital
images more efficiently.

%package -n mingw32-libwebpdecoder3
Summary:        Library for decoding WebP graphics format
Group:          System/Libraries

%description -n mingw32-libwebpdecoder3
WebP is an image format that does lossy compression of digital
photographic images. WebP consists of a codec based on VP8, and a
container based on RIFF. Webmasters, web developers and browser
developers can use WebP to compress, archive and distribute digital
images more efficiently.

%package -n mingw32-libwebpdemux2
Summary:        Library for extraction of data and images from WebP container files
Group:          System/Libraries

%description -n mingw32-libwebpdemux2
The WebP Demux API enables extraction of images and extended format
data from WebP files. This API currently supports reading of XMP/EXIF
metadata, ICC profile and animated images.

%package -n mingw32-libwebpmux3
Summary:        Library for reading/adding data to WebP container files
Group:          System/Libraries

%description -n mingw32-libwebpmux3
The WebP Mux API contains methods for adding data to and reading data
from WebP files. This API currently supports XMP/EXIF metadata, ICC
profile and animation.

%package -n mingw32-libsharpyuv0
Summary:        Library for sharpening YUV option in WebP
Group:          System/Libraries

%description -n mingw32-libsharpyuv0
Library that provides the sharpening YUV option for better WebP images.

%_mingw32_debug_package

%prep
%setup -q -n libwebp-%version

%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >>%_mingw32_cache
MINGW32_CFLAGS="%_mingw32_cflags -DWEBP_USE_THREAD=1" \
%_mingw32_configure --disable-static --enable-libwebpmux \
	--enable-libwebpdemux --enable-libwebpdecoder
make %{?_smp_mflags}

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

%files devel
%defattr(-,root,root)
%_mingw32_libdir/lib*.dll.a
%_mingw32_includedir/webp/
%_mingw32_libdir/pkgconfig/lib*.pc

%files tools
%defattr(-,root,root)
%_mingw32_bindir/*.exe
%_mingw32_mandir/man*/*

%files -n mingw32-libwebp7
%defattr(-,root,root)
%_mingw32_bindir/libwebp-7.dll

%files -n mingw32-libwebpdecoder3
%defattr(-,root,root)
%_mingw32_bindir/libwebpdecoder-3.dll

%files -n mingw32-libwebpdemux2
%defattr(-,root,root)
%_mingw32_bindir/libwebpdemux-2.dll

%files -n mingw32-libwebpmux3
%defattr(-,root,root)
%_mingw32_bindir/libwebpmux-3.dll

%files -n mingw32-libsharpyuv0
%defattr(-,root,root)
%_mingw32_bindir/libsharpyuv-0.dll

%changelog
openSUSE Build Service is sponsored by