## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-glymur Version: 0.12.2 Release: %autorelease Summary: Interface to the OpenJPEG library for working with JPEG 2000 files # SPDX License: MIT URL: https://pypi.org/project/Glymur/ # The PyPI sdist lacks documentation. Source0: https://github.com/quintusdias/glymur/archive/v%{version}/%{name}-%{version}.tar.gz # Man pages hand-written for Fedora in groff_man(7) format based on --help # output: Source1: jp2dump.1 Source2: tiff2jp2.1 # Since the package has had endian-dependent test failures in the past, we give # up “noarch” in the base package in order to run tests on all supported # architectures. We can still make all the built RPMs noarch. Since the # package does not in fact contain any compiled code, there is no corresponding # debuginfo package. %global debug_package %{nil} BuildRequires: python3-devel BuildRequires: python3dist(pytest) # tests/fixtures.py: each of these enables more tests BuildRequires: python3dist(scikit-image) BuildRequires: python3dist(gdal) # Provide shared libraries opened via ctypes; see glymur/config.py BuildRequires: openjpeg2 BuildRequires: libtiff %global _description %{expand: Glymur contains a Python interface to the OpenJPEG library which allows one to read and write JPEG 2000 files.} %description %_description %package -n python3-glymur Requires: openjpeg2 Summary: %{summary} BuildArch: noarch # Provide shared libraries opened via ctypes; see glymur/config.py Requires: openjpeg2 Requires: libtiff # glymur/jp2box.py: provides optional functionality Recommends: python3dist(gdal) %description -n python3-glymur %_description %prep %autosetup -n glymur-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install install -m 0644 -p -D -t %{buildroot}%{_mandir}/man1 %{SOURCE1} %{SOURCE2} %pyproject_install %pyproject_save_files glymur %check %ifarch s390x # New s390x test failures on Fedora in 0.12.2 # https://github.com/quintusdias/glymur/issues/604 # # See also: # # glymur autopkgtests regressed on s390x # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032291 # # Note that it has been… # # “verified that the tests from 0.12.1 pass with either the 0.12.1 or 0.12.2 # code, and the tests from 0.12.2 fail with either the 0.12.1 or 0.12.2 code” # # That is, new tests revealed existing problems, and there is no evidence that # there are regressions. k="${k-}${k+ and }not (TestSuite and test_rgb_tiled_bigtiff)" k="${k-}${k+ and }not (TestSuite and test_ycbcr_jpeg_single_tile)" k="${k-}${k+ and }not (TestSuite and test_ycbcr_jpeg_tiff)" k="${k-}${k+ and }not (TestSuite and test_ycbcr_jpeg_unevenly_tiled)" %endif %pytest -v -k "${k-}" %files -n python3-glymur -f %{pyproject_files} %doc README.md CHANGES.txt %license LICENSE.txt %{_bindir}/jp2dump %{_bindir}/tiff2jp2 %{_mandir}/man1/jp2dump.1* %{_mandir}/man1/tiff2jp2.1* %changelog * Tue Apr 18 2023 Benjamin A. Beasley 0.12.2-1 - Update to 0.12.2 (close RHBZ#2158610) * Fri Jan 20 2023 Fedora Release Engineering 0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 30 2022 Benjamin A. Beasley 0.12.1-1 - Update to 0.12.1 (close RHBZ#2148803) * Sat Oct 29 2022 Benjamin A. Beasley 0.12.0-1 - Update to 0.12.0 (close RHBZ#2138301) - Test failures on s390x are now skipped and tracked upstream (close RHBZ#2068124) * Tue Sep 20 2022 Benjamin A. Beasley 0.11.7-1 - Update to 0.11.7 (close RHBZ#2128302) * Sun Sep 18 2022 Benjamin A. Beasley 0.11.6^post2-1 - Update to 0.11.6^post2 (close RHBZ#2127664) * Wed Sep 14 2022 Benjamin A. Beasley 0.11.6^post1-1 - Update to 0.11.6.post1 (close RHBZ#2126581) * Tue Sep 13 2022 Benjamin A. Beasley 0.11.6-1 - Update to 0.11.6 (close RHBZ#2126238) * Thu Sep 08 2022 Benjamin A. Beasley 0.11.5-1 - Update to 0.11.5 (close RHBZ#2118756) * Thu Aug 11 2022 Benjamin A. Beasley 0.11.2-1 - Update to 0.11.2 (close RHBZ#2116095) * Thu Aug 11 2022 Benjamin A. Beasley 0.11.0-2 - Confirm that License is SPDX MIT (no License field change) * Tue Aug 02 2022 Benjamin A. Beasley 0.11.0-1 - Update to 0.11.0 (close RHBZ#2112493) * Fri Jul 22 2022 Fedora Release Engineering 0.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 17 2022 Benjamin A. Beasley 0.10.2-1 - Update to 0.10.2 (close RHBZ#2097446) * Tue Jun 28 2022 Python Maint 0.9.9-2 - Rebuilt for Python 3.11 * Thu Mar 24 2022 Benjamin A. Beasley 0.9.9-1 - Update to 0.9.9 (fix RHBZ#2060087, close RHBZ#2068123) * Mon Mar 21 2022 Benjamin A. Beasley 0.9.8-1 - Update to 0.9.8 (fix RHBZ#2060033, fix RHBZ#2062941) * Fri Jan 21 2022 Fedora Release Engineering 0.9.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 05 2021 Ankur Sinha (Ankur Sinha Gmail) 0.9.4-3 - improvement: tweak description * Mon Nov 01 2021 Vanessa Christopher 0.9.4-9 - Uncommitted changes * Fri Oct 29 2021 Vanessa Christopher 0.9.4-8 - Added man-page to package * Thu Oct 28 2021 Vanessa Christopher 0.9.4-7 - added CHANGES.txt to package docs * Mon Oct 25 2021 Vanessa Christopher 0.9.4-6 - changed Release = %%autorelease and %%changelog = %%autochangelog * Mon Oct 25 2021 Vanessa Christopher 0.9.4-5 - updated spec file * Fri Oct 22 2021 Vanessa Christopher 0.9.4-4 - fresh mockbuild for review * Fri Oct 22 2021 Vanessa Christopher 0.9.4-3 - sending for review * Fri Oct 22 2021 Vanessa Christopher 0.9.4-2 - rpm package created successfully * Thu Oct 21 2021 Vanessa Christopher 0.9.4-1 - building process ...