Files
python-exiv2/python-exiv2.spec
Matej Cepl bb2f838e7b - Update to 0.17.1:
* Update README and INSTALL docs
  * Allow linux libdir name to be 'lib64' or 'lib'
  * Test localised exception with non-ASCII characters
- Updates from 0.17.0:
  * API change: derived classes of BasicIo are omitted from Python.
  * enableBMFF() function is deprecated.
  * Documentation is available on
    https://python-exiv2.readthedocs.io/
- Updates from 0.16.2:
  * Removed AnyError alias of Exiv2Error exception.
  * Metadatum.print() method is no longer renamed to _print.
  * Improved handling of enums:
  * Enum results are returned as Python enum instead of int.
  * Passing ints as enum parameters is deprecated.
  * Added dict-like behaviour to "data" structs.
  * Log handlers can be set/cleared from Python.
  * SWIG v4.1.0 or later required to run SWIG.
- Updates from 0.16.0:
  * Include native language support in Windows binary wheel builds.
  * API change: DateValue.getDate() returns Python dict.
  * API change: TimeValue.getTime() returns Python dict.
  * Deprecated: exiv2.Date and exiv2.Time objects.
  * Added buffer interface to PreviewImage
  * Set datum value from Python object directly instead of via
    string.
  * Moved Position enum to BasicIo class.
  * Moved CharsetId enum to CommentValue class.
  * Moved XmpArrayType and XmpStruct enums to XmpValue class.
  * Added enums for LogMsg.Level
  * More exiv2 structs are iterable for easy conversion to Python
    dict.
- Updates from 0.15.0:
  * Added __version_tuple__ for easy runtime version testing.
  * exiv2.testVersion() can be called from Python.
  * exiv2.DataBuf can be created from Python data.
  * Most data() methods return a Python memoryview.
  * exiv2.DataBuf and exiv2.BasicIo have writeable Python buffer
    interface.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exiv2?expand=0&rev=26
2024-11-25 23:25:42 +00:00

62 lines
2.0 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# spec file for package python-exiv2
#
# Copyright (c) 2024 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/
#
Name: python-exiv2
Version: 0.17.1
Release: 0
Summary: Python3 bindings for the exiv2 library
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://launchpad.net/py3exiv2
Source: https://github.com/jim-easterbrook/python-exiv2/archive/refs/tags/%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
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
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files}
%{python_sitearch}/exiv2
%{python_sitearch}/exiv2-%{version}*-info
%changelog