commit 7620bae32b756370971e4912eebe6ea534c06074c1675c5b72522ec0d8dbdcc1 Author: Markéta Machová Date: Mon Jun 16 12:08:20 2025 +0000 - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ExifRead?expand=0&rev=14 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ExifRead-3.0.0.tar.gz b/ExifRead-3.0.0.tar.gz new file mode 100644 index 0000000..2d9e585 --- /dev/null +++ b/ExifRead-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ac5a364169dbdf2bd62f94f5c073970ab6694a3166177f5e448b10c943e2ca4 +size 39895 diff --git a/exif-samples-master.tar.gz b/exif-samples-master.tar.gz new file mode 100644 index 0000000..9c6f29f --- /dev/null +++ b/exif-samples-master.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8fe4784fd23cadb47ab28094751bc57a6cdff9db0772fa9cc5fbd770c6180439 +size 33280293 diff --git a/python-ExifRead.changes b/python-ExifRead.changes new file mode 100644 index 0000000..d09e2ad --- /dev/null +++ b/python-ExifRead.changes @@ -0,0 +1,95 @@ +------------------------------------------------------------------- +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á + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Aug 2 13:23:00 UTC 2022 - Otto Hollmann + +- Update to 3.0.0: + * BREAKING CHANGE: Add type hints, which removes Python2 compatibility + * Update make_string util to clean up bad values (#128) + * Fix Olympus SpecialMode Unknown Values (#143) + * Remove coding system from UserComment sequence only if it is valid (#147) + * Fixes to orientation + * Add some EXIF tags + * Add support for PNG files (#159) + * Fix for HEIC Unknown Parsers (#153) + * Handle images that has corrupted headers/tags (#152) + +------------------------------------------------------------------- +Fri Aug 27 12:36:56 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 2.3.2: + * Fixes for HEIC files from Note10+ (#127) by Drew Perttula + * Add missing EXIF OffsetTime tags (#126) by Étienne Pelletier + +------------------------------------------------------------------- +Mon Sep 7 06:31:09 UTC 2020 - Steve Kowalik + +- 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 + +------------------------------------------------------------------- +Tue May 26 06:34:09 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Tue Apr 23 11:48:23 UTC 2019 - Tomáš Chvátal + +- Mark properly as BSD3c + +------------------------------------------------------------------- +Mon Apr 15 20:34:33 UTC 2019 - Jan Engelhardt + +- Fix missing quoting of wildcards in /usr/bin/find calls. +- Use noun phrase in summary. Ensure neutrality of description. +- Use %setup for all unpacking. + +------------------------------------------------------------------- +Fri Apr 12 15:46:56 UTC 2019 - John Vandenberg + +- Add merged_pr_58.patch for Python 3 support +- Replace invalid pytest with real test suite +- Tidy spec file; use %license, remove unnecessary devel + +------------------------------------------------------------------- +Tue Nov 14 10:46:22 UTC 2017 - marco.strigl@suse.com + +- initial version submitted to :misc + +------------------------------------------------------------------- +Tue Jun 7 18:55:14 UTC 2016 - sbahling@suse.com + +- Initial build. Version 2.1.2. diff --git a/python-ExifRead.spec b/python-ExifRead.spec new file mode 100644 index 0000000..c681d5d --- /dev/null +++ b/python-ExifRead.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-ExifRead +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%bcond_without libalternatives +Name: python-ExifRead +Version: 3.0.0 +Release: 0 +Summary: Module to read Exif metadata from TIFF and JPEG files +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: alts +BuildArch: noarch +%python_subpackages + +%description +A Python module to extract Exif metadata from TIFF and JPEG files. + +%prep +%setup -q -n ExifRead-%{version} -a1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/EXIF.py +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +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 {} \; +} + +%pre +%python_libalternatives_reset_alternative EXIF.py + +%files %{python_files} +%license LICENSE.txt +%doc README.rst ChangeLog.rst +%{python_sitelib}/exifread/ +%{python_sitelib}/[Ee]xif[Rr]ead-%{version}*info +%python_alternative %{_bindir}/EXIF.py + +%changelog