forked from pool/python-Glymur
* Fix setup.cfg for v0.12.9 release * Fix handling of null-bytes with XML data * Add API references to docs * Qualify on python 3.12 * Fix printing issue on 3.12beta, Fedora rawhide * Fix failing test on fedora * Change private attribute to prevent downstream test failure with tiatoolbox * Fix conversion of uint16 TIFFs to single jp2 tile. * Fix command line arguments --psnr and --cratio. * Minor documentation updates. * Add --num-threads option to tiff2jp2. * Refactor GeoJP2 code to get support for GML-JP2. * Fix broken uint16 test. * Fix stripped tiff oddity with partial last strip. * Refactor RGBA interface. * Fix plane ordering on RGBA TIFFs on big-endian * Fix TIFF reads on partian final strips * Fix regression on default value of numres. * Add support for type hints. * Remove support for Python 3.8. * Fix error condition when MCT specified as false for grayscale image. * Make properties conform to numpydoc. * Fix YCbCr/JPEG TIFF conversion test failure on Fedora. * Stop using libtiff to create test files on the fly. * Do not error out for JP2 files with multiple codestreams. * Relax validation for invalid JP2 files with multiple jp2h boxes. * Drop support for python 3.7. * Add support for ICC profiles, colormaps when converting from TIFF. * Add shortcut for retrieving lowest resolution thumbnail. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glymur?expand=0&rev=24
85 lines
2.5 KiB
RPMSpec
85 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-Glymur
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
%define dotted_version 0.12.9.post1
|
|
Name: python-Glymur
|
|
Version: 0.12.9post1
|
|
Release: 0
|
|
Summary: Tools for accessing JPEG2000 files
|
|
License: MIT
|
|
URL: https://github.com/quintusdias/glymur
|
|
Source: https://github.com/quintusdias/glymur/archive/v%{version}.tar.gz#/Glymur-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.9}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: procps
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-lxml
|
|
Requires: python-numpy
|
|
Requires: python-packaging
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module lxml}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module scikit-image}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python interface to the OpenJPEG library
|
|
|
|
%prep
|
|
%autosetup -p1 -n glymur-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_bindir}/jp2dump
|
|
%python_clone -a %{buildroot}%{_bindir}/tiff2jp2
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# test says: "SCENARIO: the XDG_CONFIG_HOME environment variable is not present"
|
|
# which is not true with our pytest macro
|
|
donttest+="test_config_dir_on_windows"
|
|
%pytest -k "not ($donttest)"
|
|
|
|
%post
|
|
%python_install_alternative jp2dump tiff2jp2
|
|
|
|
%postun
|
|
%python_uninstall_alternative jp2dump
|
|
|
|
%files %{python_files}
|
|
%doc README.md CHANGES.txt
|
|
%license LICENSE.txt
|
|
%python_alternative %{_bindir}/jp2dump
|
|
%python_alternative %{_bindir}/tiff2jp2
|
|
%{python_sitelib}/glymur
|
|
%{python_sitelib}/Glymur-%{dotted_version}.dist-info
|
|
|
|
%changelog
|