## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 14; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name py3exiv2 Name: python3-exiv2 Version: 0.9.3 Release: %autorelease Summary: Python3 bindings for the exiv2 library # GPL-2.0-only: # - py3exiv2-0.12.0/src/pyexiv2/__init__.py # - py3exiv2-0.12.0/src/pyexiv2/exif.py # - py3exiv2-0.12.0/src/pyexiv2/iptc.py # - py3exiv2-0.12.0/src/pyexiv2/metadata.py # - py3exiv2-0.12.0/src/pyexiv2/preview.py # - py3exiv2-0.12.0/src/pyexiv2/utils.py # - py3exiv2-0.12.0/src/pyexiv2/xmp.py # GPL-2.0-or-later: # - py3exiv2-0.12.0/src/exiv2wrapper.cpp # - py3exiv2-0.12.0/src/exiv2wrapper.hpp # - py3exiv2-0.12.0/src/exiv2wrapper_python.cpp License: GPL-2.0-only AND GPL-2.0-or-later Url: https://launchpad.net/py3exiv2 Source: %{pypi_source} BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: boost-python3-devel BuildRequires: pkgconfig(exiv2) %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 %autosetup -n %{pypi_name}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -t %build # Workaround as there is no -lboost_python3 sed -i 's|boost_python3|boost_python%{python3_version_nodots}|' setup.py %pyproject_wheel %install %pyproject_install %pyproject_save_files pyexiv2 %check %pyproject_check_import %files -f %{pyproject_files} %doc README %{python3_sitearch}/libexiv2python%{python3_ext_suffix} %changelog * Sun Nov 12 2023 Robert-André Mauchin - 0.9.3-14 - Convert to SPDX licensing * Sun Nov 12 2023 Robert-André Mauchin - 0.9.3-13 - Convert to new Python guidelines * Fri Jul 21 2023 Fedora Release Engineering - 0.9.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.9.3-10 - Rebuilt for Python 3.12 * Mon Feb 20 2023 Jonathan Wakely - 0.9.3-9 - Rebuilt for Boost 1.81 * Fri Jan 20 2023 Fedora Release Engineering - 0.9.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.9.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.9.3-6 - Rebuilt for Python 3.11 * Wed May 04 2022 Thomas Rodgers - 0.9.3-5 - Rebuilt for Boost 1.78 * Fri Jan 21 2022 Fedora Release Engineering - 0.9.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Aug 07 2021 Jonathan Wakely - 0.9.3-3 - Rebuilt for Boost 1.76 * Fri Jul 23 2021 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 05 2021 Andreas Schneider - 0.9.3-0 - Update to version 0.9.3 * Fri Jun 04 2021 Python Maint - 0.8.0-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Jonathan Wakely - 0.8.0-2 - Rebuilt for Boost 1.75 * Tue Oct 20 2020 Andreas Schneider - 0.8.0-1 - Update to version 0.8.0 * Wed Jul 29 2020 Fedora Release Engineering - 0.7.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Andreas Schneider - 0.7.2-4 - Add BR for python3-setuptools * Sat May 30 2020 Jonathan Wakely - 0.7.2-3 - Rebuilt for Boost 1.73 * Tue May 26 2020 Miro Hrončok - 0.7.2-2 - Rebuilt for Python 3.9 * Mon Apr 27 2020 Andreas Schneider - 0.7.2-1 - Update to version 0.7.2 * Thu Jan 30 2020 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.7.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.7.1-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 05 2019 Andreas Schneider - 0.7.1-1 - Update to version 0.7.1 * Tue Apr 09 2019 Andreas Schneider - 0.6.1-1 - Update to version 0.6.1 * Add the streaming of the preview data * Thu Jan 31 2019 Andreas Schneider - 0.5.0-1 - Update to version 0.5.0 * Several bugfixes for exiv2-0.27 * Wed Jan 30 2019 Rex Dieter - 0.3.0-5 - rebuild (exiv2) * Wed Jan 30 2019 Jonathan Wakely - 0.3.0-4 - Rebuilt for Boost 1.69 * Sat Jul 14 2018 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 02 2018 Miro Hrončok - 0.3.0-2 - Rebuilt for Python 3.7 * Thu Jun 28 2018 Andreas Schneider - 0.3.0-1 - Update to version 0.3.0 * Tue Jun 19 2018 Miro Hrončok - 0.2.1-4 - Rebuilt for Python 3.7 * Tue May 08 2018 Andreas Schneider - 0.2.1-3 - Added missing dist tag to Release * Mon May 07 2018 Andreas Schneider - 0.2.1-2 - Fixed license - Removed build requires for gcc-c++ * Sun May 06 2018 Andreas Schneider - 0.2.1-1 - Initial package