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

#
# spec file for package perl-Image-ExifTool
#


Name:           perl-Image-ExifTool
Version:        10.89
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
Source:         Image-ExifTool-%{version}.tar.gz
BuildRequires:  perl
#BuildRequires:  perl-macros
Requires:       perl-File-RandomAccess = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Conflicts:      exiftool < %{version}
%if 0%{?suse_version}
 %{perl_requires}
%endif


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

ExifTool is a platform-independent Perl library plus a command-line 
application for reading, writing and editing meta information in a wide 
variety of files. ExifTool supports many different metadata formats 
including EXIF, GPS, IPTC, XMP, JFIF, GeoTIFF, ICC Profile, Photoshop IRB, 
FlashPix, AFCP and ID3, as well as the maker notes of many digital cameras 
by Canon, Casio, FLIR, FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, 
Minolta/Konica-Minolta, Nikon, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, 
Phase One, Reconyx, Ricoh, Samsung, Sanyo, Sigma/Foveon and Sony.

See html/index.html or http://owl.phy.queensu.ca/~phil/exiftool/#supported  
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
%doc Changes 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,-)
%doc %{_mandir}/man3/File::RandomAccess.3*.gz
%dir %{perl_vendorlib}/File
%{perl_vendorlib}/File/RandomAccess.pm
%doc %{perl_vendorlib}/File/RandomAccess.pod
#/usr/lib/perl5/*

%changelog
openSUSE Build Service is sponsored by