2018-05-07 16:02:43 +00:00
|
|
|
|
#
|
2018-06-28 10:33:14 +00:00
|
|
|
|
# spec file for package python-exiv2
|
2018-05-07 16:02:43 +00:00
|
|
|
|
#
|
2025-02-19 08:49:47 +00:00
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-05-07 16:02:43 +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-01-29 11:22:53 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-28 10:33:14 +00:00
|
|
|
|
#
|
2018-05-07 16:02:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
2024-11-26 01:58:59 +00:00
|
|
|
|
%{?sle15_python_module_pythons}
|
2018-05-07 16:02:43 +00:00
|
|
|
|
Name: python-exiv2
|
2025-02-24 14:28:59 +00:00
|
|
|
|
Version: 0.17.3
|
2018-05-07 16:02:43 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
|
Summary: Python3 bindings for the exiv2 library
|
2018-06-28 10:33:14 +00:00
|
|
|
|
License: GPL-3.0-only
|
2018-05-07 16:02:43 +00:00
|
|
|
|
Group: Development/Languages/Python
|
2024-11-26 01:54:50 +00:00
|
|
|
|
URL: https://github.com/jim-easterbrook/python-exiv2
|
2023-10-11 11:42:32 +00:00
|
|
|
|
Source: https://github.com/jim-easterbrook/python-exiv2/archive/refs/tags/%{version}.tar.gz
|
2024-11-26 02:17:11 +00:00
|
|
|
|
# PATCH-FIX-UPSTREAM skip_network_tests.patch bsc#[0-9]+ mcepl@suse.com
|
|
|
|
|
|
# this patch makes things totally awesome
|
|
|
|
|
|
Patch0: skip_network_tests.patch
|
2018-05-07 16:02:43 +00:00
|
|
|
|
BuildRequires: %{python_module devel}
|
2024-11-26 01:54:50 +00:00
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-05-07 16:02:43 +00:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-11-26 01:54:50 +00:00
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-07 16:02:43 +00:00
|
|
|
|
BuildRequires: fdupes
|
2018-06-28 10:33:14 +00:00
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
BuildRequires: libboost_python3-devel
|
2019-01-29 11:22:53 +00:00
|
|
|
|
BuildRequires: pkgconfig
|
2018-06-28 10:33:14 +00:00
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-01-29 11:22:53 +00:00
|
|
|
|
BuildRequires: pkgconfig(exiv2)
|
2018-05-07 16:02:43 +00:00
|
|
|
|
%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 python’s built-in data types and standard modules, it provides
|
|
|
|
|
|
easy manipulation of image metadata.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-10-11 11:42:32 +00:00
|
|
|
|
%autosetup -p1
|
2018-05-07 16:02:43 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
2024-11-26 01:54:50 +00:00
|
|
|
|
%pyproject_wheel
|
2018-05-07 16:02:43 +00:00
|
|
|
|
|
|
|
|
|
|
%install
|
2024-11-26 01:54:50 +00:00
|
|
|
|
%pyproject_install
|
2023-08-10 22:17:50 +00:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2018-05-07 16:02:43 +00:00
|
|
|
|
|
2024-11-25 23:34:41 +00:00
|
|
|
|
%check
|
2024-11-26 02:17:11 +00:00
|
|
|
|
export NONET=1
|
2024-11-25 23:48:43 +00:00
|
|
|
|
%pyunittest_arch discover -v tests/
|
2024-11-25 23:34:41 +00:00
|
|
|
|
|
2018-05-07 16:02:43 +00:00
|
|
|
|
%files %{python_files}
|
2023-10-12 09:17:30 +00:00
|
|
|
|
%{python_sitearch}/exiv2
|
|
|
|
|
|
%{python_sitearch}/exiv2-%{version}*-info
|
2018-05-07 16:02:43 +00:00
|
|
|
|
|
|
|
|
|
|
%changelog
|