File mingw64-libjpeg62-turbo.spec of Package mingw64-libjpeg-turbo
#
# spec file for package libjpeg62-turbo
#
# Copyright (c) 2015 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 major 62
%define minor 1
%define micro 0
%define srcver 3.1.0
%define libver %major.%minor.%micro
Name: libjpeg62-turbo
Version: %srcver
Release: 0
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
License: BSD-3-Clause
Group: Productivity/Graphics/Convertors
URL: https://libjpeg-turbo.org/
Source: https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/%version/libjpeg-turbo-%srcver.tar.gz
Patch1: libjpeg-turbo-1.3.0-tiff-ojpeg.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: libtool
BuildRequires: yasm
Conflicts: mingw64-jpeg%major
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
The libjpeg-turbo package contains a library of functions for manipulating
JPEG images.
%package -n mingw64-libjpeg%major
Version: %libver
Release: 0
Summary: The MMX/SSE accelerated JPEG compression/decompression library
Group: System/Libraries
%description -n mingw64-libjpeg%major
This library contains MMX/SSE accelerated functions for manipulating
JPEG images.
%package -n mingw64-libjpeg%major-devel
Version: %libver
Release: 0
Summary: Development Tools for applications which will use the Libjpeg Library
Group: Development/Libraries/C and C++
Conflicts: mingw64-libjpeg-devel
%description -n mingw64-libjpeg%major-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
%autosetup -p1 -n libjpeg-turbo-%srcver
%build
%_mingw64_cmake \
-DCMAKE_SYSTEM_PROCESSOR=%_arch \
-DENABLE_STATIC=OFF
%_mingw64_cmake_build
%install
%_mingw64_cmake_install
# Remove unwanted files
rm -f %buildroot/%_mingw64_libdir/lib{,turbo}jpeg.la
rm %buildroot/%_mingw64_bindir/*.exe
rm %buildroot/%_mingw64_mandir/man1/*
# libjpegturbo is provided with libjpeg-turbo.spec yet
rm %buildroot/%_mingw64_includedir/turbojpeg.h
rm %buildroot/%_mingw64_bindir/libturbojpeg.dll
rm %buildroot/%_mingw64_libdir/libturbojpeg.dll.a
# Remove docs, we'll select docs manually
rm -rf "%buildroot/%_mingw64_datadir/doc/"
%files
%doc README.md ChangeLog.md
%files -n mingw64-libjpeg%major
%_mingw64_bindir/libjpeg-%major.dll
%files -n mingw64-libjpeg%major-devel
%_mingw64_includedir/*.h
%_mingw64_libdir/libjpeg.dll.a
%_mingw64_libdir/cmake/libjpeg-turbo/
%_mingw64_libdir/pkgconfig/libjpeg.pc
%_mingw64_libdir/pkgconfig/libturbojpeg.pc
%changelog