File mingw64-jpeg.spec of Package mingw64-jpeg

#
# spec file for package mingw64-jpeg
#
# 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/
#

%define tarversion 8d

Name:           mingw64-jpeg
Version:        8.0.4
Release:        0
Summary:        Independent JPEG Group's JPEG software
License:        IJG
Group:          Development/Libraries/C and C++
Url:            http://www.ijg.org/
Source:         ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{tarversion}.tar.gz
Patch1:         jpeg-7-cplusplus.patch
Patch2:         jpeg-7-tiff-ojpeg.patch
Patch3:         libjpeg-buf-oflo.patch
Patch5:         jpeg-8b-typedefs.patch
Patch6:         jpeg-7-canonicalhost.patch
Patch7:         jpeg-8-de-de-ansify.patch
Patch8:         jpeg-8-am-prog-ar.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libpng-devel
BuildRequires:  mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Free library and tools for JPEG image compression.

%package -n mingw64-libjpeg8
Summary:        Independent JPEG Group's JPEG library
Group:          System/Libraries
Obsoletes:      mingw64-libjpeg < %{version}

%description -n mingw64-libjpeg8
Free library and tools for JPEG image compression.

%package -n mingw64-libjpeg-devel
Summary:        Independent JPEG Group's JPEG library (development files)
Group:          Development/Libraries/C and C++

%description -n mingw64-libjpeg-devel
The libjpeg-devel package includes the header files and libraries necessary
for compiling and linking programs which will manipulate JPEG files using
the libjpeg library.

%_mingw64_debug_package

%prep
%setup -q -n jpeg-%{tarversion}

%patch -P 1  -b .cplusplus
%patch -P 2  -b .tiff-ojpeg
%patch -P 3 -p1 -b .oflo
%patch -P 5 -p1 -b .typedefs
%patch -P 6  -b .canonicalhost
%patch -P 7  -b .deansification
%patch -P 8  -b .am-prog-ar

%build
libtoolize --force --copy
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

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

%files
%defattr(-,root,root)
%{_mingw64_bindir}/cjpeg.exe
%{_mingw64_bindir}/djpeg.exe
%{_mingw64_bindir}/jpegtran.exe
%{_mingw64_bindir}/rdjpgcom.exe
%{_mingw64_bindir}/wrjpgcom.exe
%{_mingw64_mandir}/man1

%files -n mingw64-libjpeg8
%defattr(-,root,root)
%{_mingw64_bindir}/libjpeg-8.dll

%files -n mingw64-libjpeg-devel
%defattr(-,root,root)
%{_mingw64_includedir}/jconfig.h
%{_mingw64_includedir}/jerror.h
%{_mingw64_includedir}/jmorecfg.h
%{_mingw64_includedir}/jpeglib.h
%{_mingw64_libdir}/libjpeg.dll.a

%changelog
openSUSE Build Service is sponsored by