15
0
forked from pool/python-Glymur
Files
python-Glymur/python-Glymur.spec
Matej Cepl c0f6d713ab Accepting request 987970 from home:bnavigator:branches:devel:languages:python
- Update to v0.10.1
  * Add write capability for Resolution boxes
  * Add example documentation for reading layers
- Release v0.10.0
  * Allow parsing of Exif UUIDs missing the EXIF\00\00 lead-in
  * Add read support for additional Exif tags
  * Add support for TLM segment generation
- Release  v0.9.9
  * Fix bug retrieving some TIFF tags on big endian systems
- Release v0.9.7
  * Remove distutils in favor of setuptools
  * Add recognition of IMF profiles
  * Add ndim, dtype properties
- Release v0.9.5
  * Add support for generation of PLT markers
  * Add support for converting TIFFs to JPEG 2000
- Release v0.9.4
  * Add support for writing images tile-by-tile
  * Add support for opj_set_decoded_components
  * Remove support for Python 3.6
- Add glymur-pr553-no-setuptools.patch
  * gh#quintusdias/glymur#553 + gh#quintusdias/glymur#554

OBS-URL: https://build.opensuse.org/request/show/987970
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glymur?expand=0&rev=18
2022-07-11 09:36:09 +00:00

87 lines
2.7 KiB
RPMSpec

#
# spec file for package python-Glymur
#
# 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/
#
Name: python-Glymur
Version: 0.10.1
Release: 0
Summary: Tools for accessing JPEG2000 files
License: MIT
Group: Development/Languages/Python
URL: https://github.com/quintusdias/glymur
Source: https://github.com/quintusdias/glymur/archive/v%{version}.tar.gz#/Glymur-%{version}.tar.gz
# PATCH-FIX-UPSTREAM glymur-pr553-no-setuptools.patch gh#quintusdias/glymur#553 + gh#quintusdias/glymur#554
Patch1: glymur-pr553-no-setuptools.patch
BuildRequires: %{python_module base >= 3.7}
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-%{version}*-info
%changelog