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