2019-04-15 09:46:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-ExifRead
|
|
|
|
#
|
2025-05-06 08:03:52 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-04-15 09:46:47 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-06-16 12:08:20 +00:00
|
|
|
%bcond_without libalternatives
|
2019-04-15 09:46:47 +00:00
|
|
|
Name: python-ExifRead
|
2022-08-02 15:26:48 +00:00
|
|
|
Version: 3.0.0
|
2019-04-15 09:46:47 +00:00
|
|
|
Release: 0
|
2019-04-16 10:03:36 +00:00
|
|
|
Summary: Module to read Exif metadata from TIFF and JPEG files
|
2019-04-23 11:48:36 +00:00
|
|
|
License: BSD-3-Clause
|
2019-04-15 09:46:47 +00:00
|
|
|
URL: https://pypi.python.org/pypi/ExifRead/%{version}
|
2020-09-07 06:40:44 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/E/ExifRead/ExifRead-%{version}.tar.gz
|
2019-04-15 09:46:47 +00:00
|
|
|
Source1: https://github.com/ianare/exif-samples/archive/master.tar.gz#/exif-samples-master.tar.gz
|
2025-05-06 08:03:52 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-04-15 09:46:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-05-06 08:03:52 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2025-06-16 12:08:20 +00:00
|
|
|
BuildRequires: alts
|
2019-04-15 09:46:47 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2025-06-16 12:08:20 +00:00
|
|
|
Requires: alts
|
2019-04-15 09:46:47 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-04-16 10:03:36 +00:00
|
|
|
A Python module to extract Exif metadata from TIFF and JPEG files.
|
2019-04-15 09:46:47 +00:00
|
|
|
|
|
|
|
%prep
|
2019-04-16 10:03:36 +00:00
|
|
|
%setup -q -n ExifRead-%{version} -a1
|
2019-04-15 09:46:47 +00:00
|
|
|
|
|
|
|
%build
|
2025-05-06 08:03:52 +00:00
|
|
|
%pyproject_wheel
|
2019-04-15 09:46:47 +00:00
|
|
|
|
|
|
|
%install
|
2025-05-06 08:03:52 +00:00
|
|
|
%pyproject_install
|
2020-05-27 10:10:09 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/EXIF.py
|
2019-04-15 09:46:47 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
2020-09-07 06:40:44 +00:00
|
|
|
find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py-%{python_bin_suffix} {} \;
|
|
|
|
find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py-%{python_bin_suffix} -dc {} \;
|
2019-04-15 09:46:47 +00:00
|
|
|
}
|
|
|
|
|
2025-06-16 12:08:20 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative EXIF.py
|
2020-05-27 10:10:09 +00:00
|
|
|
|
2019-04-15 09:46:47 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst ChangeLog.rst
|
|
|
|
%{python_sitelib}/exifread/
|
2025-05-06 08:03:52 +00:00
|
|
|
%{python_sitelib}/[Ee]xif[Rr]ead-%{version}*info
|
2020-05-27 10:10:09 +00:00
|
|
|
%python_alternative %{_bindir}/EXIF.py
|
2019-04-15 09:46:47 +00:00
|
|
|
|
|
|
|
%changelog
|