perl-Readonly-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. Name: perl-Readonly
  2. Version: 2.00
  3. Release: 1%{?_dist_release}
  4. Summary: Facility for creating read-only scalars, arrays, hashes
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Readonly/
  8. Source0: http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Test::More)
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. # perl-Readonly-XS builds for all current fedora architectures, so let's
  15. # require it.
  16. Requires: perl(Readonly::XS)
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: shaolin
  20. %{?perl_default_filter}
  21. %{?perl_default_subpackage_tests}
  22. %description
  23. Readonly provides a facility for creating non-modifiable scalars,
  24. arrays, and hashes. Any attempt to modify a Readonly variable throws
  25. an exception.
  26. Readonly:
  27. * Creates scalars, arrays (not lists), and hashes.
  28. * Creates variables that look and work like native perl variables.
  29. * Creates global or lexical variables.
  30. * Works at runtime or compile time.
  31. * Works with deep or shallow data structures.
  32. * Prevents reassignment of Readonly variables.
  33. %prep
  34. %setup -q -n Readonly-%{version}
  35. %build
  36. %{__perl} Build.PL installdirs=vendor
  37. ./Build
  38. %install
  39. rm -rf %{buildroot}
  40. ./Build pure_install destdir=%{buildroot}
  41. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  42. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  43. %{_fixperms} %{buildroot}/*
  44. %check
  45. ./Build test
  46. %clean
  47. rm -rf %{buildroot}
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc Changes LICENSE README.md
  51. %{perl_vendorlib}/Readonly.pm
  52. %{_mandir}/man3/*
  53. %changelog
  54. * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.00-1
  55. - updated to 2.00
  56. - make -> ./Build
  57. - built with perl 5.16.3
  58. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-2
  59. - rebuild
  60. * Tue Feb 21 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
  61. - initial package for Vine Linux
  62. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-17
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  64. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-16
  65. - Perl mass rebuild
  66. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-15
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  68. * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-14
  69. - 661697 rebuild for fixing problems with vendorach/lib
  70. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-13
  71. - Mass rebuild with perl-5.12.0
  72. * Sun Feb 21 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.03-12
  73. - add perl_default_filter, etc
  74. - minor spec updates
  75. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-11
  76. - rebuild against perl 5.10.1
  77. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  79. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-9
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  81. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-8
  82. - Rebuild for perl 5.10 (again)
  83. * Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.03-7
  84. - rebuild for new perl
  85. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.03-6.2
  86. - add BR: perl(Test::More)
  87. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.03-6.1
  88. - correct license tag
  89. - add BR: perl(ExtUtils::MakeMaker)
  90. * Wed Oct 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-6
  91. - add explict requires on perl(Readonly::XS). perl(Readonly::XS) is available
  92. for all architectures fedora supports, so there's no good reason to not
  93. require it.
  94. - spec file rework
  95. * Tue Sep 19 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-5
  96. - bump for mass rebuild
  97. * Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3
  98. - Remove requires on perl-Readonly-XS
  99. * Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3
  100. - Fix license and BuildRequires, use %%{?_smp_mflags} with make,
  101. * Sat Nov 12 2005 Michael A. Peters <mpeters@mac.com> - 1.03-2
  102. - separate out perl-Readonly-XS into its own package
  103. - package benchmark.pl as a doc
  104. * Mon Nov 7 2005 Michael A. Peters <mpeters@mac.com> - 1.03-1
  105. - Initial spec file