File perl-Image-ExifTool.spec of Package perl-Image-ExifTool

#
# spec file for package perl-Image-ExifTool
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           perl-Image-ExifTool
Version:        9.01
Release:        0
%define cpan_name Image-ExifTool
Summary:        Perl module to read and write meta information
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Image-ExifTool/
Source:         http://www.cpan.org/authors/id/E/EX/EXIFTOOL/%{cpan_name}-%{version}.tar.gz
BuildRequires:  perl
BuildRequires:  perl-macros
Requires:       perl-File-RandomAccess = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Conflicts:      exiftool < %{version}
%{perl_requires}

%description
ExifTool by Phil Harvey (phil at owl.phy.queensu.ca)
----------------------------------------------------------------------------

ExifTool is a customizable set of Perl modules plus a full-featured
application for reading and writing meta information in a wide variety of
files, including the maker note information of many digital cameras by
various manufacturers such as 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.

Below is a list of file types and meta information formats currently
supported by ExifTool (r = read, w = write, c = create):

  File Types
  ------------+-------------+-------------+-------------+------------
  3FR   r     | DVB   r     | M4A/V r     | PBM   r/w   | RWZ   r
  3G2   r     | DYLIB r     | MEF   r/w   | PDF   r/w   | RM    r
  3GP   r     | EIP   r     | MIE   r/w/c | PEF   r/w   | SO    r
  ACR   r     | EPS   r/w   | MIFF  r     | PFA   r     | SR2   r/w
  AFM   r     | ERF   r/w   | MKA   r     | PFB   r     | SRF   r
  AI    r/w   | EXE   r     | MKS   r     | PFM   r     | SRW   r/w
  AIFF  r     | EXIF  r/w/c | MKV   r     | PGF   r     | SVG   r
  APE   r     | F4A/V r     | MNG   r/w   | PGM   r/w   | SWF   r
  ARW   r/w   | FLA   r     | MOS   r/w   | PICT  r     | THM   r/w
  ASF   r     | FLAC  r     | MOV   r     | PMP   r     | TIFF  r/w
  AVI   r     | FLV   r     | MP3   r     | PNG   r/w   | TTC   r
  BMP   r     | FPX   r     | MP4   r     | PPM   r/w   | TTF   r
  BTF   r     | GIF   r/w   | MPC   r     | PPT   r     | VRD   r/w/c
  CHM   r     | GZ    r     | MPG   r     | PPTX  r     | VSD   r
  COS   r     | HDP   r/w   | MPO   r/w   | PS    r/w   | WAV   r
  CR2   r/w   | HTML  r     | MQV   r     | PSB   r/w   | WDP   r/w
  CRW   r/w   | ICC   r/w/c | MRW   r/w   | PSD   r/w   | WEBP  r
  CS1   r/w   | IIQ   r/w   | MXF   r     | PSP   r     | WEBM  r
  DCM   r     | IND   r/w   | NEF   r/w   | QTIF  r     | WMA   r
  DCP   r/w   | ITC   r     | NRW   r/w   | RA    r     | WMV   r
  DCR   r     | J2C   r     | NUMBERS r   | RAF   r/w   | X3F   r/w
  DFONT r     | JNG   r/w   | ODP   r     | RAM   r     | XCF   r
  DIVX  r     | JP2   r/w   | ODS   r     | RAR   r     | XLS   r
  DJVU  r     | JPEG  r/w   | ODT   r     | RAW   r/w   | XLSX  r
  DLL   r     | K25   r     | OGG   r     | RIFF  r     | XMP   r/w/c
  DNG   r/w   | KDC   r     | OGV   r     | RSRC  r     | ZIP   r
  DOC   r     | KEY   r     | ORF   r/w   | RTF   r     |
  DOCX  r     | LNK   r     | OTF   r     | RW2   r/w   |
  DV    r     | M2TS  r     | PAGES r     | RWL   r/w   |

  Meta Information
  ----------------------+----------------------+---------------------
  EXIF           r/w/c  |  CIFF           r/w  |  Ricoh RMETA    r
  GPS            r/w/c  |  AFCP           r/w  |  Picture Info   r
  IPTC           r/w/c  |  Kodak Meta     r/w  |  Adobe APP14    r
  XMP            r/w/c  |  FotoStation    r/w  |  MPF            r
  MakerNotes     r/w/c  |  PhotoMechanic  r/w  |  Stim           r
  Photoshop IRB  r/w/c  |  JPEG 2000      r    |  APE            r
  ICC Profile    r/w/c  |  DICOM          r    |  Vorbis         r
  MIE            r/w/c  |  Flash          r    |  SPIFF          r
  JFIF           r/w/c  |  FlashPix       r    |  DjVu           r
  Ducky APP12    r/w/c  |  QuickTime      r    |  M2TS           r
  PDF            r/w/c  |  Matroska       r    |  PE/COFF        r
  PNG            r/w/c  |  GeoTIFF        r    |  AVCHD          r
  Canon VRD      r/w/c  |  PrintIM        r    |  ZIP            r
  Nikon Capture  r/w/c  |  ID3            r    |  (and more)

