2019-01-19 18:42:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Imager
|
|
|
|
#
|
2025-02-11 07:11:21 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-01-19 18:42:38 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-02-16 08:22:36 +00:00
|
|
|
|
Accepting request 983928 from devel:languages:perl:autoupdate
- updated to 1.018
see /usr/share/doc/packages/perl-Imager/Changes
Imager 1.018 - 19 Jun 2022
============
- skip trying to produce deprecation warnings before perl 5.14, since
that doesn't support custom warning categories within a package.
This prevents pointless failures on these old versions of perl.
Imager 1.017 - 14 Jun 2022
============
Bug fix:
- fix a one bytes underallocation for Imager::TrimColorList. On
older perls this could lead to writing a zero byte one past the end
of the allocated block.
Documentation:
- expand on why you might want to call Imager->preload() and that you
probably don't need to.
Imager 1.016 - 12 Jun 2022
============
Upcoming backward incompatible changes:
- deprecate setting/deleting tags by code. If this causes you a
problem please open an issue. You can disable the warning produced
with:
no warnings 'Imager::tagcodes';
- deprecate image channel masks. If this causes you a problem please
open an issue. You can disable the warning produced with:
no warnings 'Imager::channelmask';
If you use either of these features please let me know.
Minor features:
- add magic/extension support for AVIF files, see Imager::File::AVIF
on CPAN.
- treat an unknown extension of two or more characters as a potential
file type on write.
Bug fixes:
- prevent a possible undefined value warning from t/t10jpeg.t
- update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing.
- TGA: failing to read in the palette of a paletted TGA file would
leak memory.
- JPEG: supplying invalid values for the new JPEG write tags could
leak memory.
- PNG: fix validation of Latin1 only tags when writing PNGs.
(detected by clang)
- matrix_transform: correctly use fabs() instead of abs() on floating
point values when deciding whether to divide for a perspective
transform. (detected by clang)
- fix the i_poly_aa_cfill_m() API macro
Cage cleaning:
- eliminate IO::File usage from the Imager code base
- fix a type error harmlessly ignored by gcc but found by clang
- eliminate memory leaks in sub-module Makefile.PL probe test code to
allow the probes to succeed under LeakSanitizer.
- BMP: fix some otherwise harmless clang warnings
- remove some code meant to work around some unspecified old Solaris
linker bug.
- i_noise: prevent a harmless conversion warning from clang
- fountain fill/filter: limit ssample_param to 1000 to simplify code.
Imager 1.015 - 7 May 2022
============
- rename the "virtual" member of i_img to "isvirtual" to allow the
API to be used from C++, this may break source compatibility, using
the i_img_virtual() accessor is backward compatible.
- add cookbook entry to populating an image from raw RGB samples
https://github.com/tonycoz/imager/issues/471
- Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the
front of the PKG_CONFIG_PATH used when it calls pkg-config.
- setup CodeQL workflow and fix detected warnings
JPEG updates:
- detect libjpeg (of whichever variety) via pkg-config if possible
- add specific support for mozjpeg (turn its optimization off by
default so tests pass.)
- add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and
has_arith_coding() methods
- add jpeg_compress_profile output tag, which only matters for
mozjpeg
- the libjpeg_version() method replaces the old
Imager::File::JPEG::i_libjpeg_version() function, and the format
has changed.
- various obscure jpeg output controls:
- add support for JPEG arithmetic coding when the supplied libjpeg
supports it. Note that not all JPEG decoders can handle arithmetic
coded JPEGs.
- add support for disabling the JFIF header for JPEG files using the
jpeg_jfif tag.
- add support for smoothing to eliminate dithering noise (like cjpeg
-smooth) using the jpeg_smooth tag.
- add support for producing JPEG restart markers (like cjpeg -restart
N), using the jpeg_restart tag.
- add control over subsample for JPEG (like the cjpeg -sample
parameter) using the jpeg_sample tag
- added tags for the rest of the MozJPEG API parameters.
- add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-*
options.
Imager 1.014 - 28 Apr 2022
============
Bug fixes:
- fix failed to build on non-threaded perls.
https://github.com/tonycoz/imager/issues/472
- when writing a paletted image with an alpha channel to PNG only
set the tRNS chunk if the image has transparent colours. With
older libpng this could add an erroneous tRNS chunk (or possibly
undefined behaviour if I understand the libpng code).
https://github.com/tonycoz/imager/issues/459
Features:
- Imager::Color and Imager::Color::Float objects can now be created
from CSS style rgb(...) strings.
https://github.com/tonycoz/imager/issues/463
- added the as_css_rgb() method to both Imager::Color and
Imager::Color::Float to format the supplied color as a CSS style
rgb() string.
https://github.com/tonycoz/imager/issues/463
- Imager::Color and Imager::Color::Float objects can now be created
(copied) or set from other Imager::Color or Imager::Color::Float
objects.
Imager 1.013 - 27 Apr 2022
============
- added rgb_difference() method
Thanks to Andreas König
https://github.com/tonycoz/imager/pull/462
- update ppport.h to prevent a redefinition diagnostic
- update bug tracker URLs to point at github
https://github.com/tonycoz/imager/pull/466
- update some other bug tracker URLs too.
- add the trim() and trim_rect() methods, to trim borders off an
image.
- add the as_float() method to Imager::Color and the as_8bit() method
to Imager::Color::Float to convert between the two types.
- update ppport.h to avoid a diagnostic in more modern perls.
- add detection for HEIF, JPEG XL and QOI image formats
OBS-URL: https://build.opensuse.org/request/show/983928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
|
|
|
%define cpan_name Imager
|
2011-02-16 08:22:36 +00:00
|
|
|
Name: perl-Imager
|
2025-06-24 07:16:11 +00:00
|
|
|
Version: 1.28.0
|
2011-02-16 08:22:36 +00:00
|
|
|
Release: 0
|
2025-06-24 07:16:11 +00:00
|
|
|
# 1.028 -> normalize -> 1.28.0
|
|
|
|
%define cpan_version 1.028
|
2019-01-19 18:42:38 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
Accepting request 983928 from devel:languages:perl:autoupdate
- updated to 1.018
see /usr/share/doc/packages/perl-Imager/Changes
Imager 1.018 - 19 Jun 2022
============
- skip trying to produce deprecation warnings before perl 5.14, since
that doesn't support custom warning categories within a package.
This prevents pointless failures on these old versions of perl.
Imager 1.017 - 14 Jun 2022
============
Bug fix:
- fix a one bytes underallocation for Imager::TrimColorList. On
older perls this could lead to writing a zero byte one past the end
of the allocated block.
Documentation:
- expand on why you might want to call Imager->preload() and that you
probably don't need to.
Imager 1.016 - 12 Jun 2022
============
Upcoming backward incompatible changes:
- deprecate setting/deleting tags by code. If this causes you a
problem please open an issue. You can disable the warning produced
with:
no warnings 'Imager::tagcodes';
- deprecate image channel masks. If this causes you a problem please
open an issue. You can disable the warning produced with:
no warnings 'Imager::channelmask';
If you use either of these features please let me know.
Minor features:
- add magic/extension support for AVIF files, see Imager::File::AVIF
on CPAN.
- treat an unknown extension of two or more characters as a potential
file type on write.
Bug fixes:
- prevent a possible undefined value warning from t/t10jpeg.t
- update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing.
- TGA: failing to read in the palette of a paletted TGA file would
leak memory.
- JPEG: supplying invalid values for the new JPEG write tags could
leak memory.
- PNG: fix validation of Latin1 only tags when writing PNGs.
(detected by clang)
- matrix_transform: correctly use fabs() instead of abs() on floating
point values when deciding whether to divide for a perspective
transform. (detected by clang)
- fix the i_poly_aa_cfill_m() API macro
Cage cleaning:
- eliminate IO::File usage from the Imager code base
- fix a type error harmlessly ignored by gcc but found by clang
- eliminate memory leaks in sub-module Makefile.PL probe test code to
allow the probes to succeed under LeakSanitizer.
- BMP: fix some otherwise harmless clang warnings
- remove some code meant to work around some unspecified old Solaris
linker bug.
- i_noise: prevent a harmless conversion warning from clang
- fountain fill/filter: limit ssample_param to 1000 to simplify code.
Imager 1.015 - 7 May 2022
============
- rename the "virtual" member of i_img to "isvirtual" to allow the
API to be used from C++, this may break source compatibility, using
the i_img_virtual() accessor is backward compatible.
- add cookbook entry to populating an image from raw RGB samples
https://github.com/tonycoz/imager/issues/471
- Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the
front of the PKG_CONFIG_PATH used when it calls pkg-config.
- setup CodeQL workflow and fix detected warnings
JPEG updates:
- detect libjpeg (of whichever variety) via pkg-config if possible
- add specific support for mozjpeg (turn its optimization off by
default so tests pass.)
- add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and
has_arith_coding() methods
- add jpeg_compress_profile output tag, which only matters for
mozjpeg
- the libjpeg_version() method replaces the old
Imager::File::JPEG::i_libjpeg_version() function, and the format
has changed.
- various obscure jpeg output controls:
- add support for JPEG arithmetic coding when the supplied libjpeg
supports it. Note that not all JPEG decoders can handle arithmetic
coded JPEGs.
- add support for disabling the JFIF header for JPEG files using the
jpeg_jfif tag.
- add support for smoothing to eliminate dithering noise (like cjpeg
-smooth) using the jpeg_smooth tag.
- add support for producing JPEG restart markers (like cjpeg -restart
N), using the jpeg_restart tag.
- add control over subsample for JPEG (like the cjpeg -sample
parameter) using the jpeg_sample tag
- added tags for the rest of the MozJPEG API parameters.
- add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-*
options.
Imager 1.014 - 28 Apr 2022
============
Bug fixes:
- fix failed to build on non-threaded perls.
https://github.com/tonycoz/imager/issues/472
- when writing a paletted image with an alpha channel to PNG only
set the tRNS chunk if the image has transparent colours. With
older libpng this could add an erroneous tRNS chunk (or possibly
undefined behaviour if I understand the libpng code).
https://github.com/tonycoz/imager/issues/459
Features:
- Imager::Color and Imager::Color::Float objects can now be created
from CSS style rgb(...) strings.
https://github.com/tonycoz/imager/issues/463
- added the as_css_rgb() method to both Imager::Color and
Imager::Color::Float to format the supplied color as a CSS style
rgb() string.
https://github.com/tonycoz/imager/issues/463
- Imager::Color and Imager::Color::Float objects can now be created
(copied) or set from other Imager::Color or Imager::Color::Float
objects.
Imager 1.013 - 27 Apr 2022
============
- added rgb_difference() method
Thanks to Andreas König
https://github.com/tonycoz/imager/pull/462
- update ppport.h to prevent a redefinition diagnostic
- update bug tracker URLs to point at github
https://github.com/tonycoz/imager/pull/466
- update some other bug tracker URLs too.
- add the trim() and trim_rect() methods, to trim borders off an
image.
- add the as_float() method to Imager::Color and the as_8bit() method
to Imager::Color::Float to convert between the two types.
- update ppport.h to avoid a diagnostic in more modern perls.
- add detection for HEIF, JPEG XL and QOI image formats
OBS-URL: https://build.opensuse.org/request/show/983928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
|
|
|
Summary: Perl extension for Generating 24 bit Images
|
2020-10-24 20:32:06 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-11-16 16:41:52 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TONYC/%{cpan_name}-%{cpan_version}.tar.gz
|
2020-10-24 20:32:06 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:45 +02:00
|
|
|
Source100: README.md
|
2020-10-24 20:32:06 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::More) >= 0.99
|
|
|
|
Requires: perl(Test::More) >= 0.99
|
2024-03-01 09:01:26 +00:00
|
|
|
Provides: perl(Imager) = %{version}
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Color) = 1.15.0
|
|
|
|
Provides: perl(Imager::Color::Float) = 1.8.0
|
|
|
|
Provides: perl(Imager::Color::Table) = 1.4.0
|
2025-02-11 07:11:21 +00:00
|
|
|
Provides: perl(Imager::CountColor) = 0.30.0
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Expr) = 1.8.0
|
|
|
|
Provides: perl(Imager::Expr::Assem) = 1.4.0
|
2023-11-16 16:41:52 +00:00
|
|
|
Provides: perl(Imager::Expr::Infix)
|
|
|
|
Provides: perl(Imager::Expr::Postfix)
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::ExtUtils) = 1.3.0
|
2023-11-16 16:41:52 +00:00
|
|
|
Provides: perl(Imager::FORMATS)
|
2025-02-11 07:11:21 +00:00
|
|
|
Provides: perl(Imager::File::CUR) = 1.0.0
|
|
|
|
Provides: perl(Imager::File::ICO) = 0.80.0
|
|
|
|
Provides: perl(Imager::File::SGI) = 0.50.0
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Fill) = 1.13.0
|
2025-02-11 07:11:21 +00:00
|
|
|
Provides: perl(Imager::Filter::DynTest) = 0.30.0
|
|
|
|
Provides: perl(Imager::Filter::Flines) = 0.40.0
|
|
|
|
Provides: perl(Imager::Filter::Mandelbrot) = 0.50.0
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Font) = 1.39.0
|
|
|
|
Provides: perl(Imager::Font::BBox) = 1.7.0
|
|
|
|
Provides: perl(Imager::Font::FreeType2) = 1.21.0
|
|
|
|
Provides: perl(Imager::Font::Image) = 1.0.0
|
|
|
|
Provides: perl(Imager::Font::Test) = 1.2.0
|
|
|
|
Provides: perl(Imager::Font::Truetype) = 1.13.0
|
|
|
|
Provides: perl(Imager::Font::Type1) = 1.13.0
|
|
|
|
Provides: perl(Imager::Font::Wrap) = 1.5.0
|
|
|
|
Provides: perl(Imager::Fountain) = 1.9.0
|
2023-11-16 16:41:52 +00:00
|
|
|
Provides: perl(Imager::IO)
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Matrix2d) = 1.13.0
|
|
|
|
Provides: perl(Imager::Preprocess) = 1.3.0
|
2025-06-24 07:16:11 +00:00
|
|
|
Provides: perl(Imager::Probe) = 1.11.0
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Regops) = 1.0.0
|
|
|
|
Provides: perl(Imager::Test) = 1.7.0
|
2023-11-16 16:41:52 +00:00
|
|
|
Provides: perl(Imager::Test::OverUtf8)
|
2025-01-09 16:26:58 +00:00
|
|
|
Provides: perl(Imager::Transform) = 1.7.0
|
|
|
|
Provides: perl(Imager::TrimColorList) = 1.0.0
|
2024-03-08 22:34:25 +00:00
|
|
|
%undefine __perllib_provides
|
2020-10-24 20:32:06 +00:00
|
|
|
Recommends: perl(Parse::RecDescent)
|
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
2019-01-19 18:42:38 +00:00
|
|
|
BuildRequires: freetype-devel
|
2011-02-16 08:22:36 +00:00
|
|
|
BuildRequires: freetype2-devel
|
2019-01-19 18:42:38 +00:00
|
|
|
BuildRequires: gcc
|
2011-02-16 08:22:36 +00:00
|
|
|
BuildRequires: giflib-devel
|
2019-01-19 18:42:38 +00:00
|
|
|
BuildRequires: glibc-devel
|
2011-02-16 08:22:36 +00:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: make
|
2020-10-24 20:32:06 +00:00
|
|
|
# MANUAL END
|
2011-02-16 08:22:36 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Imager is a module for creating and altering images. It can read and write
|
|
|
|
various image formats, draw primitive shapes like lines,and polygons, blend
|
2020-10-24 20:32:06 +00:00
|
|
|
multiple images together in various ways, scale, crop, render text and
|
|
|
|
more.
|
2011-02-16 08:22:36 +00:00
|
|
|
|
|
|
|
%prep
|
2025-06-24 07:16:11 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2023-11-16 16:41:52 +00:00
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-02-16 08:22:36 +00:00
|
|
|
|
|
|
|
%build
|
2020-10-24 20:32:06 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
Accepting request 983928 from devel:languages:perl:autoupdate
- updated to 1.018
see /usr/share/doc/packages/perl-Imager/Changes
Imager 1.018 - 19 Jun 2022
============
- skip trying to produce deprecation warnings before perl 5.14, since
that doesn't support custom warning categories within a package.
This prevents pointless failures on these old versions of perl.
Imager 1.017 - 14 Jun 2022
============
Bug fix:
- fix a one bytes underallocation for Imager::TrimColorList. On
older perls this could lead to writing a zero byte one past the end
of the allocated block.
Documentation:
- expand on why you might want to call Imager->preload() and that you
probably don't need to.
Imager 1.016 - 12 Jun 2022
============
Upcoming backward incompatible changes:
- deprecate setting/deleting tags by code. If this causes you a
problem please open an issue. You can disable the warning produced
with:
no warnings 'Imager::tagcodes';
- deprecate image channel masks. If this causes you a problem please
open an issue. You can disable the warning produced with:
no warnings 'Imager::channelmask';
If you use either of these features please let me know.
Minor features:
- add magic/extension support for AVIF files, see Imager::File::AVIF
on CPAN.
- treat an unknown extension of two or more characters as a potential
file type on write.
Bug fixes:
- prevent a possible undefined value warning from t/t10jpeg.t
- update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing.
- TGA: failing to read in the palette of a paletted TGA file would
leak memory.
- JPEG: supplying invalid values for the new JPEG write tags could
leak memory.
- PNG: fix validation of Latin1 only tags when writing PNGs.
(detected by clang)
- matrix_transform: correctly use fabs() instead of abs() on floating
point values when deciding whether to divide for a perspective
transform. (detected by clang)
- fix the i_poly_aa_cfill_m() API macro
Cage cleaning:
- eliminate IO::File usage from the Imager code base
- fix a type error harmlessly ignored by gcc but found by clang
- eliminate memory leaks in sub-module Makefile.PL probe test code to
allow the probes to succeed under LeakSanitizer.
- BMP: fix some otherwise harmless clang warnings
- remove some code meant to work around some unspecified old Solaris
linker bug.
- i_noise: prevent a harmless conversion warning from clang
- fountain fill/filter: limit ssample_param to 1000 to simplify code.
Imager 1.015 - 7 May 2022
============
- rename the "virtual" member of i_img to "isvirtual" to allow the
API to be used from C++, this may break source compatibility, using
the i_img_virtual() accessor is backward compatible.
- add cookbook entry to populating an image from raw RGB samples
https://github.com/tonycoz/imager/issues/471
- Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the
front of the PKG_CONFIG_PATH used when it calls pkg-config.
- setup CodeQL workflow and fix detected warnings
JPEG updates:
- detect libjpeg (of whichever variety) via pkg-config if possible
- add specific support for mozjpeg (turn its optimization off by
default so tests pass.)
- add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and
has_arith_coding() methods
- add jpeg_compress_profile output tag, which only matters for
mozjpeg
- the libjpeg_version() method replaces the old
Imager::File::JPEG::i_libjpeg_version() function, and the format
has changed.
- various obscure jpeg output controls:
- add support for JPEG arithmetic coding when the supplied libjpeg
supports it. Note that not all JPEG decoders can handle arithmetic
coded JPEGs.
- add support for disabling the JFIF header for JPEG files using the
jpeg_jfif tag.
- add support for smoothing to eliminate dithering noise (like cjpeg
-smooth) using the jpeg_smooth tag.
- add support for producing JPEG restart markers (like cjpeg -restart
N), using the jpeg_restart tag.
- add control over subsample for JPEG (like the cjpeg -sample
parameter) using the jpeg_sample tag
- added tags for the rest of the MozJPEG API parameters.
- add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-*
options.
Imager 1.014 - 28 Apr 2022
============
Bug fixes:
- fix failed to build on non-threaded perls.
https://github.com/tonycoz/imager/issues/472
- when writing a paletted image with an alpha channel to PNG only
set the tRNS chunk if the image has transparent colours. With
older libpng this could add an erroneous tRNS chunk (or possibly
undefined behaviour if I understand the libpng code).
https://github.com/tonycoz/imager/issues/459
Features:
- Imager::Color and Imager::Color::Float objects can now be created
from CSS style rgb(...) strings.
https://github.com/tonycoz/imager/issues/463
- added the as_css_rgb() method to both Imager::Color and
Imager::Color::Float to format the supplied color as a CSS style
rgb() string.
https://github.com/tonycoz/imager/issues/463
- Imager::Color and Imager::Color::Float objects can now be created
(copied) or set from other Imager::Color or Imager::Color::Float
objects.
Imager 1.013 - 27 Apr 2022
============
- added rgb_difference() method
Thanks to Andreas König
https://github.com/tonycoz/imager/pull/462
- update ppport.h to prevent a redefinition diagnostic
- update bug tracker URLs to point at github
https://github.com/tonycoz/imager/pull/466
- update some other bug tracker URLs too.
- add the trim() and trim_rect() methods, to trim borders off an
image.
- add the as_float() method to Imager::Color and the as_8bit() method
to Imager::Color::Float to convert between the two types.
- update ppport.h to avoid a diagnostic in more modern perls.
- add detection for HEIF, JPEG XL and QOI image formats
OBS-URL: https://build.opensuse.org/request/show/983928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
|
|
|
%make_build
|
2011-02-16 08:22:36 +00:00
|
|
|
|
2020-10-24 20:32:06 +00:00
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
2011-02-16 08:22:36 +00:00
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2020-10-24 20:32:06 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
rm -r %{buildroot}%{perl_vendorarch}/Imager/include
|
|
|
|
# MANUAL END
|
|
|
|
%perl_gen_filelist
|
2011-02-16 08:22:36 +00:00
|
|
|
|
2020-10-24 20:32:06 +00:00
|
|
|
%files -f %{name}.files
|
Accepting request 983928 from devel:languages:perl:autoupdate
- updated to 1.018
see /usr/share/doc/packages/perl-Imager/Changes
Imager 1.018 - 19 Jun 2022
============
- skip trying to produce deprecation warnings before perl 5.14, since
that doesn't support custom warning categories within a package.
This prevents pointless failures on these old versions of perl.
Imager 1.017 - 14 Jun 2022
============
Bug fix:
- fix a one bytes underallocation for Imager::TrimColorList. On
older perls this could lead to writing a zero byte one past the end
of the allocated block.
Documentation:
- expand on why you might want to call Imager->preload() and that you
probably don't need to.
Imager 1.016 - 12 Jun 2022
============
Upcoming backward incompatible changes:
- deprecate setting/deleting tags by code. If this causes you a
problem please open an issue. You can disable the warning produced
with:
no warnings 'Imager::tagcodes';
- deprecate image channel masks. If this causes you a problem please
open an issue. You can disable the warning produced with:
no warnings 'Imager::channelmask';
If you use either of these features please let me know.
Minor features:
- add magic/extension support for AVIF files, see Imager::File::AVIF
on CPAN.
- treat an unknown extension of two or more characters as a potential
file type on write.
Bug fixes:
- prevent a possible undefined value warning from t/t10jpeg.t
- update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing.
- TGA: failing to read in the palette of a paletted TGA file would
leak memory.
- JPEG: supplying invalid values for the new JPEG write tags could
leak memory.
- PNG: fix validation of Latin1 only tags when writing PNGs.
(detected by clang)
- matrix_transform: correctly use fabs() instead of abs() on floating
point values when deciding whether to divide for a perspective
transform. (detected by clang)
- fix the i_poly_aa_cfill_m() API macro
Cage cleaning:
- eliminate IO::File usage from the Imager code base
- fix a type error harmlessly ignored by gcc but found by clang
- eliminate memory leaks in sub-module Makefile.PL probe test code to
allow the probes to succeed under LeakSanitizer.
- BMP: fix some otherwise harmless clang warnings
- remove some code meant to work around some unspecified old Solaris
linker bug.
- i_noise: prevent a harmless conversion warning from clang
- fountain fill/filter: limit ssample_param to 1000 to simplify code.
Imager 1.015 - 7 May 2022
============
- rename the "virtual" member of i_img to "isvirtual" to allow the
API to be used from C++, this may break source compatibility, using
the i_img_virtual() accessor is backward compatible.
- add cookbook entry to populating an image from raw RGB samples
https://github.com/tonycoz/imager/issues/471
- Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the
front of the PKG_CONFIG_PATH used when it calls pkg-config.
- setup CodeQL workflow and fix detected warnings
JPEG updates:
- detect libjpeg (of whichever variety) via pkg-config if possible
- add specific support for mozjpeg (turn its optimization off by
default so tests pass.)
- add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and
has_arith_coding() methods
- add jpeg_compress_profile output tag, which only matters for
mozjpeg
- the libjpeg_version() method replaces the old
Imager::File::JPEG::i_libjpeg_version() function, and the format
has changed.
- various obscure jpeg output controls:
- add support for JPEG arithmetic coding when the supplied libjpeg
supports it. Note that not all JPEG decoders can handle arithmetic
coded JPEGs.
- add support for disabling the JFIF header for JPEG files using the
jpeg_jfif tag.
- add support for smoothing to eliminate dithering noise (like cjpeg
-smooth) using the jpeg_smooth tag.
- add support for producing JPEG restart markers (like cjpeg -restart
N), using the jpeg_restart tag.
- add control over subsample for JPEG (like the cjpeg -sample
parameter) using the jpeg_sample tag
- added tags for the rest of the MozJPEG API parameters.
- add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-*
options.
Imager 1.014 - 28 Apr 2022
============
Bug fixes:
- fix failed to build on non-threaded perls.
https://github.com/tonycoz/imager/issues/472
- when writing a paletted image with an alpha channel to PNG only
set the tRNS chunk if the image has transparent colours. With
older libpng this could add an erroneous tRNS chunk (or possibly
undefined behaviour if I understand the libpng code).
https://github.com/tonycoz/imager/issues/459
Features:
- Imager::Color and Imager::Color::Float objects can now be created
from CSS style rgb(...) strings.
https://github.com/tonycoz/imager/issues/463
- added the as_css_rgb() method to both Imager::Color and
Imager::Color::Float to format the supplied color as a CSS style
rgb() string.
https://github.com/tonycoz/imager/issues/463
- Imager::Color and Imager::Color::Float objects can now be created
(copied) or set from other Imager::Color or Imager::Color::Float
objects.
Imager 1.013 - 27 Apr 2022
============
- added rgb_difference() method
Thanks to Andreas König
https://github.com/tonycoz/imager/pull/462
- update ppport.h to prevent a redefinition diagnostic
- update bug tracker URLs to point at github
https://github.com/tonycoz/imager/pull/466
- update some other bug tracker URLs too.
- add the trim() and trim_rect() methods, to trim borders off an
image.
- add the as_float() method to Imager::Color and the as_8bit() method
to Imager::Color::Float to convert between the two types.
- update ppport.h to avoid a diagnostic in more modern perls.
- add detection for HEIF, JPEG XL and QOI image formats
OBS-URL: https://build.opensuse.org/request/show/983928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
|
|
|
%doc adobe.txt apidocs.perl bigtest.perl Changes Changes.old combine.im compose.im convert.im conv.im doco.perl errep.perl filterlist.perl filters.im flip.im gaussian.im paste.im README regops.perl render.im rotate.im rubthru.im samples scale.im spot.perl transform.perl trim.im typemap.local typemap.oldperl
|
2011-02-16 08:22:36 +00:00
|
|
|
|
2019-01-19 18:42:38 +00:00
|
|
|
%changelog
|