15
0

- Update to 2.3.1:

* Fix bug introduced with v2.3.0 in HEIC processing.
  * Add notice on Python2 EOL
  * Modernize code and improve testing, split up some huge functions
  * Added support for webp file format (#116) by Grzegorz Ruciński
  * Add linting
  * Added missing IFD data type; correct spelling mistake (#119) by Piero
    Toffanin
  * Add syntax highlight for README (#117) by John Lin
  * Add Python 3.8 to CI (#113) by 2*yo
  * make HEIC exif extractor much more compatible (#109) by Tony Guo
  * Add black level tag (#108)
  * Use list instead of tuple for classifiers (#107) by Florian Preinstorfer
  * Add support for Python 3.5, 3.6, 3.7
  * Drop official support for Python 2.6, 3.2, 3.3
  * Fix for string count equals 0 (issue #67)
  * Rebasing of struct pull requests: closes #54, closes #60 by Christopher
    Chavez
  * Refactor to use Python's struct module for packing/unpacking by Dave Jones
  * Support floating point fields" by Reed Nightingale (reedbn)
  * Raw images support by changing Tiff detection by xaumex
  * Fix GPS information erroneously None (#96) by Christopher Chavez
  * Initial HEIC support (Sam Rushing) 
- Correct Source URL to not hardcode the version
- Use python_bin_suffix to call correct script during check
- Drop merged_pr_58.patch, included upstream
- Refresh exif-samples-master.tar.gz

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ExifRead?expand=0&rev=7
This commit is contained in:
2020-09-07 06:40:44 +00:00
committed by Git OBS Bridge
parent 6634f30abd
commit 92fb25ecc1
6 changed files with 40 additions and 223 deletions

View File

@@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ExifRead
Version: 2.1.2
Version: 2.3.1
Release: 0
Summary: Module to read Exif metadata from TIFF and JPEG files
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/ExifRead/%{version}
Source: https://files.pythonhosted.org/packages/source/E/ExifRead/ExifRead-2.1.2.tar.gz
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
Patch0: https://patch-diff.githubusercontent.com/raw/ianare/exif-py/pull/58.patch#/merged_pr_58.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -40,7 +38,6 @@ A Python module to extract Exif metadata from TIFF and JPEG files.
%prep
%setup -q -n ExifRead-%{version} -a1
%patch0 -p1
%build
%python_build
@@ -52,8 +49,8 @@ A Python module to extract Exif metadata from TIFF and JPEG files.
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py {} \;
find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py -dc {} \;
find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py-%{python_bin_suffix} {} \;
find exif-samples-master -name "*.tiff" -o -name "*.jpg" -exec $python %{buildroot}%{_bindir}/EXIF.py-%{python_bin_suffix} -dc {} \;
}
%post