forked from pool/python-Wand
- Update to 0.6.10
* Fixed segmentation fault during resource allocation on M1 processor. [:issue:`587`]
* Fixed additional segmentation faults introduced with ImageMagick 7.1.0-45.
[:issue:`587` & :issue:`586`]
- Update to 0.6.9
* Updated :meth:`Image.fx() <wand.image.BaseImage.fx>` method to raise
:class:`~wand.exceptions.WandRuntimeError` if ImageMagick is unable to generate
an image. [:issue:`582`]
* Fixed :meth:`Image.from_array() <wand.image.Image.from_array>` classmethod to handle
Numpy's strided arrays. [:issue:`582`]
* Fixed segmentation fault introduced with ImageMagick 7.1.0-45. [:issue:`586`]
- Update to 0.6.8
* Added :meth:`Image.label() <wand.image.BaseImage.label>` method.
* Added :meth:`Image.region() <wand.image.BaseImage.region>` method.
* Updated :meth:`Image.chop() <wand.image.BaseImage.chop>` method to support gravity keyword.
* Updated :meth:`Image.extent() <wand.image.BaseImage.extent>` method to support gravity
keyword. [:issue:`554`]
* Added .so.9 shared library suffix to :meth:`wand.api.library_paths()` generator when
searching :const:`MAGICK_HOME` path.
* Added :const:`QUANTUM_SCALE <wand.version.QUANTUM_SCALE>` constant.
* Added :meth:`Image.montage() <wand.image.Image.montage>` method. [:issue:`575`]
* Added :meth:`Image.roll() <wand.image.BaseImage.roll>` method.
* Fixed returned values for :meth:`Image.connected_components()
<wand.image.BaseImage.connected_components>` method for ImageMagick 7.1.1. [:issue:`574`]
* Fixed :c:func:`MagickSetImageDepth()` C-API method signature. [:issue:`577` by Pavel Borzenkov]
* Fixed :meth:`Image.encipher() <wand.image.BaseImage.encipher>` method to call the
correct API. [:issue:`578` by Pavel Borzenkov]
* [DOC] Improved :class:`~wand.drawing.FontMetrics` documentation. [:issue:`566`]
* [TEST] Migrated CI from travis-ci.org to travis-ci.com.
OBS-URL: https://build.opensuse.org/request/show/1000069
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Wand?expand=0&rev=7
70 lines
2.3 KiB
RPMSpec
70 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-Wand
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-Wand
|
|
Version: 0.6.10
|
|
Release: 0
|
|
Summary: Ctypes-based simple MagickWand API binding for Python
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/emcconville/wand
|
|
Source: https://files.pythonhosted.org/packages/source/W/Wand/Wand-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
Requires: ImageMagick
|
|
BuildRequires: ImageMagick-devel
|
|
BuildRequires: fdupes
|
|
BuildRequires: fftw3-devel
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module psutil >= 1.0.1}
|
|
BuildRequires: %{python_module pytest >= 2.3.0}
|
|
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Ctypes-based simple MagickWand API binding for Python.
|
|
|
|
%prep
|
|
%setup -q -n Wand-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# Our ImageMagick is build without support of fftw library
|
|
# see identify -version and gh#emcconville/wand#476
|
|
export PYTEST_ADDOPTS="--skip-fft"
|
|
# Three tests failing with
|
|
# wand.exceptions.PolicyError: attempt to perform an operation not allowed by the security policy `PDF'
|
|
# due to https://build.opensuse.org/package/view_file/graphics/ImageMagick/ImageMagick-configuration-SUSE.patch
|
|
%pytest -rs -k 'not (test_resolution_set_03 or test_resolution_set_04 or test_read_with_colorspace)'
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|