2016-05-30 07:00:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-imagesize
|
|
|
|
#
|
2023-04-21 14:30:41 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-05-30 07:00:33 +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.
|
|
|
|
|
2018-12-04 13:34:01 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-05-30 07:00:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-06 05:40:09 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2023-04-21 14:30:41 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2016-05-30 07:00:33 +00:00
|
|
|
Name: python-imagesize
|
2022-07-23 11:29:33 +00:00
|
|
|
Version: 1.4.1
|
2016-05-30 07:00:33 +00:00
|
|
|
Release: 0
|
2017-03-13 06:33:40 +00:00
|
|
|
Summary: Getting image size from PNG/JPEG/JPEG2000/GIF files
|
2016-05-30 07:00:33 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2020-02-28 22:44:02 +00:00
|
|
|
URL: https://github.com/shibukawa/imagesize_py
|
2016-05-30 07:00:33 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-%{version}.tar.gz
|
2017-04-06 05:40:09 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-05-07 11:33:13 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2016-05-30 07:00:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-04-06 05:40:09 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2016-05-30 07:00:33 +00:00
|
|
|
%description
|
2017-03-13 06:33:40 +00:00
|
|
|
Pure Python library which parses image files' header and returns the image size.
|
2016-05-30 07:00:33 +00:00
|
|
|
|
|
|
|
Supported formats:
|
|
|
|
* PNG
|
|
|
|
* JPEG
|
|
|
|
* JPEG2000
|
|
|
|
* GIF
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n imagesize-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-04-06 05:40:09 +00:00
|
|
|
%python_build
|
2016-05-30 07:00:33 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-06 05:40:09 +00:00
|
|
|
%python_install
|
2016-05-30 07:00:33 +00:00
|
|
|
|
2019-05-07 11:33:13 +00:00
|
|
|
%check
|
2022-01-10 23:07:38 +00:00
|
|
|
rm -v test/test_get_filelike.py
|
2019-05-07 11:33:13 +00:00
|
|
|
%pytest
|
|
|
|
|
2017-04-06 05:40:09 +00:00
|
|
|
%files %{python_files}
|
2016-05-30 07:00:33 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
%changelog
|