perl-File-Slurp-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Summary: Efficient Reading/Writing of Complete Files
  2. Name: perl-File-Slurp
  3. Version: 9999.32
  4. Release: 1%{?_dist_release}
  5. Group: programming
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. Packager: shaolin
  9. License: GPL+ or Artistic
  10. Group: Development/Libraries
  11. URL: https://metacpan.org/pod/File::Slurp
  12. Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-%{version}.tar.gz
  13. BuildArch: noarch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: perl(ExtUtils::MakeMaker)
  16. BuildRequires: perl(Test::Pod::Coverage)
  17. BuildRequires: perl(Test::Pod)
  18. Requires: perl >= 2:5.34.0
  19. %{?perl_default_filter}
  20. %description
  21. This module provides subs that allow you to read or write entire files with
  22. one simple call. They are designed to be simple to use, have flexible ways
  23. to pass in or get the file contents and to be very efficient. There is also
  24. a sub to read in all the files in a directory other than . and ..
  25. These slurp/spew subs work for files, pipes and sockets, and stdio,
  26. pseudo-files, and DATA.
  27. %prep
  28. %setup -q -n File-Slurp-%{version}
  29. iconv -f iso8859-1 -t UTF-8 Changes > Changes~
  30. mv Changes~ Changes
  31. find \( -executable -a -type f \) -exec chmod -x {} \;
  32. %{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' extras/slurp_bench.pl
  33. %build
  34. %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf ${RPM_BUILD_ROOT}
  38. make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT}
  39. find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';'
  40. %{_fixperms} $RPM_BUILD_ROOT/*
  41. %check
  42. make test
  43. %clean
  44. rm -rf ${RPM_BUILD_ROOT}
  45. %files
  46. %defattr(-,root,root,-)
  47. # For license text(s), see the perl package.
  48. %doc Changes README extras/
  49. %{perl_vendorlib}/File
  50. %{_mandir}/man3/*
  51. %changelog
  52. * Sat Nov 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9999.32-1
  53. - new upstream release.
  54. - built with perl-5.34.0.
  55. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9999.27-1
  56. - new upstream release.
  57. - rebuilt with perl-5.26.
  58. * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 9999.19-3
  59. - rebuilt with perl 5.16.3
  60. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 9999.19-2
  61. - rebuild
  62. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 9999.19-1
  63. - initial build for Vine Linux
  64. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9999.19-3
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  66. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 9999.19-2
  67. - Perl mass rebuild
  68. * Wed Jun 08 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 9999.19-1
  69. - Upstream update.
  70. * Sun May 15 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 9999.18-1
  71. - Upstream update.
  72. * Thu Apr 28 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 9999.16-1
  73. - Upstream update.
  74. * Tue Mar 29 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 9999.15-1
  75. - Upstream update.
  76. - Add perl_default_filter.
  77. - Fix encoding of "Changes".
  78. - Spec cleanup.
  79. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9999.13-10
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  81. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 9999.13-9
  82. - 661697 rebuild for fixing problems with vendorach/lib
  83. * Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 9999.13-8
  84. - Mass rebuild with perl-5.12.0
  85. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 9999.13-7
  86. - rebuild against perl 5.10.1
  87. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9999.13-6
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  89. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9999.13-5
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  91. * Wed Jul 09 2008 Ralf Corsépius <rc040203@freenet.de> - 9999.13-4
  92. - Re-activate tests.
  93. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 9999.13-3
  94. - Rebuild for perl 5.10 (again)
  95. * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 9999.13-2
  96. - disable tests, due to wacky Fedora builders
  97. * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 9999.13-1
  98. - go to 9999.13 to fix build failures against perl 5.10.0
  99. * Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 9999.12-4
  100. - rebuild for new perl
  101. * Sun Sep 02 2007 Ralf Corsépius <rc040203@freenet.de> - 9999.12-3
  102. - Update license tag.
  103. - BR: perl(ExtUtils::MakeMaker).
  104. * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 9999.12-2
  105. - Mass rebuild.
  106. * Sat Mar 18 2006 Ralf Corsépius <rc040203@freenet.de> - 9999.12-1
  107. - Upstream update.
  108. * Wed Mar 01 2006 Ralf Corsépius <rc040203@freenet.de> - 9999.11-2
  109. - Rebuild for perl-5.8.8.
  110. * Wed Feb 01 2006 Ralf Corsépius <rc040203@freenet.de> - 9999.11-1
  111. - Upstream update.
  112. - BR perl(Test::Pod), perl(Test::Pod::Coverage).