See html/index.html for more details about ExifTool features.

%package -n exiftool
Summary:        Highly Customizable Perl App for Reading and Writing Meta Information in Files
Group:          Productivity/Graphics/Other
BuildArch:      noarch

# Per http://perldoc.perl.org/index-modules-I.html, these are the part of perl-base.
#Requires:      perl(IO::Compress::Base)
#Requires:	perl(IO::Compress::Bzip2) perl(IO::Compress::Deflate)
#Requires:	perl(IO::Compress::Gzip) perl(IO::Compress::RawDeflate) perl(IO::Compress::Zip)
#Requires:      perl(Compress::Zlib)
#Requires:      perl(Digest::MD5)
#Requires:      perl(Digest::SHA)

Requires:       perl(Archive::Zip)
Requires:       perl(Image::ExifTool) = %{version}

# Below provided because the package was renamed from 8.40 => 8.65 upgrade
Obsoletes:      exiftool < 8.65
Provides:       exiftool = %{version}

%description -n exiftool
ExifTool by Phil Harvey (phil at owl.phy.queensu.ca)
----------------------------------------------------------------------------

ExifTool is a a full-featured application for reading and writing
meta information in a wide variety of
files, including the maker note information of many digital cameras by
various manufacturers such as 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.

See the description for perl-Image-ExifTool for a list of supported file types
and Meta Information

See html/index.html for more details about ExifTool features overall.

%package -n perl-File-RandomAccess
Summary:        Random Access Reads of Sequential File or Scalar
Group:          Development/Libraries/Perl

%description -n perl-File-RandomAccess
Allows random access to sequential file by buffering the file if necessary.
Also allows access to data in memory to be accessed as if it were a file.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
rm -rf %{buildroot}

%files -n exiftool
%defattr(644,root,root,755)
%attr(755, root, root) %{_bindir}/exiftool
%doc %{_mandir}/man1/exiftool.1.gz
%doc gpx.fmt gpx_wpt.fmt kml.fmt
%doc exif2iptc.args exif2xmp.args gps2xmp.args iptc2exif.args iptc2xmp.args iptcCore.args
%doc pdf2xmp.args xmp2exif.args xmp2gps.args xmp2iptc.args xmp2pdf.args

%files
%defattr(644,root,root,755)
%exclude %{_bindir}/exiftool
%exclude %{_mandir}/man1/exiftool.1.gz
%doc Changes ExifTool_config README html
%{perl_vendorlib}/Image/ExifTool
%doc %{_mandir}/man3/Image::ExifTool*.3*
%{perl_vendorlib}/Image/ExifTool.pm
%dir %{perl_vendorlib}/Image
%doc %{perl_vendorlib}/Image/ExifTool.pod

%files -n perl-File-RandomAccess
%defattr(-,root,root)
%dir %{perl_vendorlib}/File
%{perl_vendorlib}/File/RandomAccess.pm
%doc %{perl_vendorlib}/File/RandomAccess.pod
%doc %{_mandir}/man3/File::RandomAccess*.3*

%changelog
openSUSE Build Service is sponsored by