Compare commits
No commits in common. "c8" and "c9-beta" have entirely different histories.
1
.LibRaw.metadata
Normal file
1
.LibRaw.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
0693a4ef073e277aec2b1f40f360e1dae2870fb1 SOURCES/0.21.1.tar.gz
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/LibRaw-0.19.5.tar.gz
|
SOURCES/0.21.1.tar.gz
|
||||||
|
|||||||
22
SOURCES/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
Normal file
22
SOURCES/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From 9ab70f6dca19229cb5caad7cc31af4e7501bac93 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alex Tutubalin <lexa@lexa.ru>
|
||||||
|
Date: Sat, 14 Jan 2023 18:32:59 +0300
|
||||||
|
Subject: [PATCH] do not set shrink flag for 3/4 component images
|
||||||
|
|
||||||
|
---
|
||||||
|
src/preprocessing/raw2image.cpp | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/preprocessing/raw2image.cpp b/src/preprocessing/raw2image.cpp
|
||||||
|
index e65e2ad7..702cf290 100644
|
||||||
|
--- a/src/preprocessing/raw2image.cpp
|
||||||
|
+++ b/src/preprocessing/raw2image.cpp
|
||||||
|
@@ -43,6 +43,8 @@ void LibRaw::raw2image_start()
|
||||||
|
|
||||||
|
// adjust for half mode!
|
||||||
|
IO.shrink =
|
||||||
|
+ !imgdata.rawdata.color4_image && !imgdata.rawdata.color3_image &&
|
||||||
|
+ !imgdata.rawdata.float4_image && !imgdata.rawdata.float3_image &&
|
||||||
|
P1.filters &&
|
||||||
|
(O.half_size || ((O.threshold || O.aber[0] != 1 || O.aber[2] != 1)));
|
||||||
|
|
||||||
@ -1,42 +0,0 @@
|
|||||||
--- libraw.pc.in~ 2014-01-17 07:38:31.000000000 -0600
|
|
||||||
+++ libraw.pc.in 2014-02-20 14:18:20.559279964 -0600
|
|
||||||
@@ -7,5 +7,6 @@
|
|
||||||
Description: Raw image decoder library (non-thread-safe)
|
|
||||||
Requires: @PACKAGE_REQUIRES@
|
|
||||||
Version: @PACKAGE_VERSION@
|
|
||||||
-Libs: -L${libdir} -lraw -lstdc++@PC_OPENMP@
|
|
||||||
+Libs: -L${libdir} -lraw@PC_OPENMP@
|
|
||||||
+Libs.private: -lstdc++
|
|
||||||
Cflags: -I${includedir}/libraw
|
|
||||||
--- libraw_r.pc.in~ 2014-01-17 07:38:31.000000000 -0600
|
|
||||||
+++ libraw_r.pc.in 2014-02-20 14:20:35.740276947 -0600
|
|
||||||
@@ -7,5 +7,6 @@
|
|
||||||
Description: Raw image decoder library (thread-safe)
|
|
||||||
Requires: @PACKAGE_REQUIRES@
|
|
||||||
Version: @PACKAGE_VERSION@
|
|
||||||
-Libs: -L${libdir} -lraw_r -lstdc++@PC_OPENMP@
|
|
||||||
+Libs: -L${libdir} -lraw_r@PC_OPENMP@
|
|
||||||
+Libs.private: -lstdc++
|
|
||||||
Cflags: -I${includedir}/libraw
|
|
||||||
--- libraw_r.pc.in~ 2014-02-20 14:22:36.000000000 -0600
|
|
||||||
+++ libraw_r.pc.in 2014-02-20 14:27:24.454267828 -0600
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
|
|
||||||
Name: libraw
|
|
||||||
Description: Raw image decoder library (thread-safe)
|
|
||||||
-Requires: @PACKAGE_REQUIRES@
|
|
||||||
+Requires.private: @PACKAGE_REQUIRES@
|
|
||||||
Version: @PACKAGE_VERSION@
|
|
||||||
Libs: -L${libdir} -lraw_r@PC_OPENMP@
|
|
||||||
Libs.private: -lstdc++
|
|
||||||
--- libraw.pc.in~ 2014-02-20 14:22:36.000000000 -0600
|
|
||||||
+++ libraw.pc.in 2014-02-20 14:27:18.368267964 -0600
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
|
|
||||||
Name: libraw
|
|
||||||
Description: Raw image decoder library (non-thread-safe)
|
|
||||||
-Requires: @PACKAGE_REQUIRES@
|
|
||||||
+Requires.private: @PACKAGE_REQUIRES@
|
|
||||||
Version: @PACKAGE_VERSION@
|
|
||||||
Libs: -L${libdir} -lraw@PC_OPENMP@
|
|
||||||
Libs.private: -lstdc++
|
|
||||||
@ -1,133 +0,0 @@
|
|||||||
diff -urNp LibRaw-0.19.5.orig/libraw/libraw_const.h LibRaw-0.19.5/libraw/libraw_const.h
|
|
||||||
--- LibRaw-0.19.5.orig/libraw/libraw_const.h 2020-08-10 18:32:18.669459968 +0200
|
|
||||||
+++ LibRaw-0.19.5/libraw/libraw_const.h 2020-08-10 18:48:10.462282067 +0200
|
|
||||||
@@ -24,6 +24,12 @@ it under the terms of the one of two lic
|
|
||||||
#define LIBRAW_MAX_ALLOC_MB 2048L
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+/* limit thumbnail size, default is 512Mb*/
|
|
||||||
+#ifndef LIBRAW_MAX_THUMBNAIL_MB
|
|
||||||
+#define LIBRAW_MAX_THUMBNAIL_MB 512L
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+
|
|
||||||
/* Change to non-zero to allow (broken) CRW (and other) files metadata
|
|
||||||
loop prevention */
|
|
||||||
#ifndef LIBRAW_METADATA_LOOP_PREVENTION
|
|
||||||
diff -urNp LibRaw-0.19.5.orig/src/libraw_cxx.cpp LibRaw-0.19.5/src/libraw_cxx.cpp
|
|
||||||
--- LibRaw-0.19.5.orig/src/libraw_cxx.cpp 2020-08-10 18:32:18.672459987 +0200
|
|
||||||
+++ LibRaw-0.19.5/src/libraw_cxx.cpp 2020-08-10 18:49:18.616688826 +0200
|
|
||||||
@@ -3712,6 +3712,21 @@ libraw_processed_image_t *LibRaw::dcraw_
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (T.tlength < 64u)
|
|
||||||
+ {
|
|
||||||
+ if (errcode)
|
|
||||||
+ *errcode = EINVAL;
|
|
||||||
+ return NULL;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (INT64(T.tlength) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB)
|
|
||||||
+ {
|
|
||||||
+ if (errcode)
|
|
||||||
+ *errcode = LIBRAW_TOO_BIG;
|
|
||||||
+ return NULL;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+
|
|
||||||
if (T.tformat == LIBRAW_THUMBNAIL_BITMAP)
|
|
||||||
{
|
|
||||||
libraw_processed_image_t *ret = (libraw_processed_image_t *)::malloc(sizeof(libraw_processed_image_t) + T.tlength);
|
|
||||||
@@ -3976,6 +3991,12 @@ void LibRaw::kodak_thumb_loader()
|
|
||||||
if (ID.toffset + est_datasize > ID.input->size() + THUMB_READ_BEYOND)
|
|
||||||
throw LIBRAW_EXCEPTION_IO_EOF;
|
|
||||||
|
|
||||||
+ if(INT64(T.theight) * INT64(T.twidth) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB)
|
|
||||||
+ throw LIBRAW_EXCEPTION_IO_CORRUPT;
|
|
||||||
+
|
|
||||||
+ if (INT64(T.theight) * INT64(T.twidth) < 64ULL)
|
|
||||||
+ throw LIBRAW_EXCEPTION_IO_CORRUPT;
|
|
||||||
+
|
|
||||||
// some kodak cameras
|
|
||||||
ushort s_height = S.height, s_width = S.width, s_iwidth = S.iwidth, s_iheight = S.iheight;
|
|
||||||
ushort s_flags = libraw_internal_data.unpacker_data.load_flags;
|
|
||||||
@@ -4237,6 +4258,25 @@ int LibRaw::unpack_thumb(void)
|
|
||||||
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
|
|
||||||
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
|
|
||||||
|
|
||||||
+#define THUMB_SIZE_CHECKT(A) \
|
|
||||||
+ do { \
|
|
||||||
+ if (INT64(A) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
|
|
||||||
+ if (INT64(A) > 0 && INT64(A) < 64ULL) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
|
|
||||||
+ } while (0)
|
|
||||||
+
|
|
||||||
+#define THUMB_SIZE_CHECKTNZ(A) \
|
|
||||||
+ do { \
|
|
||||||
+ if (INT64(A) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
|
|
||||||
+ if (INT64(A) < 64ULL) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
|
|
||||||
+ } while (0)
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+#define THUMB_SIZE_CHECKWH(W,H) \
|
|
||||||
+ do { \
|
|
||||||
+ if (INT64(W)*INT64(H) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
|
|
||||||
+ if (INT64(W)*INT64(H) < 64ULL) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
|
|
||||||
+ } while (0)
|
|
||||||
+
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (!libraw_internal_data.internal_data.input)
|
|
||||||
@@ -4267,6 +4307,7 @@ int LibRaw::unpack_thumb(void)
|
|
||||||
|
|
||||||
if (INT64(ID.toffset) + tsize > ID.input->size() + THUMB_READ_BEYOND)
|
|
||||||
throw LIBRAW_EXCEPTION_IO_EOF;
|
|
||||||
+ THUMB_SIZE_CHECKT(tsize);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
@@ -4280,6 +4321,7 @@ int LibRaw::unpack_thumb(void)
|
|
||||||
ID.input->seek(ID.toffset, SEEK_SET);
|
|
||||||
if (write_thumb == &LibRaw::jpeg_thumb)
|
|
||||||
{
|
|
||||||
+ THUMB_SIZE_CHECKTNZ(T.tlength);
|
|
||||||
if (T.thumb)
|
|
||||||
free(T.thumb);
|
|
||||||
T.thumb = (char *)malloc(T.tlength);
|
|
||||||
@@ -4326,6 +4368,7 @@ int LibRaw::unpack_thumb(void)
|
|
||||||
{
|
|
||||||
if (t_bytesps > 1)
|
|
||||||
throw LIBRAW_EXCEPTION_IO_CORRUPT; // 8-bit thumb, but parsed for more bits
|
|
||||||
+ THUMB_SIZE_CHECKWH(T.twidth, T.theight);
|
|
||||||
int t_length = T.twidth * T.theight * t_colors;
|
|
||||||
|
|
||||||
if (T.tlength && T.tlength < t_length) // try to find tiff ifd with needed offset
|
|
||||||
@@ -4351,8 +4394,12 @@ int LibRaw::unpack_thumb(void)
|
|
||||||
T.tcolors = 1;
|
|
||||||
}
|
|
||||||
T.tlength = total_size;
|
|
||||||
+ THUMB_SIZE_CHECKTNZ(T.tlength);
|
|
||||||
if (T.thumb)
|
|
||||||
free(T.thumb);
|
|
||||||
+
|
|
||||||
+ THUMB_SIZE_CHECKTNZ(T.tlength);
|
|
||||||
+
|
|
||||||
T.thumb = (char *)malloc(T.tlength);
|
|
||||||
merror(T.thumb, "ppm_thumb()");
|
|
||||||
|
|
||||||
@@ -4400,10 +4447,15 @@ int LibRaw::unpack_thumb(void)
|
|
||||||
if (t_bytesps > 2)
|
|
||||||
throw LIBRAW_EXCEPTION_IO_CORRUPT; // 16-bit thumb, but parsed for more bits
|
|
||||||
int o_bps = (imgdata.params.raw_processing_options & LIBRAW_PROCESSING_USE_PPM16_THUMBS) ? 2 : 1;
|
|
||||||
+ THUMB_SIZE_CHECKWH(T.twidth, T.theight);
|
|
||||||
int o_length = T.twidth * T.theight * t_colors * o_bps;
|
|
||||||
int i_length = T.twidth * T.theight * t_colors * 2;
|
|
||||||
if (!T.tlength)
|
|
||||||
T.tlength = o_length;
|
|
||||||
+ THUMB_SIZE_CHECKTNZ(o_length);
|
|
||||||
+ THUMB_SIZE_CHECKTNZ(i_length);
|
|
||||||
+ THUMB_SIZE_CHECKTNZ(T.tlength);
|
|
||||||
+
|
|
||||||
ushort *t_thumb = (ushort *)calloc(i_length, 1);
|
|
||||||
ID.input->read(t_thumb, 1, i_length);
|
|
||||||
if ((libraw_internal_data.unpacker_data.order == 0x4949) == (ntohs(0x1234) == 0x1234))
|
|
||||||
@ -1,42 +0,0 @@
|
|||||||
From 4d463048b9f27a3dc86b7010c198b32d995cd941 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Debarshi Ray <debarshir@gnome.org>
|
|
||||||
Date: Tue, 27 Apr 2021 17:44:09 +0200
|
|
||||||
Subject: [PATCH] Limit loops to MIN(colors,4)
|
|
||||||
|
|
||||||
This is a backport of commit 4feaed4dea636cee for CVE-2020-24870.
|
|
||||||
|
|
||||||
https://github.com/LibRaw/LibRaw/issues/330
|
|
||||||
---
|
|
||||||
internal/dcraw_common.cpp | 9 +++++----
|
|
||||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/internal/dcraw_common.cpp b/internal/dcraw_common.cpp
|
|
||||||
index a36553208194..3e8c009eb08e 100644
|
|
||||||
--- a/internal/dcraw_common.cpp
|
|
||||||
+++ b/internal/dcraw_common.cpp
|
|
||||||
@@ -19598,17 +19598,18 @@ dng_skip:
|
|
||||||
|
|
||||||
if(calidx[colidx] == sidx)
|
|
||||||
{
|
|
||||||
- for (int i = 0; i < colors; i++)
|
|
||||||
+ for (int i = 0; i < colors && i < 4; i++)
|
|
||||||
FORCC
|
|
||||||
cc[i][c] = tiff_ifd[sidx].dng_color[colidx].calibration[i][c];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(abidx == sidx)
|
|
||||||
- for (int i = 0; i < colors; i++)
|
|
||||||
+ for (int i = 0; i < colors && i < 4; i++)
|
|
||||||
FORCC cc[i][c] *= tiff_ifd[sidx].dng_levels.analogbalance[i];
|
|
||||||
int j;
|
|
||||||
- FORCC for (int i = 0; i < 3; i++) for (cam_xyz[c][i] = j = 0; j < colors; j++) cam_xyz[c][i] +=
|
|
||||||
- cc[c][j] * cm[j][i];// add AsShotXY later * xyz[i];
|
|
||||||
+ FORCC for (int i = 0; i < 3; i++)
|
|
||||||
+ for (cam_xyz[c][i] = j = 0; j < colors && j < 4; j++)
|
|
||||||
+ cam_xyz[c][i] += cc[c][j] * cm[j][i];// add AsShotXY later * xyz[i];
|
|
||||||
cam_xyz_coeff(cmatrix, cam_xyz);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.30.2
|
|
||||||
|
|
||||||
@ -1,41 +0,0 @@
|
|||||||
From 85e018cbca5eb3743eddca91d3d40c3123fa9777 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Debarshi Ray <debarshir@gnome.org>
|
|
||||||
Date: Tue, 19 Sep 2023 19:52:40 +0200
|
|
||||||
Subject: [PATCH] check for input buffer size on datastream::gets
|
|
||||||
|
|
||||||
(backported from commit fa329f37dca4a2c938f8abb50ee4a7ef93e64fbb)
|
|
||||||
---
|
|
||||||
src/libraw_datastream.cpp | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/libraw_datastream.cpp b/src/libraw_datastream.cpp
|
|
||||||
index bd9cf5ee55d7..aecd3997a707 100644
|
|
||||||
--- a/src/libraw_datastream.cpp
|
|
||||||
+++ b/src/libraw_datastream.cpp
|
|
||||||
@@ -175,6 +175,7 @@ INT64 LibRaw_file_datastream::tell()
|
|
||||||
|
|
||||||
char *LibRaw_file_datastream::gets(char *str, int sz)
|
|
||||||
{
|
|
||||||
+ if(sz<1) return NULL;
|
|
||||||
if (substream)
|
|
||||||
return substream->gets(str, sz);
|
|
||||||
LR_STREAM_CHK();
|
|
||||||
@@ -398,6 +399,7 @@ INT64 LibRaw_buffer_datastream::tell()
|
|
||||||
|
|
||||||
char *LibRaw_buffer_datastream::gets(char *s, int sz)
|
|
||||||
{
|
|
||||||
+ if(sz<1) return NULL;
|
|
||||||
if (substream)
|
|
||||||
return substream->gets(s, sz);
|
|
||||||
unsigned char *psrc, *pdest, *str;
|
|
||||||
@@ -594,6 +596,7 @@ INT64 LibRaw_bigfile_datastream::tell()
|
|
||||||
|
|
||||||
char *LibRaw_bigfile_datastream::gets(char *str, int sz)
|
|
||||||
{
|
|
||||||
+ if(sz<1) return NULL;
|
|
||||||
LR_BF_CHK();
|
|
||||||
return substream ? substream->gets(str, sz) : fgets(str, sz, f);
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.41.0
|
|
||||||
|
|
||||||
25
SOURCES/LibRaw-pkgconfig.patch
Normal file
25
SOURCES/LibRaw-pkgconfig.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- LibRaw-0.21.0/libraw.pc.in~ 2022-12-18 01:26:41.000000000 -0600
|
||||||
|
+++ LibRaw-0.21.0/libraw.pc.in 2022-12-19 10:27:02.793929537 -0600
|
||||||
|
@@ -6,7 +6,9 @@
|
||||||
|
Name: libraw
|
||||||
|
Description: Raw image decoder library (non-thread-safe)
|
||||||
|
Requires: @PACKAGE_REQUIRES@
|
||||||
|
+Requires.private: @PACKAGE_REQUIRES@
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
-Libs: -L${libdir} -lraw -lstdc++@PC_OPENMP@
|
||||||
|
+Libs: -L${libdir} -lraw@PC_OPENMP@
|
||||||
|
+Libs.private: -lstdc++
|
||||||
|
Libs.private: @PACKAGE_LIBS_PRIVATE@
|
||||||
|
Cflags: -I${includedir}/libraw -I${includedir}
|
||||||
|
--- LibRaw-0.21.0/libraw_r.pc.in~ 2022-12-18 01:26:41.000000000 -0600
|
||||||
|
+++ LibRaw-0.21.0/libraw_r.pc.in 2022-12-19 10:28:30.620571338 -0600
|
||||||
|
@@ -6,7 +6,8 @@
|
||||||
|
Name: libraw
|
||||||
|
Description: Raw image decoder library (thread-safe)
|
||||||
|
Requires: @PACKAGE_REQUIRES@
|
||||||
|
+Requires.private: @PACKAGE_REQUIRES@
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
-Libs: -L${libdir} -lraw_r -lstdc++@PC_OPENMP@
|
||||||
|
+Libs: -L${libdir} -lraw_r@PC_OPENMP@
|
||||||
|
Libs.private: @PACKAGE_LIBS_PRIVATE@
|
||||||
|
Cflags: -I${includedir}/libraw -I${includedir}
|
||||||
@ -1,8 +1,14 @@
|
|||||||
|
|
||||||
|
# feature macro to enable samples (or not)
|
||||||
|
%if 0%{?rhel} != 7
|
||||||
|
%global samples 1
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Library for reading RAW files obtained from digital photo cameras
|
Summary: Library for reading RAW files obtained from digital photo cameras
|
||||||
Name: LibRaw
|
Name: LibRaw
|
||||||
Version: 0.19.5
|
Version: 0.21.1
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
License: BSD and (CDDL or LGPLv2)
|
License: BSD and LGPLv2
|
||||||
URL: http://www.libraw.org
|
URL: http://www.libraw.org
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -10,12 +16,15 @@ BuildRequires: pkgconfig(lcms2)
|
|||||||
BuildRequires: pkgconfig(jasper)
|
BuildRequires: pkgconfig(jasper)
|
||||||
BuildRequires: pkgconfig(libjpeg)
|
BuildRequires: pkgconfig(libjpeg)
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
|
Source0: http://github.com/LibRaw/LibRaw/archive/%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: LibRaw-pkgconfig.patch
|
||||||
|
|
||||||
|
# CVE-2023-1729
|
||||||
|
Patch1: 9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
|
||||||
|
|
||||||
Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
|
|
||||||
Patch0: LibRaw-0.6.0-pkgconfig.patch
|
|
||||||
Patch1: LibRaw-CVE-2020-15503.patch
|
|
||||||
Patch2: LibRaw-CVE-2020-24870.patch
|
|
||||||
Patch3: LibRaw-CVE-2021-32142.patch
|
|
||||||
Provides: bundled(dcraw) = 9.25
|
Provides: bundled(dcraw) = 9.25
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -42,31 +51,20 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|||||||
%description static
|
%description static
|
||||||
LibRaw static development libraries.
|
LibRaw static development libraries.
|
||||||
|
|
||||||
%if 0%{?rhel} != 7
|
|
||||||
%package samples
|
%package samples
|
||||||
Summary: LibRaw sample programs
|
Summary: LibRaw sample programs
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description samples
|
%description samples
|
||||||
LibRaw sample programs
|
LibRaw sample programs
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
|
|
||||||
%patch0 -p0 -b .pkgconfig
|
|
||||||
%patch1 -p1 -b .cve-2020-15503
|
|
||||||
%patch2 -p1 -b .cve-2020-24870
|
|
||||||
%patch3 -p1 -b .cve-2021-32142
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -if
|
autoreconf -if
|
||||||
%configure \
|
%configure \
|
||||||
%if 0%{?rhel} == 7
|
--enable-examples=%{?samples:yes}%{!?samples:no} \
|
||||||
--enable-examples=no \
|
|
||||||
%else
|
|
||||||
--enable-examples=yes \
|
|
||||||
%endif
|
|
||||||
--enable-jasper \
|
--enable-jasper \
|
||||||
--enable-jpeg \
|
--enable-jpeg \
|
||||||
--enable-lcms \
|
--enable-lcms \
|
||||||
@ -97,8 +95,8 @@ rm -fv %{buildroot}%{_libdir}/lib*.la
|
|||||||
%files
|
%files
|
||||||
%doc Changelog.txt
|
%doc Changelog.txt
|
||||||
%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
|
%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
|
||||||
%{_libdir}/libraw.so.19*
|
%{_libdir}/libraw.so.23*
|
||||||
%{_libdir}/libraw_r.so.19*
|
%{_libdir}/libraw_r.so.23*
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%{_libdir}/libraw.a
|
%{_libdir}/libraw.a
|
||||||
@ -114,51 +112,118 @@ rm -fv %{buildroot}%{_libdir}/lib*.la
|
|||||||
%{_libdir}/pkgconfig/libraw_r.pc
|
%{_libdir}/pkgconfig/libraw_r.pc
|
||||||
%exclude %{_docdir}/libraw/*
|
%exclude %{_docdir}/libraw/*
|
||||||
|
|
||||||
%if 0%{?rhel} != 7
|
%if 0%{?samples}
|
||||||
%files samples
|
%files samples
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Oct 23 2023 Debarshi Ray <rishi@fedoraproject.org> - 0.19.5-4
|
* Mon Oct 02 2023 Debarshi Ray <rishi@fedoraproject.org> - 0.21.1-1
|
||||||
- Backport fix for CVE-2021-32142 from upstream
|
- 0.21.1
|
||||||
Resolves: RHEL-9523
|
- Include the fix for CVE-2023-1729 from Fedora
|
||||||
|
Resolves: RHEL-768
|
||||||
|
|
||||||
* Tue Apr 27 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.19.5-3
|
* Tue Apr 04 2023 Debarshi Ray <rishi@fedoraproject.org> - 0.20.2-6
|
||||||
- Backport fix for CVE-2020-24870 from upstream
|
- Fix CVE-2021-32142
|
||||||
Resolves: #1931841
|
Resolves: #2172140
|
||||||
|
|
||||||
* Mon Aug 10 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.19.5-2
|
* Mon Dec 13 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.20.2-5
|
||||||
- Backport fix for CVE-2020-15503 from Fedora
|
- CDDL is not an approved license
|
||||||
Resolves: #1853529
|
Resolves: #2031918
|
||||||
|
|
||||||
* Wed Oct 30 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.19.5-1
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.20.2-4
|
||||||
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.20.2-3
|
||||||
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Oct 15 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.20.2-1
|
||||||
|
- 0.20.2
|
||||||
|
|
||||||
|
* Wed Oct 14 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.20.1-1
|
||||||
|
- 0.20.1
|
||||||
|
|
||||||
|
* Thu Sep 24 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.20.0-3
|
||||||
|
- Patch for CVE-2020-24890.
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 23 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.20.0-1
|
||||||
|
- 0.20.0 final.
|
||||||
|
|
||||||
|
* Thu Jul 02 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.20-0.rc1.3
|
||||||
|
- RC1
|
||||||
|
|
||||||
|
* Mon Jun 29 2020 Gwyn Ciesla <gwync@protonmail.com>- 0.20-0.beta1.2
|
||||||
|
- Patch for CVE-2020-15365
|
||||||
|
|
||||||
|
* Wed May 13 2020 Kalev Lember <klember@redhat.com> - 0.20-0.beta1.1
|
||||||
|
- Add back pkgconfig patch lost in the previous commit
|
||||||
|
|
||||||
|
* Thu May 07 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.20-0.beta1
|
||||||
|
- 0.20 Beta 1
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Aug 20 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.19.5-1
|
||||||
- 0.19.5
|
- 0.19.5
|
||||||
Resolves: #1671744
|
|
||||||
|
|
||||||
* Fri Dec 14 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.1-1
|
* Mon Aug 05 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.19.4-1
|
||||||
|
- 0.19.4
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 03 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.19.3-1
|
||||||
|
- 0.19.3
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 02 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.19.2-2
|
||||||
|
- Remove the samples subpackage from RHEL 7
|
||||||
|
|
||||||
|
* Wed Dec 26 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.19.2-1
|
||||||
|
- 0.19.2
|
||||||
|
|
||||||
|
* Thu Nov 22 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.1-1
|
||||||
- 0.19.1
|
- 0.19.1
|
||||||
Resolves: #1654688
|
|
||||||
|
|
||||||
* Mon Oct 08 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-3
|
* Mon Oct 08 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-6
|
||||||
- Remove the build artifacts for the samples
|
- Remove the build artifacts for the samples
|
||||||
Resolves: #1633708
|
|
||||||
|
|
||||||
* Mon Oct 08 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-2
|
* Mon Oct 08 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-5
|
||||||
- Bind the samples sub-package more tightly to the main package
|
- Bind the samples sub-package more tightly to the main package
|
||||||
Resolves: #1633708
|
|
||||||
|
|
||||||
* Thu Sep 27 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-1
|
* Tue Jul 31 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.19.0-4
|
||||||
- 0.19.0
|
|
||||||
- Fix License
|
- Fix License
|
||||||
- Explicitly enable JPEG and OpenMP support to avoid surprises
|
- Explicitly enable JPEG and OpenMP support to avoid surprises
|
||||||
- Tighten %%files, mostly so api/soname changes will no longer be a surpise
|
|
||||||
- Use %%make_build %%ldconfig_scriptlets
|
|
||||||
Resolves: #1633708
|
|
||||||
|
|
||||||
* Thu Jul 19 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.18.13-1
|
* Thu Jul 19 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.19.0-3
|
||||||
- 0.18.13.
|
- tighten %%files, mostly so api/soname changes will no longer be a surpise
|
||||||
|
- use %%make_build %%ldconfig_scriptlets
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 29 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.19.0-1
|
||||||
|
- 0.19.0.
|
||||||
|
|
||||||
|
* Mon Jun 11 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.18.12-1
|
||||||
|
- 0.18.12.
|
||||||
|
|
||||||
|
* Thu May 10 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.18.11-1
|
||||||
|
- 0.18.11.
|
||||||
|
|
||||||
|
* Thu May 03 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.18.10-1
|
||||||
|
- 0.18.10.
|
||||||
|
|
||||||
* Wed Apr 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.18.9-1
|
* Wed Apr 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.18.9-1
|
||||||
- 0.18.9.
|
- 0.18.9.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user