forked from pool/python-ExifRead
Accepting request 1286085 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1286085 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ExifRead?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 12:07:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 5 15:28:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user