15
0
forked from pool/python-exiv2

- Update to 0.18.0

* Removed features deprecated in v0.13.0:
    Value (and derived types) copy constructors
    Single value (such as DateValue) index methods
    DataBuf indexing.
  * Deprecated many BasicIo methods (read, write, seek, etc.) that should not
    be needed in Python scripts. Please let me know if this is a problem.
  * Deprecated copy, write, and read(buffer) methods of Value (and
    subclasses) that should not be needed in Python scripts. Please let me
    know if this is a problem.
  * Deprecated copy and write methods of Metadatum (and subclasses) that
    should not be needed in Python scripts. Please let me know if this is a
    problem.
  * Deprecated 'buffer interface' to BasicIo, DataBuf, and PreviewImage. They
    all have 'data()' to get their contents.
  * Added binary wheels for Linux on arm64.
  * Exiv2 struct member names with a trailing underscore have more Pythonic
    aliases without the underscore.
  * Add data() method to exiv2.PreviewImage, deprecate pData() method.
  * Add data() method to exiv2.Image. This will replace using Image.io().
  * Add data() method to exiv2.DataValue.
  * BasicIo.read (& readOrThrow) now extract count from the buffer size.
  * Invalidate data iterators if data is deleted. (Requires swig >= 4.4)
  * Deprecated iteration of exiv2 "data" structure types.
  * API CHANGE: exiv2.LogMsg.pythonHandler is replaced by exiv2.pythonHandler

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exiv2?expand=0&rev=40
This commit is contained in:
2025-10-28 09:52:57 +00:00
committed by Git OBS Bridge
commit bb0eb5bb2e
8 changed files with 321 additions and 0 deletions

71
python-exiv2.spec Normal file
View File

@@ -0,0 +1,71 @@
#
# spec file for package python-exiv2
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-exiv2
Version: 0.18.0
Release: 0
Summary: Python3 bindings for the exiv2 library
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/jim-easterbrook/python-exiv2
Source: https://github.com/jim-easterbrook/python-exiv2/archive/refs/tags/%{version}.tar.gz
# PATCH-FIX-UPSTREAM skip_network_tests.patch bsc#[0-9]+ mcepl@suse.com
# this patch makes things totally awesome
Patch0: skip_network_tests.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libboost_python3-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(exiv2)
%python_subpackages
%description
python3-exiv2 is a Python 3 binding to exiv2, the C++ library for manipulation
of EXIF, IPTC and XMP image metadata. It is a python 3 module that allows your
scripts to read and write metadata (EXIF, IPTC, XMP, thumbnails) embedded in
image files (JPEG, TIFF, ...).
It is designed as a high-level interface to the functionalities offered by
libexiv2. Using pythons built-in data types and standard modules, it provides
easy manipulation of image metadata.
%prep
%autosetup -p1
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
export NONET=1
%pyunittest_arch discover -v tests/
%files %{python_files}
%{python_sitearch}/exiv2
%{python_sitearch}/exiv2-%{version}*-info
%changelog