2018-05-09 03:48:03 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-imread
|
|
|
|
|
#
|
2025-01-06 16:29:18 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-05-09 03:48:03 +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.
|
|
|
|
|
|
2019-05-22 12:47:33 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-09 03:48:03 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2024-01-06 21:06:12 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-05-09 03:48:03 +00:00
|
|
|
Name: python-imread
|
2025-01-06 16:29:18 +00:00
|
|
|
Version: 0.7.6
|
2018-05-09 03:48:03 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Image reading library
|
|
|
|
|
License: MIT
|
2020-04-14 13:49:37 +00:00
|
|
|
URL: http://luispedro.org/software/imread
|
2018-05-09 03:48:03 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/imread/imread-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module numpy-devel}
|
2024-01-06 21:06:12 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-05-09 03:48:03 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-01-06 21:06:12 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-09 03:48:03 +00:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: giflib-devel
|
|
|
|
|
BuildRequires: libtiff-devel
|
2020-04-14 13:49:37 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-05-09 03:48:03 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2021-10-27 19:45:58 +00:00
|
|
|
Requires: python-numpy
|
2019-05-22 12:47:33 +00:00
|
|
|
# SECTION test requirements
|
2021-10-27 19:45:58 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-05-22 12:47:33 +00:00
|
|
|
# /SECTION
|
2018-05-09 03:48:03 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mahotas-imread is a simple module with a small number of functions:
|
|
|
|
|
|
|
|
|
|
imread
|
|
|
|
|
Reads an image file
|
|
|
|
|
imread_multi
|
|
|
|
|
Reads an image file with multiple images. Currently, TIFF and STK (a TIFF
|
|
|
|
|
sub-based format) support this function.
|
|
|
|
|
imsave
|
|
|
|
|
Writes an image file
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n imread-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export EXCLUDE_WEBP=0
|
|
|
|
|
export CFLAGS="%{optflags}"
|
2024-01-06 21:06:12 +00:00
|
|
|
%pyproject_wheel
|
2018-05-09 03:48:03 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-01-06 21:06:12 +00:00
|
|
|
%pyproject_install
|
2018-05-09 03:48:03 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
|
|
%check
|
2021-10-27 19:45:58 +00:00
|
|
|
find -name '_imread.*.so' -exec cp {} imread \;
|
|
|
|
|
pushd imread
|
|
|
|
|
%pytest_arch
|
2018-05-09 03:48:03 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2025-01-06 16:29:18 +00:00
|
|
|
%doc ChangeLog README.md
|
2018-05-09 03:48:03 +00:00
|
|
|
%license COPYING.MIT
|
2024-01-06 21:06:12 +00:00
|
|
|
%{python_sitearch}/imread
|
|
|
|
|
%{python_sitearch}/imread-%{version}.dist-info
|
2018-05-09 03:48:03 +00:00
|
|
|
|
|
|
|
|
%changelog
|