perl-Image-Size-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %define module Image-Size
  2. %define name perl-%{module}
  3. %define version 3.232
  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://search.cpan.org/CPAN/authors/id/R/RJ/RJRAY/%{module}-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: perl(Compress::Zlib)
  16. BuildRequires: perl(File::Spec) >= 0.8
  17. BuildRequires: perl(Module::Build) >= 0.4
  18. BuildRequires: perl(Test::More) >= 0.80
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. Requires: perl(Compress::Zlib)
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. Image::Size is a library based on the image-sizing code in the wwwimagesize
  25. script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to
  26. IMG directives.
  27. %prep
  28. %setup -q -n %{module}-%{version}
  29. pushd lib/Image/
  30. iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,}
  31. mv Size.pm{.utf8,}
  32. popd
  33. %build
  34. %{__perl} Makefile.PL INSTALLDIRS="vendor"
  35. %{__make} %{?_smp_mflags}
  36. %install
  37. rm -rf %{buildroot}
  38. %{__make} pure_install DESTDIR=%{buildroot}
  39. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  40. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  41. %{_fixperms} %{buildroot}/*
  42. %check
  43. %{__make} test
  44. %clean
  45. rm -rf %{buildroot}
  46. %files
  47. %defattr(-,root,root)
  48. %{_bindir}/*
  49. %{_mandir}/*/*
  50. %{perl_vendorlib}/Image
  51. #{perl_vendorlib}/auto/Image
  52. %changelog
  53. * Fri Dec 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 3.232-1
  54. - updated to 3.232
  55. - dropt Source1 which doesn't need any more
  56. - built with perl 5.16.3
  57. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.2-1
  58. - updated to 3.2; spec revamped based on Fedora's 3.2-8
  59. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.1-3
  60. - rebuild with perl-5.12.3
  61. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-2
  62. - added BuildRequires: perl-Test-Pod, perl-Test-Pod-Coverage
  63. - changed Group to Development/Libraries
  64. * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.1.1-1
  65. - rebuild with perl 5.10
  66. - new versioning policy
  67. * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl1
  68. - built for release
  69. * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl0.1
  70. - test package for VineSeed
  71. - new upstream release
  72. - add Vendor/Distribution tag
  73. * Thu Jul 05 2007 Guillaume Rousse <guillomovitch@mandriva.org> 3.01-1mdv2008.0
  74. + Revision: 48726
  75. - switch to Module::Build
  76. + Olivier Thauvin <nanardon@mandriva.org>
  77. - buildrequires
  78. - 3.01
  79. * Mon Jul 17 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1:3.0-2
  80. - add BuildRequires: perl-Compress-Zlib
  81. * Fri Jun 16 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0-1mdv2007.0
  82. - new version
  83. - rpmbuildupdate aware
  84. - spec cleanup
  85. - better summary
  86. * Tue Jan 18 2005 Abel Cheung <deaddog@mandrake.org> 2.992-3mdk
  87. - rebuild
  88. * Tue Aug 12 2003 Per リyvind Karlsen <peroyvind@linux-mandrake.com> 2.992-2mdk
  89. - rebuild for new perl
  90. - use %%makeinstall_std macro
  91. * Mon Jul 21 2003 Fran輟is Pons <fpons@mandrakesoft.com> 2.992-1mdk
  92. - 2.992.