From 76a80b67d5dbb5ece99fea78c1783ecd7abce9aaff05b061a1e04a68a448e513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 Jun 2025 12:08:20 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ExifRead?expand=0&rev=14 --- python-ExifRead.changes | 5 +++++ python-ExifRead.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-ExifRead.changes b/python-ExifRead.changes index eba0cae..d09e2ad 100644 --- a/python-ExifRead.changes +++ b/python-ExifRead.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 12:07:45 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon May 5 15:28:50 UTC 2025 - Markéta Machová diff --git a/python-ExifRead.spec b/python-ExifRead.spec index 2c143b6..c681d5d 100644 --- a/python-ExifRead.spec +++ b/python-ExifRead.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-ExifRead Version: 3.0.0 Release: 0 @@ -27,10 +28,10 @@ Source1: https://github.com/ianare/exif-samples/archive/master.tar.gz#/ex BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires: alts BuildArch: noarch %python_subpackages @@ -54,11 +55,8 @@ find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildro find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py-%{python_bin_suffix} -dc {} \; } -%post -%python_install_alternative EXIF.py - -%postun -%python_uninstall_alternative EXIF.py +%pre +%python_libalternatives_reset_alternative EXIF.py %files %{python_files} %license LICENSE.txt