You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.1 KiB
102 lines
3.1 KiB
%define rgbtxt %{_datadir}/X11/rgb.txt
|
|
|
|
Name: perl-Image-Info
|
|
Version: 1.20
|
|
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)
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl(Image::Xbm), perl(Image::Xpm), perl(XML::Simple)
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
Requires: %{rgbtxt}
|
|
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 644 README exifdump imgdump
|
|
%{__perl} -pi -e 's|/usr/X11R6/lib/X11/rgb\.txt|%{rgbtxt}|' \
|
|
lib/Image/Info/XPM.pm
|
|
|
|
|
|
%build
|
|
%{__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 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
%check
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README exifdump imgdump
|
|
%{perl_vendorlib}/Image/
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* Mon Mar 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.20-1
|
|
- Update to 1.20.
|
|
|
|
* Wed Mar 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.19-1
|
|
- Update to 1.19 (broken: cpan tickets: #18020 and #18147).
|
|
- Module::Install 0.58 is broken (Image-Info-1.19-inc-Module-Install.pm.patch).
|
|
- BR: perl(Image::Xbm), perl(Image::Xpm), perl(XML::Simple).
|
|
|
|
* Fri Mar 3 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-1
|
|
- Update to 1.18 (broken: cpan ticket #6558).
|
|
- Dropped patches Image-Info-1.16-X[BP]M.pm.patch (accepted upstream).
|
|
- Dropped patch Image-Info-1.16-string.t.patch (test has been rewritten).
|
|
|
|
* Mon Feb 20 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.17-2
|
|
- BR: perl(Test::Pod), perl(Test::Pod::Coverage).
|
|
|
|
* Mon Feb 20 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.17-1
|
|
- Update to 1.17.
|
|
- New upstream maintainer.
|
|
|
|
* Wed Nov 23 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.16-6
|
|
- Add dependency on rgb.txt, adjust its location for FC5.
|
|
- Specfile cleanups.
|
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.16-4
|
|
- rebuilt
|
|
|
|
* Thu Jul 1 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.16-0.fdr.3
|
|
- Reverted Image::Xbm and Image::Xpm patches.
|
|
- Patched Image::Info::XBM.pm and Image::Info::XPM.pm instead.
|
|
|
|
* Tue Jun 8 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.16-0.fdr.2
|
|
- Patched Image::Xbm and Image::Xpm to avoid test failures in this module.
|
|
|
|
* Thu Jun 3 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.16-0.fdr.1
|
|
- Update to version 1.16.
|
|
- Bring up to date with current fedora.us perl spec template.
|
|
|
|
* Sun Oct 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.15-0.fdr.1
|
|
- First build.
|