17
0

Compare commits

4 Commits

2 changed files with 21 additions and 12 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Aug 2 13:23:00 UTC 2022 - Otto Hollmann <otto.hollmann@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ExifRead
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without libalternatives
Name: python-ExifRead
Version: 3.0.0
Release: 0
@@ -25,11 +25,13 @@ License: BSD-3-Clause
URL: https://pypi.python.org/pypi/ExifRead/%{version}
Source: https://files.pythonhosted.org/packages/source/E/ExifRead/ExifRead-%{version}.tar.gz
Source1: https://github.com/ianare/exif-samples/archive/master.tar.gz#/exif-samples-master.tar.gz
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
@@ -40,10 +42,10 @@ A Python module to extract Exif metadata from TIFF and JPEG files.
%setup -q -n ExifRead-%{version} -a1
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/EXIF.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -53,17 +55,14 @@ 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
%doc README.rst ChangeLog.rst
%{python_sitelib}/exifread/
%{python_sitelib}/ExifRead-%{version}-py*.egg-info
%{python_sitelib}/[Ee]xif[Rr]ead-%{version}*info
%python_alternative %{_bindir}/EXIF.py
%changelog