2010-12-10 15:42:49 +01:00
|
|
|
#
|
2023-06-23 19:40:39 +02:00
|
|
|
# spec file
|
2010-12-10 15:42:49 +01:00
|
|
|
#
|
Accepting request 1066935 from home:polslinux:branches:graphics
- update to 2.1.5.1:
* Fixed a regression introduced by 2.0 beta1[15] that caused a buffer
overrun in the progressive Huffman encoder when attempting to transform
a specially-crafted malformed 12-bit-per-component JPEG image into a
progressive 12-bit-per-component JPEG image using a 12-bit-per-component
build of libjpeg-turbo.
* Fixed an issue whereby, when using a 12-bit-per-component build of
libjpeg-turbo (-DWITH_12BIT=1), passing samples with values greater than 4095
or less than 0 to jpeg_write_scanlines() caused a buffer overrun or
underrun in the RGB-to-YCbCr color converter.
* Fixed a floating point exception that occurred when attempting to use
the jpegtran -drop and -trim options to losslessly transform a
specially-crafted malformed JPEG image.
* Fixed an issue in tjBufSizeYUV2() whereby it returned a bogus result,
rather than throwing an error, if the align parameter was not a power of 2.
* Fixed a similar issue in tjCompressFromYUV() whereby it generated a corrupt
JPEG image in certain cases, rather than throwing an error,
if the align parameter was not a power of 2.
* Fixed an issue whereby tjDecompressToYUV2(), which is a wrapper for
tjDecompressToYUVPlanes(), used the desired YUV image dimensions
rather than the actual scaled image dimensions when computing the plane
pointers and strides to pass to tjDecompressToYUVPlanes().
This caused a buffer overrun and subsequent segfault if the desired
image dimensions exceeded the scaled image dimensions.
* Fixed an issue whereby, when decompressing a 12-bit-per-component JPEG
image (-DWITH_12BIT=1) using an alpha-enabled output color space such as
JCS_EXT_RGBA, the alpha channel was set to 255 rather than 4095.
* Fixed an issue whereby the Java version of TJBench did not accept a range
of quality values.
* Fixed an issue whereby, when -progressive was passed to TJBench,
OBS-URL: https://build.opensuse.org/request/show/1066935
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=136
2023-02-24 08:32:56 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2010-12-10 15:42:49 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-13 12:14:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-12-10 15:42:49 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-06-23 19:40:39 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == ""
|
|
|
|
%global flavor libjpeg-turbo
|
|
|
|
%endif
|
|
|
|
|
2018-12-03 14:22:26 +01:00
|
|
|
%define asan_build 0
|
|
|
|
%define debug_build 0
|
2023-06-23 19:40:39 +02:00
|
|
|
%define srcver 2.1.5.1
|
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%define major 8
|
2018-08-01 14:49:51 +02:00
|
|
|
%define minor 2
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%define micro 2
|
|
|
|
%define tmajor 0
|
2018-08-01 14:49:51 +02:00
|
|
|
%define tminor 2
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%define tmicro 0
|
|
|
|
%define tlibver %{tmajor}.%{tminor}.%{tmicro}
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "libjpeg62-turbo"
|
|
|
|
%define major 62
|
|
|
|
%define minor 3
|
|
|
|
%define micro 0
|
|
|
|
%endif
|
|
|
|
%define libver %{major}.%{minor}.%{micro}
|
|
|
|
Name: %{flavor}
|
|
|
|
Version: %{srcver}
|
2012-03-22 14:59:53 +01:00
|
|
|
Release: 0
|
2018-08-08 20:05:14 +02:00
|
|
|
Summary: A SIMD-accelerated library for manipulating JPEG image files
|
2012-03-22 14:59:53 +01:00
|
|
|
License: BSD-3-Clause
|
Accepting request 826111 from home:elimat:branches:graphics
- Update to version 2.0.5
* Worked around issues in the MIPS DSPr2 SIMD extensions that caused failures
in the libjpeg-turbo regression tests. Specifically, the
jsimd_h2v1_downsample_dspr2() and jsimd_h2v2_downsample_dspr2() functions
in the MIPS DSPr2 SIMD extensions are now disabled until/unless they can be
fixed, and other functions that are incompatible with big endian MIPS CPUs
are disabled when building libjpeg-turbo for such CPUs.
* Fixed an oversight in the TJCompressor.compress(int) method in the
TurboJPEG Java API that caused an error ("java.lang.IllegalStateException:
No source image is associated with this instance") when attempting to use
that method to compress a YUV image.
* Fixed an issue (CVE-2020-13790) in the PPM reader that caused a buffer
overrun in cjpeg, TJBench, or the tjLoadImage() function if one of the
values in a binary PPM/PGM input file exceeded the maximum value defined in
the file's header and that maximum value was less than 255. libjpeg-turbo
1.5.0 already included a similar fix for binary PPM/PGM files with maximum
values greater than 255.
* The TurboJPEG API library's global error handler, which is used in
functions such as tjBufSize() and tjLoadImage() that do not require a
TurboJPEG instance handle, is now thread-safe on platforms that support
thread-local storage.
- Fix source verification
- Drop patches fixed upstream:
* ctest-depends.patch
* libjpeg-turbo-CVE-2020-13790.patch
- Run spec-cleaner
* Remove package groups
* Use make macros
- Update to version 2.0.5
* Worked around issues in the MIPS DSPr2 SIMD extensions that caused failures
in the libjpeg-turbo regression tests. Specifically, the
jsimd_h2v1_downsample_dspr2() and jsimd_h2v2_downsample_dspr2() functions
in the MIPS DSPr2 SIMD extensions are now disabled until/unless they can be
fixed, and other functions that are incompatible with big endian MIPS CPUs
are disabled when building libjpeg-turbo for such CPUs.
* Fixed an oversight in the TJCompressor.compress(int) method in the
TurboJPEG Java API that caused an error ("java.lang.IllegalStateException:
No source image is associated with this instance") when attempting to use
that method to compress a YUV image.
* Fixed an issue (CVE-2020-13790) in the PPM reader that caused a buffer
overrun in cjpeg, TJBench, or the tjLoadImage() function if one of the
values in a binary PPM/PGM input file exceeded the maximum value defined in
the file's header and that maximum value was less than 255. libjpeg-turbo
1.5.0 already included a similar fix for binary PPM/PGM files with maximum
values greater than 255.
* The TurboJPEG API library's global error handler, which is used in
functions such as tjBufSize() and tjLoadImage() that do not require a
TurboJPEG instance handle, is now thread-safe on platforms that support
thread-local storage.
- Drop patches fixed upstream:
* ctest-depends.patch
* libjpeg-turbo-CVE-2020-13790.patch
- Run spec-cleaner
* Remove package groups
* Use make macros
OBS-URL: https://build.opensuse.org/request/show/826111
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=111
2020-08-13 09:14:02 +02:00
|
|
|
URL: https://sourceforge.net/projects/libjpeg-turbo
|
2022-04-11 20:18:29 +02:00
|
|
|
Source0: https://downloads.sf.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
|
|
|
|
Source1: https://downloads.sf.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz.sig
|
Accepting request 826111 from home:elimat:branches:graphics
- Update to version 2.0.5
* Worked around issues in the MIPS DSPr2 SIMD extensions that caused failures
in the libjpeg-turbo regression tests. Specifically, the
jsimd_h2v1_downsample_dspr2() and jsimd_h2v2_downsample_dspr2() functions
in the MIPS DSPr2 SIMD extensions are now disabled until/unless they can be
fixed, and other functions that are incompatible with big endian MIPS CPUs
are disabled when building libjpeg-turbo for such CPUs.
* Fixed an oversight in the TJCompressor.compress(int) method in the
TurboJPEG Java API that caused an error ("java.lang.IllegalStateException:
No source image is associated with this instance") when attempting to use
that method to compress a YUV image.
* Fixed an issue (CVE-2020-13790) in the PPM reader that caused a buffer
overrun in cjpeg, TJBench, or the tjLoadImage() function if one of the
values in a binary PPM/PGM input file exceeded the maximum value defined in
the file's header and that maximum value was less than 255. libjpeg-turbo
1.5.0 already included a similar fix for binary PPM/PGM files with maximum
values greater than 255.
* The TurboJPEG API library's global error handler, which is used in
functions such as tjBufSize() and tjLoadImage() that do not require a
TurboJPEG instance handle, is now thread-safe on platforms that support
thread-local storage.
- Fix source verification
- Drop patches fixed upstream:
* ctest-depends.patch
* libjpeg-turbo-CVE-2020-13790.patch
- Run spec-cleaner
* Remove package groups
* Use make macros
- Update to version 2.0.5
* Worked around issues in the MIPS DSPr2 SIMD extensions that caused failures
in the libjpeg-turbo regression tests. Specifically, the
jsimd_h2v1_downsample_dspr2() and jsimd_h2v2_downsample_dspr2() functions
in the MIPS DSPr2 SIMD extensions are now disabled until/unless they can be
fixed, and other functions that are incompatible with big endian MIPS CPUs
are disabled when building libjpeg-turbo for such CPUs.
* Fixed an oversight in the TJCompressor.compress(int) method in the
TurboJPEG Java API that caused an error ("java.lang.IllegalStateException:
No source image is associated with this instance") when attempting to use
that method to compress a YUV image.
* Fixed an issue (CVE-2020-13790) in the PPM reader that caused a buffer
overrun in cjpeg, TJBench, or the tjLoadImage() function if one of the
values in a binary PPM/PGM input file exceeded the maximum value defined in
the file's header and that maximum value was less than 255. libjpeg-turbo
1.5.0 already included a similar fix for binary PPM/PGM files with maximum
values greater than 255.
* The TurboJPEG API library's global error handler, which is used in
functions such as tjBufSize() and tjLoadImage() that do not require a
TurboJPEG instance handle, is now thread-safe on platforms that support
thread-local storage.
- Drop patches fixed upstream:
* ctest-depends.patch
* libjpeg-turbo-CVE-2020-13790.patch
- Run spec-cleaner
* Remove package groups
* Use make macros
OBS-URL: https://build.opensuse.org/request/show/826111
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=111
2020-08-13 09:14:02 +02:00
|
|
|
Source2: libjpeg-turbo.keyring
|
|
|
|
Source3: baselibs.conf
|
2014-03-31 11:32:10 +02:00
|
|
|
Patch1: libjpeg-turbo-1.3.0-tiff-ojpeg.patch
|
2018-08-01 14:49:51 +02:00
|
|
|
BuildRequires: cmake
|
2012-03-22 14:59:53 +01:00
|
|
|
BuildRequires: gcc-c++
|
2022-04-19 09:32:27 +02:00
|
|
|
BuildRequires: nasm
|
2016-06-08 10:11:04 +02:00
|
|
|
BuildRequires: pkgconfig
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
2018-08-01 14:49:51 +02:00
|
|
|
Conflicts: jpeg%{major}
|
2014-10-15 15:42:43 +02:00
|
|
|
Obsoletes: jpeg = 6b
|
|
|
|
Obsoletes: jpeg = 8.0.1
|
|
|
|
Obsoletes: jpeg = 8.0.2
|
2012-03-22 14:59:53 +01:00
|
|
|
Provides: jpeg = %{version}
|
2012-09-30 20:10:46 +02:00
|
|
|
Obsoletes: jpeg < %{version}
|
2023-01-02 12:58:40 +01:00
|
|
|
Provides: jpegtran = %{version}
|
2023-03-13 10:23:32 +01:00
|
|
|
%{?suse_build_hwcaps_libs}
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "libjpeg62-turbo"
|
|
|
|
# needed for tests as we remove the lib here
|
|
|
|
BuildRequires: libturbojpeg0 >= 8.2.2
|
|
|
|
Conflicts: jpeg%{major}
|
|
|
|
%endif
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The libjpeg-turbo package contains a library of functions for manipulating
|
2018-08-08 20:05:14 +02:00
|
|
|
JPEG images. It supports architecture-specific SIMD instructions,
|
|
|
|
such as SSE/SSE2/AVX2, AltiVec, NEON, MIPS DSPR2, and Loongson MMI.
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
2018-08-08 20:05:14 +02:00
|
|
|
It also includes the following command line utilities:
|
2017-06-18 02:30:58 +02:00
|
|
|
djpeg - decompress a JPEG file to an image file
|
|
|
|
jpegtran - lossless transformation of JPEG files
|
|
|
|
rdjpgcom - display text comments from a JPEG file
|
|
|
|
wrjpgcom - insert text comments into a JPEG file
|
2018-08-01 14:49:51 +02:00
|
|
|
tjbench - a JPEG decompression/compression benchmark
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%package -n libjpeg%{major}
|
2012-09-30 20:10:46 +02:00
|
|
|
Version: %{libver}
|
|
|
|
Release: 0
|
2018-08-08 20:05:14 +02:00
|
|
|
Summary: A SIMD-accelerated JPEG compression/decompression library
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%description -n libjpeg%{major}
|
2018-08-08 20:05:14 +02:00
|
|
|
A library for manipulating JPEG images. It supports
|
|
|
|
architecture-specific SIMD instructions, such as SSE/SSE2/AVX2,
|
|
|
|
AltiVec, NEON, MIPS DSPR2, and Loongson MMI.
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%package -n libturbojpeg%{tmajor}
|
|
|
|
Version: %{version}
|
|
|
|
Release: 0
|
2018-08-08 20:05:14 +02:00
|
|
|
Summary: A SIMD-accelerated JPEG compression/decompression library
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
|
|
|
|
%description -n libturbojpeg%{tmajor}
|
2018-08-08 20:05:14 +02:00
|
|
|
A library for manipulating JPEG images. It supports
|
|
|
|
architecture-specific SIMD instructions, such as SSE/SSE2/AVX2,
|
|
|
|
AltiVec, NEON, MIPS DSPR2, and Loongson MMI.
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%package -n libjpeg%{major}-devel
|
2012-09-30 20:10:46 +02:00
|
|
|
Version: %{libver}
|
|
|
|
Release: 0
|
2012-03-22 14:59:53 +01:00
|
|
|
Summary: Development Tools for applications which will use the Libjpeg Library
|
2010-12-14 16:14:31 +01:00
|
|
|
Requires: libjpeg%{major} = %{version}
|
2023-06-27 15:20:09 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
2014-02-07 18:38:02 +01:00
|
|
|
Requires: libturbojpeg%{tmajor} = %{version}
|
2023-06-27 15:20:09 +02:00
|
|
|
%endif
|
2018-08-01 14:49:51 +02:00
|
|
|
Conflicts: libjpeg-devel
|
2010-12-10 15:42:49 +01:00
|
|
|
Provides: libjpeg-devel = %{version}
|
2012-03-22 14:59:53 +01:00
|
|
|
Obsoletes: libjpeg-devel < %{version}
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2012-03-22 14:59:53 +01:00
|
|
|
%description -n libjpeg%{major}-devel
|
2010-12-10 15:42:49 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2023-06-23 19:40:39 +02:00
|
|
|
%autosetup -p1 -n libjpeg-turbo-%{srcver}
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%build
|
2018-12-03 14:22:26 +01:00
|
|
|
MYLDFLAGS="-Wl,-z,relro,-z,now"
|
|
|
|
MYCFLAGS="%{optflags}"
|
|
|
|
%if %{asan_build}
|
|
|
|
MYLDFLAGS="$MYLDFLAGS -lasan"
|
|
|
|
MYCFLAGS="$MYCFLAGS -fsanitize=address"
|
|
|
|
%endif
|
|
|
|
%if %{debug_build}
|
2019-03-27 07:47:52 +01:00
|
|
|
MYCFLAGS="$MYCFLAGS -O0 -g"
|
2018-12-03 14:22:26 +01:00
|
|
|
%endif
|
2018-08-01 14:49:51 +02:00
|
|
|
%cmake \
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
|
|
|
-DWITH_JPEG8=ON \
|
|
|
|
%endif
|
2018-12-03 14:22:26 +01:00
|
|
|
%if %{debug_build} || %{asan_build}
|
|
|
|
-DCMAKE_BUILD_TYPE=DEBUG \
|
|
|
|
-DCMAKE_C_FLAGS_DEBUG="$MYCFLAGS" \
|
2021-05-04 13:15:25 +02:00
|
|
|
%endif
|
|
|
|
%ifarch armv6l armv6hl
|
|
|
|
-DWITH_SIMD=FALSE \
|
2018-12-03 14:22:26 +01:00
|
|
|
%endif
|
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="$MYLDFLAGS" \
|
2018-08-01 14:49:51 +02:00
|
|
|
-DENABLE_STATIC=OFF \
|
2021-01-12 10:46:34 +01:00
|
|
|
%ifarch s390x riscv64
|
|
|
|
-DFLOATTEST=fp-contract \
|
2018-09-24 10:15:46 +02:00
|
|
|
%endif
|
|
|
|
%{nil}
|
Accepting request 826111 from home:elimat:branches:graphics
- Update to version 2.0.5
* Worked around issues in the MIPS DSPr2 SIMD extensions that caused failures
in the libjpeg-turbo regression tests. Specifically, the
jsimd_h2v1_downsample_dspr2() and jsimd_h2v2_downsample_dspr2() functions
in the MIPS DSPr2 SIMD extensions are now disabled until/unless they can be
fixed, and other functions that are incompatible with big endian MIPS CPUs
are disabled when building libjpeg-turbo for such CPUs.
* Fixed an oversight in the TJCompressor.compress(int) method in the
TurboJPEG Java API that caused an error ("java.lang.IllegalStateException:
No source image is associated with this instance") when attempting to use
that method to compress a YUV image.
* Fixed an issue (CVE-2020-13790) in the PPM reader that caused a buffer
overrun in cjpeg, TJBench, or the tjLoadImage() function if one of the
values in a binary PPM/PGM input file exceeded the maximum value defined in
the file's header and that maximum value was less than 255. libjpeg-turbo
1.5.0 already included a similar fix for binary PPM/PGM files with maximum
values greater than 255.
* The TurboJPEG API library's global error handler, which is used in
functions such as tjBufSize() and tjLoadImage() that do not require a
TurboJPEG instance handle, is now thread-safe on platforms that support
thread-local storage.
- Fix source verification
- Drop patches fixed upstream:
* ctest-depends.patch
* libjpeg-turbo-CVE-2020-13790.patch
- Run spec-cleaner
* Remove package groups
* Use make macros
- Update to version 2.0.5
* Worked around issues in the MIPS DSPr2 SIMD extensions that caused failures
in the libjpeg-turbo regression tests. Specifically, the
jsimd_h2v1_downsample_dspr2() and jsimd_h2v2_downsample_dspr2() functions
in the MIPS DSPr2 SIMD extensions are now disabled until/unless they can be
fixed, and other functions that are incompatible with big endian MIPS CPUs
are disabled when building libjpeg-turbo for such CPUs.
* Fixed an oversight in the TJCompressor.compress(int) method in the
TurboJPEG Java API that caused an error ("java.lang.IllegalStateException:
No source image is associated with this instance") when attempting to use
that method to compress a YUV image.
* Fixed an issue (CVE-2020-13790) in the PPM reader that caused a buffer
overrun in cjpeg, TJBench, or the tjLoadImage() function if one of the
values in a binary PPM/PGM input file exceeded the maximum value defined in
the file's header and that maximum value was less than 255. libjpeg-turbo
1.5.0 already included a similar fix for binary PPM/PGM files with maximum
values greater than 255.
* The TurboJPEG API library's global error handler, which is used in
functions such as tjBufSize() and tjLoadImage() that do not require a
TurboJPEG instance handle, is now thread-safe on platforms that support
thread-local storage.
- Drop patches fixed upstream:
* ctest-depends.patch
* libjpeg-turbo-CVE-2020-13790.patch
- Run spec-cleaner
* Remove package groups
* Use make macros
OBS-URL: https://build.opensuse.org/request/show/826111
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=111
2020-08-13 09:14:02 +02:00
|
|
|
%make_build
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%check
|
2018-12-03 14:22:26 +01:00
|
|
|
%if %{asan_build}
|
|
|
|
# ASAN needs /proc to be mounted
|
|
|
|
exit 0
|
|
|
|
%endif
|
2018-08-01 14:49:51 +02:00
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
2022-04-11 20:23:05 +02:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version}
|
2020-03-30 09:45:57 +02:00
|
|
|
ctest --output-on-failure --force-new-ctest-process
|
|
|
|
%else
|
|
|
|
%ctest
|
|
|
|
%endif
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%install
|
2022-04-11 20:23:05 +02:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version}
|
2020-03-30 09:45:57 +02:00
|
|
|
make DESTDIR=%{buildroot} install/fast
|
|
|
|
%else
|
|
|
|
%cmake_install
|
|
|
|
%endif
|
2012-03-22 14:59:53 +01:00
|
|
|
# Remove docs, we'll select docs manually
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg62-turbo"
|
|
|
|
# Remove unwanted files
|
|
|
|
rm %{buildroot}%{_bindir}/*
|
|
|
|
rm %{buildroot}%{_mandir}/man1/*
|
|
|
|
# libjpegturbo is provided with libjpeg-turbo.spec yet
|
|
|
|
rm %{buildroot}%{_includedir}/turbojpeg.h
|
|
|
|
rm %{buildroot}%{_libdir}/libturbojpeg.so*
|
|
|
|
rm %{buildroot}%{_libdir}/pkgconfig/libturbojpeg.pc
|
|
|
|
rm -r %{buildroot}%{_libdir}/cmake
|
|
|
|
%endif
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%post -n libjpeg%{major} -p /sbin/ldconfig
|
|
|
|
%postun -n libjpeg%{major} -p /sbin/ldconfig
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%post -n libturbojpeg%{tmajor} -p /sbin/ldconfig
|
|
|
|
%postun -n libturbojpeg%{tmajor} -p /sbin/ldconfig
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
2010-12-10 15:42:49 +01:00
|
|
|
%files
|
2016-06-08 10:11:04 +02:00
|
|
|
%doc README.md change.log ChangeLog.md
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%doc usage.txt wizard.txt
|
2012-03-22 14:59:53 +01:00
|
|
|
%{_bindir}/*
|
2018-08-01 14:49:51 +02:00
|
|
|
%{_mandir}/man1/*
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%files -n libjpeg%{major}
|
2018-08-01 14:49:51 +02:00
|
|
|
%license LICENSE.md
|
2012-09-30 20:10:46 +02:00
|
|
|
%{_libdir}/libjpeg.so.%{libver}
|
|
|
|
%{_libdir}/libjpeg.so.%{major}
|
2010-12-10 15:42:49 +01:00
|
|
|
|
2023-06-23 19:40:39 +02:00
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%files -n libturbojpeg%{tmajor}
|
2018-08-01 14:49:51 +02:00
|
|
|
%license LICENSE.md
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
%{_libdir}/libturbojpeg.so.%{tmajor}
|
|
|
|
%{_libdir}/libturbojpeg.so.%{tlibver}
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
- update do 1.3.0:
* Fixed a Huffman encoder bug that prevented I/O suspension from
working properly.
* Added support for additional scaling factors (3/8, 5/8, 3/4,
7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2) when
decompressing. Note that the IDCT will not be SIMD-accelerated
when using any of these new scaling factors.
* The tjDecompressToYUV() function now supports the TJFLAG_FASTDCT
flag.
* cjpeg can now be used to generate JPEG files with the RGB
colorspace (feature ported from jpeg-8d.)
* etc. see ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=34
2013-09-10 14:52:09 +02:00
|
|
|
|
2010-12-14 16:14:31 +01:00
|
|
|
%files -n libjpeg%{major}-devel
|
2012-03-22 14:59:53 +01:00
|
|
|
%{_includedir}/*.h
|
2010-12-10 15:42:49 +01:00
|
|
|
%{_libdir}/libjpeg.so
|
2016-06-08 10:11:04 +02:00
|
|
|
%{_libdir}/pkgconfig/libjpeg.pc
|
2023-06-23 19:40:39 +02:00
|
|
|
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt tjexample.c
|
|
|
|
%if "%{flavor}" == "libjpeg-turbo"
|
|
|
|
%{_libdir}/libturbojpeg.so
|
2016-06-08 10:11:04 +02:00
|
|
|
%{_libdir}/pkgconfig/libturbojpeg.pc
|
2021-04-27 09:58:42 +02:00
|
|
|
%dir %{_libdir}/cmake/libjpeg-turbo
|
|
|
|
%{_libdir}/cmake/libjpeg-turbo/*
|
2023-06-23 19:40:39 +02:00
|
|
|
%endif
|
2010-12-10 15:42:49 +01:00
|
|
|
|
|
|
|
%changelog
|