|
|
|
@ -1,63 +1,66 @@
|
|
|
|
|
%define rgbtxt %{_datadir}/X11/rgb.txt
|
|
|
|
|
|
|
|
|
|
Name: perl-Image-Info
|
|
|
|
|
Version: 1.28
|
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
Version: 1.33
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Image meta information extraction module for Perl
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: http://search.cpan.org/dist/Image-Info/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/T/TE/TELS/image/Image-Info-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Image-Info-1.33.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl(Image::Xbm), perl(Image::Xpm), perl(XML::Simple)
|
|
|
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Compress::Zlib)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
BuildRequires: perl(Image::TIFF)
|
|
|
|
|
BuildRequires: perl(Image::Xbm)
|
|
|
|
|
BuildRequires: perl(Image::Xpm)
|
|
|
|
|
BuildRequires: perl(IO::String)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
|
BuildRequires: perl(XML::LibXML::Reader)
|
|
|
|
|
BuildRequires: perl(XML::Simple)
|
|
|
|
|
Requires: rgb
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Compress::Zlib)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This Perl extension allows you to extract meta information from
|
|
|
|
|
various types of image files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Image-Info-%{version}
|
|
|
|
|
chmod -c 644 exifdump imgdump
|
|
|
|
|
%{__perl} -pi -e 's|/usr/X11R6/lib/X11/rgb\.txt|%{rgbtxt}|' \
|
|
|
|
|
lib/Image/Info/XPM.pm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc CHANGES README exifdump imgdump
|
|
|
|
|
%doc CHANGES CREDITS README TODO exifdump imgdump
|
|
|
|
|
%{perl_vendorlib}/Bundle/
|
|
|
|
|
%{perl_vendorlib}/Image/
|
|
|
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Nov 14 2012 Petr Šabata <contyk@redhat.com> - 1.33-1
|
|
|
|
|
- 1.33 bump
|
|
|
|
|
- Get rid of the old cruft
|
|
|
|
|
- Fix dependencies
|
|
|
|
|
- Update the source URL
|
|
|
|
|
|
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|