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

122 lines
4.2 KiB
RPMSpec

#
# spec file for package perl-Image-ExifTool
#
# Copyright (c) 2013 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.34
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.sno.phy.queensu.ca/~phil/exiftool/%cpan_name-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl-File-RandomAccess = %{version}
Conflicts: exiftool < %{version}
%{perl_requires}
%description
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.
%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 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.
%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
%files -n exiftool
%defattr(644,root,root,755)
%attr(755, root, root) %{_bindir}/exiftool
%doc %{_mandir}/man1/exiftool.1.gz
%doc fmt_files/
%doc arg_files/
%files
%defattr(644,root,root,755)
%exclude %{_bindir}/exiftool
%exclude %{_mandir}/man1/exiftool.1.gz
%doc Changes config_files/ 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