perl-Image-Size-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. %define module Image-Size
  2. %define name perl-%{module}
  3. %define version 3.2
  4. %define release 1%{_dist_release}
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Summary: Read the dimensions of an image in several popular formats
  9. License: Artistic and GPL
  10. Group: Development/Libraries
  11. URL: http://search.cpan.org/dist/%{module}
  12. Source0: http://www.cpan.org/modules/by-module/Image/%{module}-%{version}.tar.gz
  13. Source1: Build.PL
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. BuildRequires: perl(Module::Build)
  17. BuildRequires: perl(Compress::Zlib)
  18. BuildRequires: perl(Image::Magick)
  19. BuildRequires: perl(Test::Pod)
  20. BuildRequires: perl(Test::Pod::Coverage)
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. Requires: perl(Compress::Zlib)
  23. Requires: perl(Image::Magick)
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. %description
  27. Image::Size is a library based on the image-sizing code in the wwwimagesize
  28. script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to
  29. IMG directives.
  30. %prep
  31. %setup -q -n %{module}-%{version}
  32. # Upstream forgot Build.PL
  33. cp %{SOURCE1} .
  34. pushd lib/Image/
  35. iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,}
  36. mv Size.pm{.utf8,}
  37. popd
  38. %build
  39. %{__perl} Build.PL installdirs=vendor
  40. ./Build CFLAGS="%{optflags}"
  41. %install
  42. rm -rf %{buildroot}
  43. ./Build install destdir=%{buildroot} create_packlist=0
  44. %check
  45. ./Build test
  46. %clean
  47. rm -rf %{buildroot}
  48. %files
  49. %defattr(-,root,root)
  50. %{_bindir}/*
  51. %{_mandir}/*/*
  52. %{perl_vendorlib}/Image
  53. %{perl_vendorlib}/auto/Image
  54. %changelog
  55. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.2-1
  56. - updated to 3.2; spec revamped based on Fedora's 3.2-8
  57. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.1-3
  58. - rebuild with perl-5.12.3
  59. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-2
  60. - added BuildRequires: perl-Test-Pod, perl-Test-Pod-Coverage
  61. - changed Group to Development/Libraries
  62. * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.1.1-1
  63. - rebuild with perl 5.10
  64. - new versioning policy
  65. * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl1
  66. - built for release
  67. * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl0.1
  68. - test package for VineSeed
  69. - new upstream release
  70. - add Vendor/Distribution tag
  71. * Thu Jul 05 2007 Guillaume Rousse <guillomovitch@mandriva.org> 3.01-1mdv2008.0
  72. + Revision: 48726
  73. - switch to Module::Build
  74. + Olivier Thauvin <nanardon@mandriva.org>
  75. - buildrequires
  76. - 3.01
  77. * Mon Jul 17 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1:3.0-2
  78. - add BuildRequires: perl-Compress-Zlib
  79. * Fri Jun 16 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0-1mdv2007.0
  80. - new version
  81. - rpmbuildupdate aware
  82. - spec cleanup
  83. - better summary
  84. * Tue Jan 18 2005 Abel Cheung <deaddog@mandrake.org> 2.992-3mdk
  85. - rebuild
  86. * Tue Aug 12 2003 Per リyvind Karlsen <peroyvind@linux-mandrake.com> 2.992-2mdk
  87. - rebuild for new perl
  88. - use %%makeinstall_std macro
  89. * Mon Jul 21 2003 Fran輟is Pons <fpons@mandrakesoft.com> 2.992-1mdk
  90. - 2.992.