1
0
perl-Image-ExifTool/perl-Image-ExifTool.spec

171 lines
7.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Image-ExifTool
#
# Copyright (c) 2011 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: 8.65
Release: 1
License: GPL-1.0+ or Artistic-1.0
%define cpan_name Image-ExifTool
Summary: Perl module to read and write meta information
Url: http://search.cpan.org/dist/Image-ExifTool/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/E/EX/EXIFTOOL/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{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}
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.
%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
%files -f %{name}.files
%defattr(644,root,root,755)
%exclude %{_bindir}/exiftool
%exclude %{_mandir}/man1/exiftool.1.gz
# No idea why this had such a long % doc list
# % doc Changes exif2xmp.args ExifTool_config gps2xmp.args gpx.fmt gpx_wpt.fmt iptc2xmp.args kml.fmt perl-Image-ExifTool.spec README xmp2exif.args xmp2gps.args xmp2iptc.args
%doc Changes ExifTool_config README html
%{perl_vendorlib}/File/RandomAccess.pm
%{perl_vendorlib}/Image/ExifTool/*
%doc %{_mandir}/man3/*
%changelog