Accepting request 986547 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/986547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pillow?expand=0&rev=56
This commit is contained in:
Dominique Leuenberger 2022-07-05 10:27:02 +00:00 committed by Git OBS Bridge
commit c0595db3cb
5 changed files with 55 additions and 50 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7502539939b53d7565f3d11d87c78e7ec900d3c72945d4ee0e2f250d598309a0
size 49764564

3
Pillow-9.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75e636fd3e0fb872693f23ccb8a5ff2cd578801251f3a4f6854c6a5d437d3c04
size 50017840

View File

@ -1,3 +1,54 @@
-------------------------------------------------------------------
Fri Jul 1 17:02:08 UTC 2022 - Michael Ströder <michael@stroeder.com>
- removed obsolete tiff-readcount.patch
- update to 9.2.0
* Deprecate ImageFont.getsize and related functions #6381 [nulano, radarhere]
* Fixed null check for fribidi_version_info in FriBiDi shim #6376 [nulano]
* Added GIF decompression bomb check #6402 [radarhere]
* Handle PCF fonts files with less than 256 characters #6386 [dawidcrivelli, radarhere]
* Improved GIF optimize condition #6378 [raygard, radarhere]
* Reverted to __array_interface__ with the release of NumPy 1.23 #6394 [radarhere]
* Pad PCX palette to 768 bytes when saving #6391 [radarhere]
* Fixed bug with rounding pixels to palette colors #6377 [btrekkie, radarhere]
* Use gnome-screenshot on Linux if available #6361 [radarhere, nulano]
* Fixed loading L mode BMP RLE8 images #6384 [radarhere]
* Fixed incorrect operator in ImageCms error #6370 [LostBenjamin, hugovk, radarhere]
* Limit FPX tile size to avoid extending outside image #6368 [radarhere]
* Added support for decoding plain PPM formats #5242 [Piolie, radarhere]
* Added apply_transparency() #6352 [radarhere]
* Fixed behaviour change from endian fix #6197 [radarhere]
* Allow remapping P images with RGBA palettes #6350 [radarhere]
* Fixed drawing translucent 1px high polygons #6278 [radarhere]
* Pad COLORMAP to 768 items when saving TIFF #6232 [radarhere]
* Fix P -> PA conversion #6337 [RedShy, radarhere]
* Once exif data is parsed, do not reload unless it changes #6335 [radarhere]
* Only try to connect discontiguous corners at the end of edges #6303 [radarhere]
* Improve transparency handling when saving GIF images #6176 [radarhere]
* Do not update GIF frame position until local image is found #6219 [radarhere]
* Netscape GIF extension belongs after the global color table #6211 [radarhere]
* Only write GIF comments at the beginning of the file #6300 [raygard, radarhere]
* Separate multiple GIF comment blocks with newlines #6294 [raygard, radarhere]
* Always use GIF89a for comments #6292 [raygard, radarhere]
* Ignore compression value from BMP info dictionary when saving as TIFF #6231 [radarhere]
* If font is file-like object, do not re-read from object to get variant #6234 [radarhere]
* Raise ValueError when trying to access internal fp after close #6213 [radarhere]
* Support more affine expression forms in im.point() #6254 [benrg, radarhere]
* Populate Python palette in fromarray() #6283 [radarhere]
* Raise ValueError if PNG chunks are truncated #6253 [radarhere]
* Use durations from each frame by default when saving GIFs #6265 [radarhere]
* Adjust BITSPERSAMPLE to match SAMPLESPERPIXEL when opening TIFFs #6270 [radarhere]
* Search pkgconf system libs/cflags #6138 [jameshilliard, radarhere]
* Raise ValueError for invalid PPM maxval #6242 [radarhere]
* Corrected screencapture argument in ImageGrab.grab() #6244 [axt-one]
* Deprecate support for Qt 5 (PyQt5 and PySide2) #6237 [hugovk, radarhere]
* Increase wait time of temporary file deletion on Windows #6224 [AlexTedeschi]
* Deprecate FreeTypeFont.getmask2 fill parameter #6220 [nulano, radarhere, hugovk]
* Round lut values where necessary #6188 [radarhere]
* Load before getting size in resize() #6190 [radarhere]
* Load image before performing size calculations in thumbnail() #6186 [radarhere]
* Deprecated PhotoImage.paste() box parameter #6178 [radarhere]
-------------------------------------------------------------------
Wed Jun 1 12:28:33 UTC 2022 - Markéta Machová <mmachova@suse.com>

View File

@ -20,14 +20,12 @@
%define skip_python2 1
%define skip_python36 1
Name: python-Pillow
Version: 9.1.1
Version: 9.2.0
Release: 0
Summary: Python Imaging Library (Fork)
License: HPND
URL: https://python-pillow.org/
Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/python-pillow/Pillow/commit/40a918d274182b7d7c063d7797fb77d967982c4a Set readcount to TIFF_VARIABLE for a variable number of values
Patch0: tiff-readcount.patch
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module olefile}
BuildRequires: %{python_module pytest >= 4.0}

View File

@ -1,44 +0,0 @@
From 40a918d274182b7d7c063d7797fb77d967982c4a Mon Sep 17 00:00:00 2001
From: Andrew Murray <radarhere@users.noreply.github.com>
Date: Sat, 28 May 2022 20:14:05 +1000
Subject: [PATCH] Set readcount to TIFF_VARIABLE for a variable number of
values
---
src/libImaging/TiffDecode.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/src/libImaging/TiffDecode.c b/src/libImaging/TiffDecode.c
index f818f19d50..3bb444c804 100644
--- a/src/libImaging/TiffDecode.c
+++ b/src/libImaging/TiffDecode.c
@@ -815,11 +815,11 @@ ImagingLibTiffMergeFieldInfo(
// custom fields added with ImagingLibTiffMergeFieldInfo are only used for
// decoding, ignore readcount;
- int readcount = 1;
+ int readcount = is_var_length ? TIFF_VARIABLE : 1;
// we support writing a single value, or a variable number of values
- int writecount = 1;
+ int writecount = is_var_length ? TIFF_VARIABLE : 1;
// whether the first value should encode the number of values.
- int passcount = 0;
+ int passcount = (is_var_length && field_type != TIFF_ASCII) ? 1 : 0;
TIFFFieldInfo info[] = {
{key,
@@ -831,14 +831,6 @@ ImagingLibTiffMergeFieldInfo(
passcount,
"CustomField"}};
- if (is_var_length) {
- info[0].field_writecount = -1;
- }
-
- if (is_var_length && field_type != TIFF_ASCII) {
- info[0].field_passcount = 1;
- }
-
n = sizeof(info) / sizeof(info[0]);
// Test for libtiff 4.0 or later, excluding libtiff 3.9.6 and 3.9.7