From 8e739039f56a0060ca315ec22d719d6cfddcdfb8 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 13 Apr 2015 11:12:43 -0400 Subject: [PATCH 1/2] initial epel7 package --- perl-Image-ExifTool.spec | 230 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 2 files changed, 231 insertions(+) create mode 100644 perl-Image-ExifTool.spec diff --git a/perl-Image-ExifTool.spec b/perl-Image-ExifTool.spec new file mode 100644 index 0000000..8c80dec --- /dev/null +++ b/perl-Image-ExifTool.spec @@ -0,0 +1,230 @@ +Name: perl-Image-ExifTool +Version: 9.90 +Release: 1%{?dist} +License: GPL+ or Artistic +Group: Applications/Multimedia +Summary: Utility for reading and writing image meta info +URL: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/ +Source0: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/Image-ExifTool-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1, perl(ExtUtils::Command::MM) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +ExifTool is a Perl module with an included command-line application for +reading and writing meta information in image, audio, and video files. +It reads EXIF, GPS, IPTC, XMP, JFIF, MakerNotes, GeoTIFF, ICC Profile, +Photoshop IRB, FlashPix, AFCP, and ID3 meta information from JPG, JP2, +TIFF, GIF, PNG, MNG, JNG, MIFF, EPS, PS, AI, PDF, PSD, BMP, THM, CRW, +CR2, MRW, NEF, PEF, ORF, DNG, and many other types of images. ExifTool +also extracts information from the maker notes of many digital cameras +by various manufacturers including Canon, Casio, FujiFilm, GE, HP, +JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Olympus/Epson, +Panasonic/Leica, Pentax/Asahi, Reconyx, Ricoh, Samsung, Sanyo, +Sigma/Foveon, and Sony. + +%prep +%setup -q -n Image-ExifTool-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make + +%install +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +chmod -R u+w %{buildroot}/* + +# Somehow, these empty directories are getting created. +# Delete them. +rm -rf %{buildroot}%{perl_vendorlib}/*-linux-thread-multi + +%check +make test + +%files +%doc README Changes +%{_bindir}/exiftool +%{perl_vendorlib}/File/ +%{perl_vendorlib}/Image/ +%{_mandir}/man1/*.1* +%{_mandir}/man3/*.3* + +%changelog +* Mon Mar 16 2015 Tom Callaway - 9.90-1 +- update to 9.90 (new stable) + +* Mon Nov 24 2014 Tom Callaway - 9.76-1 +- update to 9.76 (new stable) + +* Wed Sep 03 2014 Jitka Plesnikova - 9.70-2 +- Perl 5.20 rebuild + +* Wed Sep 3 2014 Tom Callaway - 9.70-1 +- update to 9.70 (new stable) + +* Wed Aug 27 2014 Jitka Plesnikova - 9.60-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 9.60-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon May 12 2014 Tom Callaway - 9.60-1 +- update to 9.60 (new stable) + +* Mon Jan 20 2014 Tom Callaway - 9.46-1 +- update to 9.46 (new stable) + +* Sat Aug 03 2013 Fedora Release Engineering - 9.27-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 9.27-2 +- Perl 5.18 rebuild + +* Wed Apr 17 2013 Tom Callaway - 9.27-1 +- update to 9.27 (stable, bugfix for 9.25) + +* Mon Apr 8 2013 Tom Callaway - 9.25-1 +- update to 9.25 (stable) + +* Thu Feb 14 2013 Fedora Release Engineering - 9.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jan 18 2013 Tom Callaway - 9.13-1 +- update to 9.13 (stable) + +* Thu Jan 3 2013 Tom Callaway - 9.12-1 +- update to 9.12 (stable) + +* Mon Nov 5 2012 Tom Callaway - 9.04-1 +- update to 9.04 (stable) + +* Sat Aug 25 2012 Tom Callaway - 9.01-1 +- update to 9.01 (stable) + +* Fri Jul 20 2012 Fedora Release Engineering - 8.90-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 08 2012 Petr Pisar - 8.90-2 +- Perl 5.16 rebuild + +* Tue May 1 2012 Tom Callaway - 8.90-1 +- update to 8.90 + +* Tue Apr 3 2012 Tom Callaway - 8.85-1 +- update to 8.85 + +* Fri Feb 10 2012 Tom Callaway - 8.77-1 +- update to 8.77 + +* Mon Jan 9 2012 Tom Callaway - 8.75-1 +- update to 8.75 + +* Mon Sep 26 2011 Tom Callaway - 8.65-1 +- update to 8.65 + +* Thu Jul 21 2011 Petr Sabata - 8.60-3 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata - 8.60-2 +- Perl mass rebuild + +* Tue Jun 28 2011 Tom Callaway - 8.60-1 +- update to 8.60 + +* Wed Jun 15 2011 Marcela Mašláňová - 8.50-2 +- Perl mass rebuild + +* Thu Mar 3 2011 Tom Callaway - 8.50-1 +- update to 8.50 + +* Tue Feb 08 2011 Fedora Release Engineering - 8.40-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Nov 22 2010 Tom "spot" Callaway - 8.40-1 +- update to 8.40 + +* Tue Jul 13 2010 Tom "spot" Callaway - 8.25-1 +- update to 8.25 + +* Sun May 02 2010 Marcela Maslanova - 8.15-2 +- Mass rebuild with perl-5.12.0 + +* Tue Mar 23 2010 Tom "spot" Callaway 8.15-1 +- update to 8.15 + +* Mon Feb 15 2010 Tom "spot" Callaway 8.10-1 +- update to 8.10 + +* Mon Dec 7 2009 Tom "spot" Callaway 8.00-1 +- update to 8.00 (Production) + +* Mon Dec 7 2009 Stepan Kasal - 7.67-5 +- rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 7.67-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 7.67-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 7.67-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Tom "spot" Callaway 7.67-1 +- update to 7.67 + +* Tue Jan 6 2009 Tom "spot" Callaway 7.60-1 +- update to 7.60 + +* Mon Oct 27 2008 Tom "spot" Callaway 7.51-1 +- update to 7.51 + +* Wed May 28 2008 Tom "spot" Callaway 7.25-2 +- get rid of empty arch-specific directories (bz 448744) + +* Fri Apr 25 2008 Tom "spot" Callaway 7.25-1 +- update to 7.25 + +* Tue Feb 5 2008 Tom "spot" Callaway 7.15-1 +- 7.15 +- rebuild for new perl + +* Mon Oct 29 2007 Tom "spot" Callaway 7.00-1 +- 7.00 + +* Sun Aug 26 2007 Tom "spot" Callaway 6.95-1 +- 6.95 +- license tag fix + +* Wed Aug 1 2007 Tom "spot" Callaway 6.94-1 +- bump to 6.94 + +* Wed Feb 21 2007 Tom "spot" Callaway 6.77-1 +- bump to 6.77 + +* Wed Jan 17 2007 Tom "spot" Callaway 6.69-1 + +* Fri Sep 15 2006 Tom "spot" Callaway 6.40-1 +- bump to 6.40 + +* Wed Aug 2 2006 Tom "spot" Callaway 6.30-1 +- bump to 6.30 + +* Tue Jul 11 2006 Tom "spot" Callaway 6.26-2 +- clean up the places where "use the" shows up in the code as a workaround + +* Fri Jul 7 2006 Tom "spot" Callaway 6.26-1 +- bump to 6.26 + +* Mon Apr 24 2006 Tom "spot" Callaway 6.15-1 +- bump to 6.15 + +* Fri Mar 31 2006 Tom "spot" Callaway 6.09-1 +- bump to 6.09 + +* Tue Jan 10 2006 Tom "spot" Callaway 5.89-1 +- bump to 5.89 + +* Thu Aug 4 2005 Tom "spot" Callaway 5.53-1 +- initial package for Fedora Extras diff --git a/sources b/sources index e69de29..1bd4c8c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4ce15d63f29f682763e77e7bb4685dec Image-ExifTool-9.90.tar.gz From 4e510b57ddd6f122f89c0c6a5a9441f78b72ea41 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Wed, 23 Jun 2021 11:53:53 -0400 Subject: [PATCH 2/2] update to 12.26 --- .gitignore | 1 + Image-ExifTool-12.16-CVE-2021-22204.patch | 28 ----------------------- perl-Image-ExifTool.spec | 10 ++++---- sources | 2 +- 4 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 Image-ExifTool-12.16-CVE-2021-22204.patch diff --git a/.gitignore b/.gitignore index 6e3e988..15ca8b2 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ Image-ExifTool-8.25.tar.gz /Image-ExifTool-11.85.tar.gz /Image-ExifTool-12.00.tar.gz /Image-ExifTool-12.16.tar.gz +/Image-ExifTool-12.26.tar.gz diff --git a/Image-ExifTool-12.16-CVE-2021-22204.patch b/Image-ExifTool-12.16-CVE-2021-22204.patch deleted file mode 100644 index 6a200f0..0000000 --- a/Image-ExifTool-12.16-CVE-2021-22204.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -up Image-ExifTool-12.16/lib/Image/ExifTool/DjVu.pm.CVE-2021-22204 Image-ExifTool-12.16/lib/Image/ExifTool/DjVu.pm ---- Image-ExifTool-12.16/lib/Image/ExifTool/DjVu.pm.CVE-2021-22204 2021-04-26 11:06:57.868813858 -0400 -+++ Image-ExifTool-12.16/lib/Image/ExifTool/DjVu.pm 2021-04-26 11:07:46.734614214 -0400 -@@ -18,7 +18,7 @@ use strict; - use vars qw($VERSION); - use Image::ExifTool qw(:DataAccess :Utils); - --$VERSION = '1.06'; -+$VERSION = '1.07'; - - sub ParseAnt($); - sub ProcessAnt($$$); -@@ -227,10 +227,11 @@ Tok: for (;;) { - last unless $tok =~ /(\\+)$/ and length($1) & 0x01; - $tok .= '"'; # quote is part of the string - } -- # must protect unescaped "$" and "@" symbols, and "\" at end of string -- $tok =~ s{\\(.)|([\$\@]|\\$)}{'\\'.($2 || $1)}sge; -- # convert C escape sequences (allowed in quoted text) -- $tok = eval qq{"$tok"}; -+ # convert C escape sequences, allowed in quoted text -+ # (note: this only converts a few of them!) -+ my %esc = ( a => "\a", b => "\b", f => "\f", n => "\n", -+ r => "\r", t => "\t", '"' => '"', '\\' => '\\' ); -+ $tok =~ s/\\(.)/$esc{$1}||'\\'.$1/egs; - } else { # key name - pos($$dataPt) = pos($$dataPt) - 1; - # allow anything in key but whitespace, braces and double quotes diff --git a/perl-Image-ExifTool.spec b/perl-Image-ExifTool.spec index 4cedda1..b56aa5b 100644 --- a/perl-Image-ExifTool.spec +++ b/perl-Image-ExifTool.spec @@ -1,12 +1,10 @@ Name: perl-Image-ExifTool -Version: 12.16 -Release: 3%{?dist} +Version: 12.26 +Release: 1%{?dist} License: GPL+ or Artistic Summary: Utility for reading and writing image meta info URL: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/ Source0: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/Image-ExifTool-%{version}.tar.gz -# https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800 -Patch0: Image-ExifTool-12.16-CVE-2021-22204.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils @@ -56,7 +54,6 @@ Sigma/Foveon, and Sony. %prep %setup -q -n Image-ExifTool-%{version} -%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -84,6 +81,9 @@ make test %{_mandir}/man3/*.3* %changelog +* Wed Jun 23 2021 Tom Callaway - 12.26-1 +- update to latest stable (12.26) + * Mon Apr 26 2021 Tom Callaway - 12.16-3 - apply upstream fix for CVE-2021-22204 diff --git a/sources b/sources index b4b0150..a5c65ba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Image-ExifTool-12.16.tar.gz) = adfd21834ccf06277903712b3c5e328b29c56f3b30ee68f6802dca0820823b627622e55f53238690525d1d19df2a59cb57f9d80a1bb2e99da37fb7d963ee16ee +SHA512 (Image-ExifTool-12.26.tar.gz) = 15bbff738e151d3ed5c77a17c99ded6cc3da2050fe7df94c42aea544aa31d7f539d70d07fd5336ae018af05b7f168712f1367046d8004861fce58442c03f82bd