forked from pool/python-ExifRead
Accepting request 809249 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/809249 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ExifRead?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
f4b7fa8c41
commit
6634f30abd
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 06:34:09 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 11:48:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ExifRead
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -30,6 +30,8 @@ Patch0: https://patch-diff.githubusercontent.com/raw/ianare/exif-py/pull
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -45,6 +47,7 @@ A Python module to extract Exif metadata from TIFF and JPEG files.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/EXIF.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -53,11 +56,17 @@ 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 -dc {} \;
|
||||
}
|
||||
|
||||
%post
|
||||
%python_install_alternative EXIF.py
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative EXIF.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst ChangeLog.rst
|
||||
%{python_sitelib}/exifread/
|
||||
%{python_sitelib}/ExifRead-%{version}-py*.egg-info
|
||||
%python3_only %{_bindir}/EXIF.py
|
||||
%python_alternative %{_bindir}/EXIF.py
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user